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

Method testGotSome

test/beast/http/parser.cpp:315–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313 }
314
315 void
316 testGotSome()
317 {
318 error_code ec;
319 parser_type<true> p;
320 auto used = p.put(buf(""), ec);
321 BEAST_EXPECT(ec == error::need_more);
322 BEAST_EXPECT(! p.got_some());
323 BEAST_EXPECT(used == 0);
324 ec = {};
325 used = p.put(buf("G"), ec);
326 BEAST_EXPECT(ec == error::need_more);
327 BEAST_EXPECT(p.got_some());
328 BEAST_EXPECT(used == 0);
329 }
330
331 void
332 testTrailerHeaders()

Callers

nothing calls this directly

Calls 2

got_someMethod · 0.80
putMethod · 0.45

Tested by

no test coverage detected