MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / test_parse_msg

Function test_parse_msg

parser/test/test_parser.c:181–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179};
180
181void test_parse_msg(void)
182{
183 int i;
184
185 for (i = 0; i < sizeof tset/sizeof *tset; i++) {
186 struct sip_msg msg;
187
188 memset(&msg, 0, sizeof msg);
189 msg.buf = (char *)tset[i].tmsg;
190 msg.len = strlen(msg.buf);
191
192 ok(parse_msg(msg.buf, msg.len, &msg) == tset[i].tres, "parse-msg-t%d", i);
193 }
194}
195
196
197void test_parser(void)

Callers 1

test_parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected