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

Method test_vectors

test/string.cpp:57–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 std::string const s2;
56
57 test_vectors()
58 : s1([&]
59 {
60 std::string s;
61 s.resize(string{}.capacity());
62 std::iota(s.begin(), s.end(), 'a');
63 return s;
64 }())
65 , s2([&]
66 {
67 std::string s;
68 s.resize(string{}.capacity() + 1);
69 std::iota(s.begin(), s.end(), 'A');
70 return s;
71 }())
72 {
73 v1 = s1;
74 v2 = s2;
75
76 BOOST_TEST(std::string(INIT1) == s1);
77 BOOST_TEST(std::string(INIT2) == s2);
78 }
79 };
80
81 static

Callers

nothing calls this directly

Calls 5

resizeMethod · 0.80
stringClass · 0.50
capacityMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected