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

Function test_memcmp_equal

tests/lib/memcmp-test.c:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static void test_memcmp_equal(void **state)
27{
28 const int res_cb = cb_memcmp(test_data1, test_data1, test_data1_sz);
29 const int res_std = memcmp(test_data1, test_data1, test_data1_sz);
30
31 assert_int_equal(0, res_cb);
32 assert_int_equal(res_cb, res_std);
33}
34
35static void test_memcmp_first_not_matching_lower(void **state)
36{

Callers

nothing calls this directly

Calls 1

memcmpFunction · 0.50

Tested by

no test coverage detected