| 28 | static struct oidmap map; |
| 29 | |
| 30 | void 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 | |
| 43 | void test_oidmap__cleanup(void) |
| 44 | { |
nothing calls this directly
no test coverage detected