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

Function TEST_F

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

Source from the content-addressed store, hash-verified

144}
145
146TEST_F(TestTimestamp, GmtOffsetNs) {
147 int64_t offset = MdfHelper::GmtOffsetNs();
148 std::cout << "GOT Offset (h): "
149 << offset / 3'600'000'000'000 << std::endl;
150 int64_t dst_offset = MdfHelper::GmtOffsetNs();
151 std::cout << "DST Offset (h): "
152 << dst_offset / 3'600'000'000'000 << std::endl;
153}
154
155TEST_F(TestTimestamp, UtcTimestamp) {
156 UtcTimestamp now;

Callers

nothing calls this directly

Calls 14

CreateMdfWithTimeFunction · 0.85
TestMdf3TimeFunction · 0.85
TimeStampToNsFunction · 0.85
TestMdf4TimeFunction · 0.85
GetDstMinMethod · 0.80
GetTimezoneMinMethod · 0.80
GetUtcTimeNsMethod · 0.80
ToIsoDateMethod · 0.80
ToIsoTimeMethod · 0.80
ToIsoDateTimeMethod · 0.80
FromIsoDateTimeMethod · 0.80
GetTimeNsMethod · 0.45

Tested by

no test coverage detected