MCPcopy Create free account
hub / github.com/containers/bubblewrap / test_has_prefix

Function test_has_prefix

tests/test-utils.c:150–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static void
151test_has_prefix (void)
152{
153 g_assert_true (has_prefix ("foo", "foo"));
154 g_assert_true (has_prefix ("foobar", "foo"));
155 g_assert_false (has_prefix ("foobar", "fool"));
156 g_assert_false (has_prefix ("foo", "fool"));
157 g_assert_true (has_prefix ("foo", ""));
158 g_assert_true (has_prefix ("", ""));
159 g_assert_false (has_prefix ("", "no"));
160 g_assert_false (has_prefix ("yes", "no"));
161}
162
163static void
164test_has_path_prefix (void)

Callers 1

mainFunction · 0.85

Calls 1

has_prefixFunction · 0.85

Tested by

no test coverage detected