MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / TEST

Function TEST

tests/tests/time.cpp:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22using agi::Time;
23
24TEST(lagi_time, out_of_range_times) {
25 EXPECT_EQ(0, (int)Time(-1));
26 EXPECT_EQ(10 * 60 * 60 * 1000 - 10, (int)Time(10 * 60 * 60 * 1000));
27}
28
29TEST(lagi_time, rounds_to_cs) {
30 EXPECT_EQ(10, (int)Time(14));

Callers

nothing calls this directly

Calls 6

GetAssFormattedMethod · 0.80
GetSrtFormattedMethod · 0.80
FromSMPTEMethod · 0.80
ToSMPTEMethod · 0.80
TimeClass · 0.50
SmpteFormatterClass · 0.50

Tested by

no test coverage detected