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

Function ReadTestData

libs/coding/coding_tests/writer_test.cpp:205–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void ReadTestData(Reader & r)
206{
207 string s;
208 r.ReadAsString(s);
209 for (size_t i = 0; i < CHUNKS_COUNT; ++i)
210 for (size_t j = 0; j < CHUNK_SIZE; ++j)
211 TEST_EQUAL(s[i * CHUNK_SIZE + j], static_cast<char>(i), (i, j));
212 string const sub = s.substr(CHUNKS_COUNT * CHUNK_SIZE);
213 TEST_EQUAL(sub, TEST_STRING, (sub, TEST_STRING));
214}
215template <typename WriterType>
216void WriteToFileAndTest()
217{

Callers 2

WriteToFileAndTestFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 1

ReadAsStringMethod · 0.45

Tested by

no test coverage detected