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

Function test_header_nread_value

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

Source from the content-addressed store, hash-verified

3195
3196
3197void
3198test_header_nread_value ()
3199{
3200 http_parser parser;
3201 http_parser_init(&parser, HTTP_REQUEST);
3202 size_t parsed;
3203 const char *buf;
3204 buf = "GET / HTTP/1.1\r\nheader: value\nhdr: value\r\n";
3205 parsed = http_parser_execute(&parser, &settings_null, buf, strlen(buf));
3206 assert(parsed == strlen(buf));
3207
3208 assert(parser.nread == strlen(buf));
3209}
3210
3211
3212static void

Callers 1

mainFunction · 0.85

Calls 2

http_parser_initFunction · 0.85
http_parser_executeFunction · 0.85

Tested by

no test coverage detected