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

Method testIssue452

test/beast/http/basic_parser.cpp:1153–1168  ·  view source on GitHub ↗

https://github.com/boostorg/beast/issues/452

Source from the content-addressed store, hash-verified

1151
1152 // https://github.com/boostorg/beast/issues/452
1153 void
1154 testIssue452()
1155 {
1156 error_code ec;
1157 test_parser<true> p;
1158 p.eager(true);
1159 string_view s =
1160 "GET / HTTP/1.1\r\n"
1161 "\r\n"
1162 "die!";
1163 p.put(net::buffer(
1164 s.data(), s.size()), ec);
1165 if(! BEAST_EXPECTS(! ec, ec.message()))
1166 return;
1167 BEAST_EXPECT(p.is_done());
1168 }
1169
1170 // https://github.com/boostorg/beast/issues/496
1171 void

Callers

nothing calls this directly

Calls 6

eagerMethod · 0.80
messageMethod · 0.80
putMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
is_doneMethod · 0.45

Tested by

no test coverage detected