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

Function chunk_complete_cb

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

Source from the content-addressed store, hash-verified

1924}
1925
1926int
1927chunk_complete_cb (http_parser *p)
1928{
1929 assert(p == parser);
1930
1931 /* Here we want to verify that each chunk_header_cb is matched by a
1932 * chunk_complete_cb, so not only should the total number of calls to
1933 * both callbacks be the same, but they also should be interleaved
1934 * properly */
1935 assert(messages[num_messages].num_chunks ==
1936 messages[num_messages].num_chunks_complete + 1);
1937
1938 messages[num_messages].num_chunks_complete++;
1939 return 0;
1940}
1941
1942/* These dontcall_* callbacks exist so that we can verify that when we're
1943 * paused, no additional callbacks are invoked */

Callers 1

pause_chunk_complete_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected