MCPcopy Create free account
hub / github.com/boostorg/json / testIssue876

Method testIssue876

test/stream_parser.cpp:1243–1255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241 }
1242
1243 void
1244 testIssue876()
1245 {
1246 stream_parser p;
1247 p.write_some( R"("\u20")", 5 );
1248
1249 std::string s = "19";
1250 for( std::size_t i = 0; i < BOOST_JSON_STACK_BUFFER_SIZE; ++i )
1251 s += " ";
1252 s += "\"";
1253 p.write_some( s.data(), s.size() ); // this asserted because of a bug
1254 BOOST_TEST( p.release().is_string() );
1255 }
1256
1257 // https://github.com/boostorg/json/pull/814
1258 void

Callers

nothing calls this directly

Calls 5

is_stringMethod · 0.80
write_someMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected