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

Method good_impl

test/parse.cpp:38–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37 template <class ErrorCode>
38 void
39 good_impl(string_view s)
40 {
41 ErrorCode ec;
42 auto jv = parse(s, ec);
43 if(! BOOST_TEST(! ec))
44 return;
45 BOOST_TEST(
46 serialize(jv) == s);
47
48 std::stringstream ss(s);
49 auto jv2 = parse(ss, ec);
50 if(! BOOST_TEST(! ec))
51 return;
52 BOOST_TEST( jv == jv2 );
53 }
54
55 template <class ErrorCode>
56 void

Callers

nothing calls this directly

Calls 1

serializeFunction · 0.85

Tested by

no test coverage detected