| 10 | // --------------------------------------------------------------------------- |
| 11 | |
| 12 | TEST(StripPrefix, RemovesPresentPrefix) { |
| 13 | EXPECT_EQ(strip_prefix("refs/heads/master", "refs/heads/"), "master"); |
| 14 | } |
| 15 | |
| 16 | TEST(StripPrefix, LeavesStringUnchangedWhenPrefixAbsent) { |
| 17 | EXPECT_EQ(strip_prefix("refs/wip/master", "refs/heads/"), "refs/wip/master"); |
nothing calls this directly
no test coverage detected