Lines Matching refs:unit_assert

97 	unit_assert( bin_find_entry(table, &bin, h, k, NULL) == NULL );  in test_bin_find_entry()
105 unit_assert( bin_find_entry(table, &bin, myhash(13), k, NULL) == NULL ); in test_bin_find_entry()
108 unit_assert( k->entry.hash == k2->entry.hash ); in test_bin_find_entry()
109 unit_assert( bin_find_entry(table, &bin, h, k2, NULL) == NULL ); in test_bin_find_entry()
112 unit_assert( bin_find_entry(table, &bin, h, k, NULL) == &k->entry ); in test_bin_find_entry()
118 unit_assert( bin_find_entry(table, &bin, h, k, NULL) == NULL ); in test_bin_find_entry()
123 unit_assert( k->entry.hash == k4->entry.hash ); in test_bin_find_entry()
130 unit_assert( bin_find_entry(table, &bin, myhash(13), k, NULL) == NULL ); in test_bin_find_entry()
133 unit_assert( k->entry.hash == k2->entry.hash ); in test_bin_find_entry()
134 unit_assert( bin_find_entry(table, &bin, h, k2, NULL) == NULL ); in test_bin_find_entry()
137 unit_assert( bin_find_entry(table, &bin, h, k, NULL) == &k->entry ); in test_bin_find_entry()
140 unit_assert( bin_find_entry(table, &bin, k4->entry.hash, k4, NULL) in test_bin_find_entry()
145 unit_assert( bin_find_entry(table, &bin, k4->entry.hash, k4, NULL) == NULL); in test_bin_find_entry()
151 unit_assert( bin_find_entry(table, &bin, h, k, NULL) == NULL ); in test_bin_find_entry()
168 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
170 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
174 unit_assert( table->lru_start == &k->entry && in test_lru()
178 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
182 unit_assert( table->lru_start == &k->entry && in test_lru()
185 unit_assert( table->lru_start == &k2->entry && in test_lru()
189 unit_assert( table->lru_start == &k->entry && in test_lru()
192 unit_assert( table->lru_start == &k2->entry && in test_lru()
196 unit_assert( table->lru_start == &k2->entry && in test_lru()
201 unit_assert( table->lru_start == NULL && table->lru_end == NULL); in test_lru()
222 unit_assert( lruhash_lookup(table, myhash(12), k, 0) == &k->entry); in test_short_table()
224 unit_assert( lruhash_lookup(table, myhash(14), k2, 0) == &k2->entry); in test_short_table()
265 unit_assert(en->key); in testlookup()
266 unit_assert(en->data); in testlookup()
270 unit_assert( data == ref[num] ); in testlookup()
282 unit_assert( table->num <= table->size); in check_table()
283 unit_assert( table->size_mask == (int)table->size-1 ); in check_table()
284 unit_assert( (table->lru_start && table->lru_end) || in check_table()
286 unit_assert( table->space_used <= table->space_max ); in check_table()
289 unit_assert(table->lru_start->lru_prev == NULL); in check_table()
291 unit_assert(table->lru_end->lru_next == NULL); in check_table()
295 unit_assert(p->lru_prev->lru_next == p); in check_table()
298 unit_assert(p->lru_next->lru_prev == p); in check_table()
303 unit_assert(c == table->num); in check_table()
306 unit_assert( table->space_used == in check_table()
345 unit_assert(en->key); in testlookup_unlim()
346 unit_assert(en->data); in testlookup_unlim()
352 unit_assert( data == ref[num] ); in testlookup_unlim()
369 unit_assert( test_slabhash_sizefunc(NULL, NULL)*HASHTESTMAX < table->space_max); in test_long_table()
391 unit_assert(0); in test_long_table()
395 unit_assert( table->num <= HASHTESTMAX ); in test_long_table()
413 unit_assert(0); in test_long_table()
450 unit_assert(0); in test_thr_main()