MCPcopy Create free account
hub / github.com/aria2/aria2 / checkDecodeError

Function checkDecodeError

test/ValueBaseJsonParserTest.cc:216–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214
215namespace {
216void checkDecodeError(const std::string& src)
217{
218 json::ValueBaseJsonParser parser;
219 ssize_t error;
220 auto r = parser.parseFinal(src.c_str(), src.size(), error);
221 CPPUNIT_ASSERT(!r);
222 CPPUNIT_ASSERT(error < 0);
223}
224} // namespace
225
226void ValueBaseJsonParserTest::testParseUpdate_error()

Callers 1

testParseUpdate_errorMethod · 0.70

Calls 2

parseFinalMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected