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

Method testIssue496

test/beast/http/basic_parser.cpp:1171–1187  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1169
1170 // https://github.com/boostorg/beast/issues/496
1171 void
1172 testIssue496()
1173 {
1174 // The bug affected hex parsing with leading zeroes
1175 using P = test_parser<false>;
1176 parsegrind<P>(
1177 "HTTP/1.1 200 OK\r\n"
1178 "Transfer-Encoding: chunked\r\n"
1179 "Content-Type: application/octet-stream\r\n"
1180 "\r\n"
1181 "0004\r\nabcd\r\n"
1182 "0\r\n\r\n"
1183 ,[&](P const& p)
1184 {
1185 BEAST_EXPECT(p.body == "abcd");
1186 });
1187 }
1188
1189 // https://github.com/boostorg/beast/issues/692
1190 void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected