| 47 | } |
| 48 | |
| 49 | TEST(FileInfo, BaseName) { |
| 50 | auto info = FileInfo(); |
| 51 | ASSERT_EQ(info.base_name(), ""); |
| 52 | info.set_path("foo"); |
| 53 | ASSERT_EQ(info.base_name(), "foo"); |
| 54 | info.set_path("foo/bar/baz.qux"); |
| 55 | ASSERT_EQ(info.base_name(), "baz.qux"); |
| 56 | } |
| 57 | |
| 58 | TEST(PathUtil, SplitAbstractPath) { |
| 59 | std::vector<std::string> parts; |
nothing calls this directly
no test coverage detected