MCPcopy Create free account
hub / github.com/bartman/git-wip / TEST

Function TEST

test/unit/test_string_helpers.cpp:12–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10// ---------------------------------------------------------------------------
11
12TEST(StripPrefix, RemovesPresentPrefix) {
13 EXPECT_EQ(strip_prefix("refs/heads/master", "refs/heads/"), "master");
14}
15
16TEST(StripPrefix, LeavesStringUnchangedWhenPrefixAbsent) {
17 EXPECT_EQ(strip_prefix("refs/wip/master", "refs/heads/"), "refs/wip/master");

Callers

nothing calls this directly

Calls 5

strip_prefixFunction · 0.85
strip_prefix_inplaceFunction · 0.85
first_lineFunction · 0.85
relative_timeFunction · 0.85
seconds_agoFunction · 0.85

Tested by

no test coverage detected