Go to the source code of this file.
◆ ASSERT
Value: do { \
static_num_tests++; \
if (!(expr))
FAIL(#expr, __LINE__); \
} while (0)
Definition at line 19 of file unit_test.c.
◆ BOUNDARY
◆ CRLF
◆ DISP
#define DISP "Content-Disposition: form/data; " |
◆ FAIL
#define FAIL |
( |
|
str, |
|
|
|
line |
|
) |
| |
Value: do { \
printf(
"Fail on line %d: [%s]\n", line,
str); \
} while (0)
Definition at line 14 of file unit_test.c.
◆ HTTP_PORT
#define HTTP_PORT "45772" |
◆ LISTENING_ADDR
#define LISTENING_ADDR "127.0.0.1:" HTTP_PORT |
◆ MONGOOSE_POST_SIZE_LIMIT
#define MONGOOSE_POST_SIZE_LIMIT 999 |
◆ NS_ENABLE_IPV6
◆ NS_ENABLE_SSL
◆ RUN_TEST
Value: do {
const char *msg =
test(); \
if (msg) return msg; } while (0)
Definition at line 24 of file unit_test.c.
◆ evh1()
◆ evh2()
◆ main()
◆ read_file()
static char* read_file |
( |
const char * |
path, |
|
|
int * |
size |
|
) |
| |
|
static |
◆ run_all_tests()
static const char* run_all_tests |
( |
void |
| ) |
|
|
static |
◆ test_base64_encode()
static const char* test_base64_encode |
( |
void |
| ) |
|
|
static |
◆ test_get_var()
static const char* test_get_var |
( |
void |
| ) |
|
|
static |
◆ test_match_prefix()
static const char* test_match_prefix |
( |
void |
| ) |
|
|
static |
◆ test_mg_parse_header()
static const char* test_mg_parse_header |
( |
void |
| ) |
|
|
static |
◆ test_mg_set_option()
static const char* test_mg_set_option |
( |
void |
| ) |
|
|
static |
◆ test_next_option()
static const char* test_next_option |
( |
void |
| ) |
|
|
static |
◆ test_parse_http_message()
static const char* test_parse_http_message |
( |
| ) |
|
|
static |
◆ test_parse_multipart()
static const char* test_parse_multipart |
( |
void |
| ) |
|
|
static |
◆ test_remove_double_dots()
static const char* test_remove_double_dots |
( |
| ) |
|
|
static |
◆ test_rewrites()
static const char* test_rewrites |
( |
void |
| ) |
|
|
static |
◆ test_server()
static const char* test_server |
( |
void |
| ) |
|
|
static |
◆ test_should_keep_alive()
static const char* test_should_keep_alive |
( |
void |
| ) |
|
|
static |
◆ test_to64()
static const char* test_to64 |
( |
void |
| ) |
|
|
static |
◆ test_url_decode()
static const char* test_url_decode |
( |
void |
| ) |
|
|
static |
◆ test_url_encode()
static const char* test_url_encode |
( |
void |
| ) |
|
|
static |
◆ static_num_tests