MCPcopy Create free account
hub / github.com/AshampooSystems/boden / TEST

Function TEST

tests/boden/testString.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace bdn
8{
9 TEST(String, ToDuration)
10 {
11 EXPECT_EQ(string_to_duration("10ns"), 10ns);
12 EXPECT_EQ(string_to_duration("10us"), 10us);
13 EXPECT_EQ(string_to_duration("10ms"), 10ms);
14 EXPECT_EQ(string_to_duration("10s"), 10s);
15 EXPECT_EQ(string_to_duration("10min"), 10min);
16 EXPECT_EQ(string_to_duration("10h"), 10h);
17 }
18
19 TEST(String, FromDuration)
20 {

Callers

nothing calls this directly

Calls 2

string_to_durationFunction · 0.85
duration_to_stringFunction · 0.85

Tested by

no test coverage detected