MCPcopy Create free account
hub / github.com/comaps/comaps / WriteToFileAndTest

Function WriteToFileAndTest

libs/coding/coding_tests/writer_test.cpp:216–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215template <typename WriterType>
216void 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
234UNIT_TEST(FileWriter_Chunks)
235{

Callers

nothing calls this directly

Calls 4

WriteTestData1Function · 0.85
WriteTestData2Function · 0.85
ReadTestDataFunction · 0.85
DeleteFileXFunction · 0.85

Tested by

no test coverage detected