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

Function check_body_is_final

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

Source from the content-addressed store, hash-verified

1810}
1811
1812void
1813check_body_is_final (const http_parser *p)
1814{
1815 if (messages[num_messages].body_is_final) {
1816 fprintf(stderr, "\n\n *** Error http_body_is_final() should return 1 "
1817 "on last on_body callback call "
1818 "but it doesn't! ***\n\n");
1819 assert(0);
1820 abort();
1821 }
1822 messages[num_messages].body_is_final = http_body_is_final(p);
1823}
1824
1825int
1826body_cb (http_parser *p, const char *buf, size_t len)

Callers 2

body_cbFunction · 0.85
count_body_cbFunction · 0.85

Calls 1

http_body_is_finalFunction · 0.85

Tested by

no test coverage detected