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

Method testIssue818

test/beast/http/parser.cpp:443–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441 }
442
443 void
444 testIssue818()
445 {
446 // Make sure that the parser clears pre-existing fields
447 request<string_body> m;
448 m.set(field::accept, "html/text");
449 BEAST_EXPECT(std::distance(m.begin(), m.end()) == 1);
450 request_parser<string_body> p{std::move(m)};
451 BEAST_EXPECT(std::distance(m.begin(), m.end()) == 0);
452 auto& m1 = p.get();
453 BEAST_EXPECT(std::distance(m1.begin(), m1.end()) == 0);
454 }
455
456 void
457 testIssue1187()

Callers

nothing calls this directly

Calls 4

moveClass · 0.85
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected