Lines Matching full:check

51 	if (CHECK(IS_ERR(map), "hashmap__new",  in test_hashmap_generic()
60 if (CHECK(err != -ENOENT, "hashmap__update", in test_hashmap_generic()
68 if (CHECK(oldk != NULL || oldv != NULL, "check_kv", in test_hashmap_generic()
73 if (CHECK(err, "elem_add", "failed to add k/v %ld = %ld: %d\n", in test_hashmap_generic()
77 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
80 if (CHECK(oldv != v, "elem_val", in test_hashmap_generic()
85 if (CHECK(hashmap__size(map) != ELEM_CNT, "hashmap__size", in test_hashmap_generic()
88 if (CHECK(hashmap__capacity(map) != exp_cap(hashmap__size(map)), in test_hashmap_generic()
99 if (CHECK(v - k != 1024, "check_kv", in test_hashmap_generic()
103 if (CHECK(found_msk != (1ULL << ELEM_CNT) - 1, "elem_cnt", in test_hashmap_generic()
112 if (CHECK(err != -EEXIST, "hashmap__add", in test_hashmap_generic()
121 if (CHECK(err, "elem_upd", in test_hashmap_generic()
125 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
128 if (CHECK(oldv != v, "elem_val", in test_hashmap_generic()
133 if (CHECK(hashmap__size(map) != ELEM_CNT, "hashmap__size", in test_hashmap_generic()
136 if (CHECK(hashmap__capacity(map) != exp_cap(hashmap__size(map)), in test_hashmap_generic()
147 if (CHECK(v - k != 256, "elem_check", in test_hashmap_generic()
151 if (CHECK(found_msk != (1ULL << ELEM_CNT) - 1, "elem_cnt", in test_hashmap_generic()
159 if (CHECK(!found_cnt, "found_cnt", in test_hashmap_generic()
175 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
179 if (CHECK(oldk != k || oldv != v, "check_old", in test_hashmap_generic()
183 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
189 if (CHECK(!found_cnt || !found_msk, "found_entries", in test_hashmap_generic()
192 if (CHECK(hashmap__size(map) != ELEM_CNT - found_cnt, "elem_cnt", in test_hashmap_generic()
196 if (CHECK(hashmap__capacity(map) != exp_cap(hashmap__size(map)), in test_hashmap_generic()
211 if (CHECK(!hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
215 if (CHECK(oldk != k || oldv != v, "elem_check", in test_hashmap_generic()
219 if (CHECK(hashmap__delete(map, k, &oldk, &oldv), "elem_del", in test_hashmap_generic()
225 if (CHECK(found_cnt != ELEM_CNT || found_msk != (1ULL << ELEM_CNT) - 1, in test_hashmap_generic()
230 if (CHECK(hashmap__size(map) != 0, "hashmap__size", in test_hashmap_generic()
237 CHECK(false, "elem_exists", in test_hashmap_generic()
245 CHECK(false, "elem_exists", in test_hashmap_generic()
270 if (CHECK(IS_ERR(map), "hashmap__new", in test_hashmap_multimap()
279 if (CHECK(err, "elem_add", "failed to add k/v: %d\n", err)) in test_hashmap_multimap()
282 if (CHECK(err, "elem_add", "failed to add k/v: %d\n", err)) in test_hashmap_multimap()
285 if (CHECK(err, "elem_add", "failed to add k/v: %d\n", err)) in test_hashmap_multimap()
289 if (CHECK(err, "elem_add", "failed to add k/v: %d\n", err)) in test_hashmap_multimap()
292 if (CHECK(err, "elem_add", "failed to add k/v: %d\n", err)) in test_hashmap_multimap()
295 if (CHECK(err, "elem_add", "failed to add k/v: %d\n", err)) in test_hashmap_multimap()
298 if (CHECK(hashmap__size(map) != 6, "hashmap_size", in test_hashmap_multimap()
307 if (CHECK(found_msk != (1 << 6) - 1, "found_msk", in test_hashmap_multimap()
316 if (CHECK(found_msk != (1 | 2 | 4), "found_msk", in test_hashmap_multimap()
325 if (CHECK(found_msk != (8 | 16 | 32), "found_msk", in test_hashmap_multimap()
342 if (CHECK(IS_ERR(map), "hashmap__new", in test_hashmap_empty()
346 if (CHECK(hashmap__size(map) != 0, "hashmap__size", in test_hashmap_empty()
349 if (CHECK(hashmap__capacity(map) != 0, "hashmap__capacity", in test_hashmap_empty()
352 if (CHECK(hashmap__find(map, k, NULL), "elem_find", in test_hashmap_empty()
355 if (CHECK(hashmap__delete(map, k, NULL, NULL), "elem_del", in test_hashmap_empty()
360 CHECK(false, "elem_found", "unexpected iterated entry\n"); in test_hashmap_empty()
364 CHECK(false, "key_found", "unexpected key entry\n"); in test_hashmap_empty()