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

Function main

ccan/ccan/bitmap/test/run-alloc.c:78–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78int main(void)
79{
80 int i, j;
81
82 /* This is how many tests you plan to run */
83 plan_tests(NSIZES * NTESTS_BASE + NSIZES * NSIZES * NTESTS_REALLOC);
84
85 for (i = 0; i < NSIZES; i++) {
86 diag("Testing %d-bit bitmap", bitmap_sizes[i]);
87 test_basic_alloc(bitmap_sizes[i]);
88 }
89
90 for (i = 0; i < NSIZES; i++) {
91 for (j = 0; j < NSIZES; j++) {
92 diag("Testing %d-bit => %d-bit bitmap",
93 bitmap_sizes[i], bitmap_sizes[j]);
94
95 test_realloc(bitmap_sizes[i], bitmap_sizes[j]);
96 }
97 }
98
99 /* This exits depending on whether all tests passed */
100 return exit_status();
101}

Callers

nothing calls this directly

Calls 2

test_basic_allocFunction · 0.85
test_reallocFunction · 0.70

Tested by

no test coverage detected