HomePort
Data Structures | Functions | Variables
header_parser_test.c File Reference
Include dependency graph for header_parser_test.c:

Go to the source code of this file.

Data Structures

struct  data
 

Functions

 ASSERT_EQUAL (data.count, 2)
 
 hp_destroy (hp)
 
 hp_on_header_complete (hp)
 
 hp_on_header_field (hp,"cat", 3)
 
 hp_on_header_field (hp,"dog", 3)
 
 hp_on_header_value (hp,"yes", 3)
 
 hp_on_header_value (hp,"yes, thi", 8)
 
 hp_on_header_value (hp,"s is dog", 8)
 
void on_field_value (void *_data, const char *field, size_t field_length, const char *value, size_t value_length)
 

Variables

 _errors = data.errors
 
data count = 0
 
struct data data = &data
 
data errors = 0
 
data field = "cat\0dog"
 
struct hphp = hp_create(&settings)
 
settings on_field_value_pair = &on_field_value
 
struct hp_settings settings = HP_SETTINGS_DEFAULT
 
data value = "yes\0yes, this is dog"
 

Data Structure Documentation

struct data

Definition at line 32 of file header_parser_test.c.

Collaboration diagram for data:
Data Fields
int _errors
char * body
int call_order
int count
int cur_key_value
int cur_path
int errors
char * field
int hdr_count
char * hdr_field
int hdr_field_l
char * hdr_value
int hdr_value_l
char * host
char * key
char * method
char * path
char * port
char * protocol
int state
char * url
char * value

Function Documentation

ASSERT_EQUAL ( data.  count,
 
)

Here is the caller graph for this function:

hp_destroy ( hp  )
hp_on_header_complete ( hp  )
hp_on_header_field ( hp  ,
"cat"  ,
 
)
hp_on_header_field ( hp  ,
"dog"  ,
 
)
hp_on_header_value ( hp  ,
"yes"  ,
 
)
hp_on_header_value ( hp  ,
yes,
thi"  ,
 
)
hp_on_header_value ( hp  ,
"s is dog"  ,
 
)
void on_field_value ( void *  _data,
const char *  field,
size_t  field_length,
const char *  value,
size_t  value_length 
)

Definition at line 39 of file header_parser_test.c.

Here is the call graph for this function:

Variable Documentation

_errors = data.errors

Definition at line 85 of file header_parser_test.c.

data count = 0

Definition at line 68 of file header_parser_test.c.

struct data data = &data

Definition at line 65 of file header_parser_test.c.

data errors = 0

Definition at line 69 of file header_parser_test.c.

data field = "cat\0dog"

Definition at line 66 of file header_parser_test.c.

struct hp* hp = hp_create(&settings)

Definition at line 72 of file header_parser_test.c.

settings on_field_value_pair = &on_field_value

Definition at line 61 of file header_parser_test.c.

struct hp_settings settings = HP_SETTINGS_DEFAULT

Definition at line 60 of file header_parser_test.c.

data value = "yes\0yes, this is dog"

Definition at line 67 of file header_parser_test.c.