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

Function checkDecodeError

test/ValueBaseBencodeParserTest.cc:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22namespace {
23void checkDecodeError(const std::string& src)
24{
25 bittorrent::ValueBaseBencodeParser parser;
26 ssize_t error;
27 std::shared_ptr<ValueBase> r =
28 parser.parseFinal(src.c_str(), src.size(), error);
29 CPPUNIT_ASSERT(!r);
30 CPPUNIT_ASSERT(error < 0);
31}
32} // namespace
33
34void ValueBaseBencodeParserTest::testParseUpdate()

Callers 1

testParseUpdateMethod · 0.70

Calls 2

parseFinalMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected