MCPcopy Create free account
hub / github.com/ElementsProject/lightning / find_vals

Function find_vals

ccan/ccan/htable/test/run-debug.c:69–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67#endif
68
69static void find_vals(struct htable *ht,
70 const uint64_t val[], unsigned int num)
71{
72 uint64_t i;
73
74 for (i = 0; i < num; i++) {
75 if (htable_get(ht, hash(&i, NULL), objcmp, &i) != &val[i]) {
76 fail("%llu not found in hash", (long long)i);
77 return;
78 }
79 }
80 pass("Found %llu numbers in hash", (long long)i);
81}
82
83static void del_vals(struct htable *ht,
84 const uint64_t val[], unsigned int num)

Callers 1

mainFunction · 0.70

Calls 2

htable_getFunction · 0.85
hashFunction · 0.70

Tested by

no test coverage detected