MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / testPathParenthood

Function testPathParenthood

tests/vfs.cc:18–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18static void testPathParenthood()
19{
20 AssertThat(Path("").parent(), Equals(std::vector<std::string>{}));
21 AssertThat(Path("one").parent(), Equals(std::vector<std::string>{}));
22 AssertThat(
23 Path("one/two").parent(), Equals(std::vector<std::string>{"one"}));
24 AssertThat(Path("one/two/three").parent(),
25 Equals(std::vector<std::string>{"one", "two"}));
26}
27
28int main(void)
29{

Callers 1

mainFunction · 0.85

Calls 2

parentMethod · 0.80
PathClass · 0.50

Tested by

no test coverage detected