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

Method testValue

test/limits.cpp:34–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32{
33public:
34 void
35 testValue()
36 {
37 // object too large
38 {
39 std::initializer_list<std::pair<
40 string_view, value_ref>> init = {
41 { "1", 1},{ "2", 2},{ "3", 3},{ "4", 4},{ "5", 5},
42 { "6", 6},{ "7", 7},{ "8", 8},{ "9", 9},{"10",10},
43 {"11",11},{"12",12},{"13",13},{"14",14},{"15",15},
44 {"16",16},{"17",17},{"18",18},{"19",19},{"10",10},
45 {"21",21},{"22",22},{"23",23},{"24",24},{"25",25},
46 {"26",26},{"27",27},{"28",28},{"29",29},{"30",30},
47 {"31",31}};
48 BOOST_TEST(init.size() > object::max_size());
49 BOOST_TEST_THROWS_WITH_LOCATION( value{init} );
50 }
51 }
52
53 void
54 testObject()

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected