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

Function FillRandFile

libs/coding/coding_tests/reader_writer_ops_test.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void FillRandFile(string const & fName, size_t count)
40{
41 FileWriter writer(fName);
42
43 base::UniformRandom<int8_t> rand;
44
45 while (count-- > 0)
46 {
47 int8_t const c = rand();
48 writer.Write(&c, 1);
49 }
50}
51} // namespace
52
53UNIT_TEST(Reverse_Smoke)

Callers 1

UNIT_TESTFunction · 0.85

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected