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

Method testCopy

test/string.cpp:2460–2483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2458 }
2459
2460 void
2461 testCopy()
2462 {
2463 test_vectors const t;
2464
2465 // copy(char*, count, pos)
2466 {
2467 {
2468 string s(t.v1);
2469 std::string d;
2470 d.resize(s.size());
2471 s.copy(&d[0], d.size(), 0);
2472 BOOST_TEST(d == t.v1);
2473 }
2474
2475 {
2476 string s(t.v1);
2477 std::string d;
2478 d.resize(s.size());
2479 s.copy(&d[0], d.size());
2480 BOOST_TEST(d == t.v1);
2481 }
2482 }
2483 }
2484
2485 void
2486 testResize()

Callers

nothing calls this directly

Calls 3

resizeMethod · 0.80
copyMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected