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

Function CheckFileOK

libs/coding/coding_tests/file_data_test.cpp:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26#ifdef OMIM_OS_WINDOWS
27void CheckFileOK(std::string const & name)
28{
29 base::FileData f(name, base::FileData::Op::READ);
30
31 uint64_t const size = f.Size();
32 TEST_EQUAL(size, name.size(), ());
33
34 std::vector<char> buffer(size);
35 f.Read(0, &buffer[0], size);
36 TEST(equal(name.begin(), name.end(), buffer.begin()), ());
37}
38#endif
39
40UNIT_TEST(FileData_ApiSmoke)

Callers

nothing calls this directly

Calls 6

TESTFunction · 0.85
SizeMethod · 0.45
sizeMethod · 0.45
ReadMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected