| 473 | } |
| 474 | |
| 475 | void UtilTest2::testToString_binaryStream() |
| 476 | { |
| 477 | std::shared_ptr<DiskWriter> dw(new ByteArrayDiskWriter()); |
| 478 | std::string data(16_k + 256, 'a'); |
| 479 | dw->initAndOpenFile(); |
| 480 | dw->writeData((const unsigned char*)data.c_str(), data.size(), 0); |
| 481 | |
| 482 | std::string readData = util::toString(dw); |
| 483 | |
| 484 | CPPUNIT_ASSERT_EQUAL(data, readData); |
| 485 | } |
| 486 | |
| 487 | void UtilTest2::testItos() |
| 488 | { |
nothing calls this directly
no test coverage detected