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

Method testClear

test/string.cpp:1373–1396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1371 }
1372
1373 void
1374 testClear()
1375 {
1376 test_vectors const t;
1377
1378 // clear()
1379 {
1380 {
1381 string s(t.v1);
1382 s.clear();
1383 BOOST_TEST(s.empty());
1384 BOOST_TEST(s.size() == 0);
1385 BOOST_TEST(s.capacity() > 0);
1386 }
1387
1388 {
1389 string s(t.v2);
1390 s.clear();
1391 BOOST_TEST(s.empty());
1392 BOOST_TEST(s.size() == 0);
1393 BOOST_TEST(s.capacity() > 0);
1394 }
1395 }
1396 }
1397
1398 void
1399 testInsert()

Callers

nothing calls this directly

Calls 4

clearMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
capacityMethod · 0.45

Tested by

no test coverage detected