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

Function testPathParsing

tests/vfs.cc:8–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace snowhouse;
7
8static void testPathParsing()
9{
10 AssertThat(Path(""), Equals(std::vector<std::string>{}));
11 AssertThat(Path("/"), Equals(std::vector<std::string>{}));
12 AssertThat(Path("one"), Equals(std::vector<std::string>{"one"}));
13 AssertThat(Path("one/two"), Equals(std::vector<std::string>{"one", "two"}));
14 AssertThat(
15 Path("/one/two"), Equals(std::vector<std::string>{"one", "two"}));
16}
17
18static void testPathParenthood()
19{

Callers 1

mainFunction · 0.85

Calls 1

PathClass · 0.50

Tested by

no test coverage detected