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

Function test_alloc

ccan/ccan/htable/test/run-allocator.c:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11};
12
13static void *test_alloc(struct htable *ht, size_t len)
14{
15 ((struct htable_with_counters *)ht)->num_alloc++;
16 return calloc(len, 1);
17}
18
19
20static void test_free(struct htable *ht, void *p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected