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

Function WriteTestData2

libs/coding/coding_tests/writer_test.cpp:186–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void WriteTestData2(Writer & w)
187{
188 char c[CHUNK_SIZE];
189 for (size_t i = 1; i < CHUNKS_COUNT; i += 2)
190 {
191 for (size_t j = 0; j < ARRAY_SIZE(c); ++j)
192 c[j] = i;
193 w.Seek(i * CHUNK_SIZE);
194 w.Write(&c[0], ARRAY_SIZE(c));
195 }
196 for (size_t i = 0; i < CHUNKS_COUNT; i += 2)
197 {
198 for (size_t j = 0; j < ARRAY_SIZE(c); ++j)
199 c[j] = i;
200 w.Seek(i * CHUNK_SIZE);
201 w.Write(&c[0], ARRAY_SIZE(c));
202 }
203}
204
205void ReadTestData(Reader & r)
206{

Callers 2

WriteToFileAndTestFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 2

SeekMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected