| 21 | |
| 22 | namespace { |
| 23 | void 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 | |
| 34 | void ValueBaseBencodeParserTest::testParseUpdate() |
no test coverage detected