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

Method testSentinelOverlap

test/stream_parser.cpp:1258–1268  ·  view source on GitHub ↗

https://github.com/boostorg/json/pull/814

Source from the content-addressed store, hash-verified

1256
1257 // https://github.com/boostorg/json/pull/814
1258 void
1259 testSentinelOverlap()
1260 {
1261 struct {
1262 char buffer[8];
1263 boost::json::stream_parser p;
1264 } s;
1265 memcpy(s.buffer, "{\"12345\"", 8);
1266 s.p.write(s.buffer, sizeof(s.buffer));
1267 s.p.write(":0}", 3);
1268 }
1269
1270 void
1271 testSpecialNumbers()

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected