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

Method testArray

test/limits.cpp:123–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 void
124 testArray()
125 {
126 BOOST_TEST_THROWS_WITH_LOCATION(
127 array(
128 array::max_size()+1,
129 value(nullptr)) );
130
131 {
132 std::vector<int> v(
133 array::max_size()+1, 42);
134 BOOST_TEST_THROWS_WITH_LOCATION(
135 array(v.begin(), v.end()) );
136 }
137
138 {
139 std::vector<int> v(
140 array::max_size()+1, 42);
141 BOOST_TEST_THROWS_WITH_LOCATION(
142 array(
143 make_input_iterator(v.begin()),
144 make_input_iterator(v.end())) );
145 }
146
147 {
148 array a;
149 BOOST_TEST_THROWS_WITH_LOCATION(
150 a.insert(a.begin(),
151 array::max_size() + 1,
152 nullptr) );
153 }
154 }
155
156 void
157 testString()

Callers

nothing calls this directly

Calls 6

make_input_iteratorFunction · 0.85
valueClass · 0.70
arrayClass · 0.50
beginMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected