| 214 | } |
| 215 | template <typename WriterType> |
| 216 | void WriteToFileAndTest() |
| 217 | { |
| 218 | string const TEST_FILE = "FileWriter_Chunks.test"; |
| 219 | { |
| 220 | WriterType fileWriter(TEST_FILE, FileWriter::OP_WRITE_TRUNCATE); |
| 221 | WriteTestData1(fileWriter); |
| 222 | } |
| 223 | { |
| 224 | WriterType fileWriter(TEST_FILE, FileWriter::OP_WRITE_EXISTING); |
| 225 | WriteTestData2(fileWriter); |
| 226 | } |
| 227 | { |
| 228 | FileReader r(TEST_FILE); |
| 229 | ReadTestData(r); |
| 230 | } |
| 231 | FileWriter::DeleteFileX(TEST_FILE); |
| 232 | } |
| 233 | |
| 234 | UNIT_TEST(FileWriter_Chunks) |
| 235 | { |
nothing calls this directly
no test coverage detected