MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_member_insert

Function test_member_insert

dpdk/app/test/test_member.c:288–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288static int test_member_insert(void)
289{
290 int ret_ht, ret_cache, ret_vbf, i;
291
292 for (i = 0; i < NUM_SAMPLES; i++) {
293 ret_ht = rte_member_add(setsum_ht, &keys[i], test_set[i]);
294 ret_cache = rte_member_add(setsum_cache, &keys[i],
295 test_set[i]);
296 ret_vbf = rte_member_add(setsum_vbf, &keys[i], test_set[i]);
297 TEST_ASSERT(ret_ht >= 0 && ret_cache >= 0 && ret_vbf >= 0,
298 "insert error");
299 }
300 printf("insert key success\n");
301 return 0;
302}
303
304static int test_member_lookup(void)
305{

Callers 1

test_memberFunction · 0.85

Calls 2

rte_member_addFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected