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

Function test_alloc

ccan/ccan/timer/test/run-allocator.c:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12static void *test_alloc(struct timers *timers, size_t len)
13{
14 ((struct timers_with_counters *)timers)->num_alloc++;
15 return malloc(len);
16}
17
18static void test_free(struct timers *timers, void *p)
19{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected