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

Method from_string_test

test/stream_parser.cpp:328–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 //------------------------------------------------------
327
328 static
329 value
330 from_string_test(
331 string_view s,
332 storage_ptr sp = {},
333 const parse_options& po = parse_options())
334 {
335 stream_parser p(storage_ptr(), po);
336 system::error_code ec;
337 p.reset(std::move(sp));
338 p.write(s.data(), s.size(), ec);
339 if(BOOST_TEST(! ec))
340 p.finish(ec);
341 BOOST_TEST(! ec);
342 return p.release();
343 }
344
345 void
346 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