MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / test_preserve_data

Function test_preserve_data

libs/qhttpserver/http-parser/test.c:2468–2479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2466}
2467
2468void
2469test_preserve_data (void)
2470{
2471 char my_data[] = "application-specific data";
2472 http_parser parser;
2473 parser.data = my_data;
2474 http_parser_init(&parser, HTTP_REQUEST);
2475 if (parser.data != my_data) {
2476 printf("\n*** parser.data not preserved accross http_parser_init ***\n\n");
2477 abort();
2478 }
2479}
2480
2481struct url_test {
2482 const char *name;

Callers 1

mainFunction · 0.85

Calls 1

http_parser_initFunction · 0.85

Tested by

no test coverage detected