MCPcopy Create free account
hub / github.com/coreboot/coreboot / test_strspn

Function test_strspn

tests/lib/string-test.c:169–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169static void test_strspn(void **state)
170{
171 char str[] = "4213401234";
172 char str2[] = "01234";
173 char str3[] = "1234";
174
175 assert_int_equal(5, strspn(str, str3));
176 assert_int_equal(0, strspn(str2, str3));
177}
178
179static void test_strcspn(void **state)
180{

Callers

nothing calls this directly

Calls 1

strspnFunction · 0.50

Tested by

no test coverage detected