| 65 | } |
| 66 | |
| 67 | void test_oidmap__get(void) |
| 68 | { |
| 69 | struct test_entry *entry; |
| 70 | struct object_id oid; |
| 71 | |
| 72 | cl_parse_any_oid("22", &oid); |
| 73 | entry = oidmap_get(&map, &oid); |
| 74 | cl_assert(entry != NULL); |
| 75 | cl_assert_equal_s(entry->name, "two"); |
| 76 | |
| 77 | cl_parse_any_oid("44", &oid); |
| 78 | cl_assert(oidmap_get(&map, &oid) == NULL); |
| 79 | |
| 80 | cl_parse_any_oid("11", &oid); |
| 81 | entry = oidmap_get(&map, &oid); |
| 82 | cl_assert(entry != NULL); |
| 83 | cl_assert_equal_s(entry->name, "one"); |
| 84 | } |
| 85 | |
| 86 | void test_oidmap__remove(void) |
| 87 | { |
nothing calls this directly
no test coverage detected