MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / TestMdf3Time

Function TestMdf3Time

lib/mdflib/mdflib_test/src/testtimestamp.cpp:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void TestMdf3Time(const std::string& filepath, uint64_t time) {
73 MdfReader reader(filepath);
74 ASSERT_TRUE(reader.IsOk());
75 ASSERT_TRUE(reader.ReadHeader());
76 const auto* file1 = reader.GetFile();
77 ASSERT_TRUE(file1 != nullptr);
78 const auto* header1 = file1->Header();
79 ASSERT_TRUE(header1 != nullptr);
80
81 EXPECT_EQ(header1->StartTime(), time) << filepath;
82}
83
84void TestMdf4Time(const std::string& filepath, uint64_t time,
85 uint16_t tz_offset_min, uint16_t dst_offset_min) {

Callers 1

TEST_FFunction · 0.85

Calls 5

IsOkMethod · 0.45
ReadHeaderMethod · 0.45
GetFileMethod · 0.45
HeaderMethod · 0.45
StartTimeMethod · 0.45

Tested by

no test coverage detected