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

Function del_vals

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

Source from the content-addressed store, hash-verified

81}
82
83static void del_vals(struct htable *ht,
84 const uint64_t val[], unsigned int num)
85{
86 uint64_t i;
87
88 for (i = 0; i < num; i++) {
89 if (!htable_del(ht, hash(&val[i], NULL), &val[i])) {
90 fail("%llu not deleted from hash", (long long)i);
91 return;
92 }
93 }
94 pass("Deleted %llu numbers in hash", (long long)i);
95}
96
97static bool check_mask(struct htable *ht, uint64_t val[], unsigned num)
98{

Callers 1

mainFunction · 0.70

Calls 1

hashFunction · 0.70

Tested by

no test coverage detected