MCPcopy Create free account
hub / github.com/boostorg/beast / testFlatten

Method testFlatten

test/beast/http/basic_parser.cpp:282–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 //--------------------------------------------------------------------------
281
282 void
283 testFlatten()
284 {
285 parsegrind<test_parser<true>>(
286 "GET / HTTP/1.1\r\n"
287 "\r\n"
288 );
289 parsegrind<test_parser<true>>(
290 "POST / HTTP/1.1\r\n"
291 "Content-Length: 5\r\n"
292 "\r\n"
293 "*****"
294 );
295 parsegrind<test_parser<false>>(
296 "HTTP/1.1 403 Not Found\r\n"
297 "\r\n"
298 );
299 parsegrind<test_parser<false>>(
300 "HTTP/1.1 200 OK\r\n"
301 "Content-Length: 5\r\n"
302 "\r\n"
303 "*****"
304 );
305 parsegrind<test_parser<false>>(
306 "HTTP/1.1 200 OK\r\n"
307 "Transfer-Encoding: chunked\r\n"
308 "\r\n"
309 "5;x\r\n*****\r\n"
310 "0\r\nMD5: 0xff30\r\n"
311 "\r\n"
312 );
313 parsegrind<test_parser<false>>(
314 "HTTP/1.1 200 OK\r\n"
315 "\r\n"
316 "*****"
317 );
318 }
319
320 void
321 testObsFold()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected