MCPcopy Index your code
hub / github.com/git/git / test_oidmap__initialize

Function test_oidmap__initialize

t/unit-tests/u-oidmap.c:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28static struct oidmap map;
29
30void test_oidmap__initialize(void)
31{
32 oidmap_init(&map, 0);
33
34 for (size_t i = 0; i < ARRAY_SIZE(key_val); i++){
35 struct test_entry *entry;
36
37 FLEX_ALLOC_STR(entry, name, key_val[i][1]);
38 cl_parse_any_oid(key_val[i][0], &entry->entry.oid);
39 cl_assert(oidmap_put(&map, entry) == NULL);
40 }
41}
42
43void test_oidmap__cleanup(void)
44{

Callers

nothing calls this directly

Calls 3

oidmap_initFunction · 0.85
cl_parse_any_oidFunction · 0.85
oidmap_putFunction · 0.85

Tested by

no test coverage detected