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

Method from_string_test

test/double.cpp:90–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 static
91 value
92 from_string_test(
93 string_view s,
94 storage_ptr sp = {},
95 const parse_options& po = parse_options())
96 {
97 stream_parser p(storage_ptr(), po);
98 system::error_code ec;
99 p.reset(std::move(sp));
100 p.write(s.data(), s.size(), ec);
101 if(BOOST_TEST(! ec))
102 p.finish(ec);
103 BOOST_TEST(! ec);
104 return p.release();
105 }
106
107 void
108 static

Callers

nothing calls this directly

Calls 8

parse_optionsClass · 0.85
finishMethod · 0.80
storage_ptrClass · 0.50
resetMethod · 0.45
writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected