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

Method testDigest

test/pointer.cpp:365–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363 }
364
365 void
366 testDigest()
367 {
368 value jv;
369 object& jo = jv.emplace_object();
370 for(auto i = 0; i < 100; ++i)
371 jo[std::to_string(i)] = i;
372
373 for(auto i = 0; i < 4; ++i)
374 {
375 std::string key(i * 4, 'c');
376 jo[key] = 1;
377 BOOST_TEST( jv.at_pointer("/" + key) == 1 );
378
379 key += 'a';
380 jo[key] = 1;
381 BOOST_TEST( jv.at_pointer("/" + key) == 1 );
382
383 key += 'b';
384 jo[key] = 1;
385 BOOST_TEST( jv.at_pointer("/" + key) == 1 );
386
387 key += 'c';
388 jo[key] = 1;
389 BOOST_TEST( jv.at_pointer("/" + key) == 1 );
390 }
391 }
392
393 void
394 run()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected