Functions
testutil_unity.cpp File Reference
#include "testutil_unity.hpp"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for testutil_unity.cpp:

Go to the source code of this file.

Functions

void bind_loopback (void *socket_, int ipv6_, char *my_endpoint_, size_t len_)
 
void bind_loopback_ipc (void *socket_, char *my_endpoint_, size_t len_)
 
void bind_loopback_ipv4 (void *socket_, char *my_endpoint_, size_t len_)
 
void bind_loopback_ipv6 (void *socket_, char *my_endpoint_, size_t len_)
 
void bind_loopback_tipc (void *socket_, char *my_endpoint_, size_t len_)
 
voidget_test_context ()
 
static voidinternal_manage_test_context (bool init_, bool clear_)
 
static void internal_manage_test_sockets (void *socket_, bool add_)
 
void recv_string_expect_success (void *socket_, const char *str_, int flags_)
 
void send_string_expect_success (void *socket_, const char *str_, int flags_)
 
void setup_test_context ()
 
void teardown_test_context ()
 
int test_assert_failure_message_raw_errno_helper (int rc_, int expected_errno_, const char *msg_, const char *expr_, int line_)
 
int test_assert_success_message_errno_helper (int rc_, const char *msg_, const char *expr_, int line_)
 
int test_assert_success_message_raw_errno_helper (int rc_, const char *msg_, const char *expr_, int line_, bool zero)
 
int test_assert_success_message_raw_zero_errno_helper (int rc_, const char *msg_, const char *expr_, int line_)
 
void test_bind (void *socket_, const char *bind_address_, char *my_endpoint_, size_t len_)
 
voidtest_context_socket (int type_)
 
voidtest_context_socket_close (void *socket_)
 
voidtest_context_socket_close_zero_linger (void *socket_)
 

Function Documentation

◆ bind_loopback()

void bind_loopback ( void socket_,
int  ipv6_,
char *  my_endpoint_,
size_t  len_ 
)

Definition at line 233 of file testutil_unity.cpp.

◆ bind_loopback_ipc()

void bind_loopback_ipc ( void socket_,
char *  my_endpoint_,
size_t  len_ 
)

Definition at line 256 of file testutil_unity.cpp.

◆ bind_loopback_ipv4()

void bind_loopback_ipv4 ( void socket_,
char *  my_endpoint_,
size_t  len_ 
)

Definition at line 246 of file testutil_unity.cpp.

◆ bind_loopback_ipv6()

void bind_loopback_ipv6 ( void socket_,
char *  my_endpoint_,
size_t  len_ 
)

Definition at line 251 of file testutil_unity.cpp.

◆ bind_loopback_tipc()

void bind_loopback_tipc ( void socket_,
char *  my_endpoint_,
size_t  len_ 
)

Definition at line 265 of file testutil_unity.cpp.

◆ get_test_context()

void* get_test_context ( )

Definition at line 184 of file testutil_unity.cpp.

◆ internal_manage_test_context()

static void* internal_manage_test_context ( bool  init_,
bool  clear_ 
)
static

Definition at line 117 of file testutil_unity.cpp.

◆ internal_manage_test_sockets()

static void internal_manage_test_sockets ( void socket_,
bool  add_ 
)
static

Definition at line 134 of file testutil_unity.cpp.

◆ recv_string_expect_success()

void recv_string_expect_success ( void socket_,
const char *  str_,
int  flags_ 
)

Definition at line 101 of file testutil_unity.cpp.

◆ send_string_expect_success()

void send_string_expect_success ( void socket_,
const char *  str_,
int  flags_ 
)

Definition at line 94 of file testutil_unity.cpp.

◆ setup_test_context()

void setup_test_context ( )

Definition at line 179 of file testutil_unity.cpp.

◆ teardown_test_context()

void teardown_test_context ( )

Definition at line 189 of file testutil_unity.cpp.

◆ test_assert_failure_message_raw_errno_helper()

int test_assert_failure_message_raw_errno_helper ( int  rc_,
int  expected_errno_,
const char *  msg_,
const char *  expr_,
int  line_ 
)

Definition at line 62 of file testutil_unity.cpp.

◆ test_assert_success_message_errno_helper()

int test_assert_success_message_errno_helper ( int  rc_,
const char *  msg_,
const char *  expr_,
int  line_ 
)

Definition at line 13 of file testutil_unity.cpp.

◆ test_assert_success_message_raw_errno_helper()

int test_assert_success_message_raw_errno_helper ( int  rc_,
const char *  msg_,
const char *  expr_,
int  line_,
bool  zero 
)

Definition at line 31 of file testutil_unity.cpp.

◆ test_assert_success_message_raw_zero_errno_helper()

int test_assert_success_message_raw_zero_errno_helper ( int  rc_,
const char *  msg_,
const char *  expr_,
int  line_ 
)

Definition at line 53 of file testutil_unity.cpp.

◆ test_bind()

void test_bind ( void socket_,
const char *  bind_address_,
char *  my_endpoint_,
size_t  len_ 
)

Definition at line 223 of file testutil_unity.cpp.

◆ test_context_socket()

void* test_context_socket ( int  type_)

Definition at line 200 of file testutil_unity.cpp.

◆ test_context_socket_close()

void* test_context_socket_close ( void socket_)

Definition at line 208 of file testutil_unity.cpp.

◆ test_context_socket_close_zero_linger()

void* test_context_socket_close_zero_linger ( void socket_)

Definition at line 215 of file testutil_unity.cpp.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04