MCPcopy Create free account
hub / github.com/Snapchat/Valdi / TEST

Function TEST

valdi/test/runtime/PathUtils_tests.cpp:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace ValdiTest {
8
9TEST(PathUtils, isAbsolutePathAcceptance) {
10 ASSERT_EQ(Path("/").isAbsolute(), true);
11 ASSERT_EQ(Path("").isAbsolute(), false);
12 ASSERT_EQ(Path("/test/dir").isAbsolute(), true);
13 ASSERT_EQ(Path("test/dir").isAbsolute(), false);
14}
15
16TEST(PathUtils, normalizePathAcceptance) {
17 ASSERT_EQ(Path("").normalize().toString(), "");

Callers

nothing calls this directly

Calls 7

isAbsoluteMethod · 0.80
startsWithMethod · 0.80
getFileExtensionMethod · 0.80
toStringMethod · 0.65
appendMethod · 0.65
PathClass · 0.50
normalizeMethod · 0.45

Tested by

no test coverage detected