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

Method run

test/no_exceptions.cpp:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28{
29public:
30 void
31 run()
32 {
33 system::error_code ec;
34 value jv = parse(" 1 ", ec);
35 BOOST_TEST( !ec.failed() );
36 BOOST_TEST( jv == 1 );
37
38 jv = parse(" x ", ec);
39 BOOST_TEST( ec == error::syntax );
40 }
41};
42
43TEST_SUITE(no_exceptions, "boost.json.no_exceptions");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected