MCPcopy Create free account
hub / github.com/acl-dev/acl / test_stack_bat_add

Function test_stack_bat_add

unit_test/stdlib/test_stack.c:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26int test_stack_bat_add(AUT_LINE *test_line acl_unused, void *arg acl_unused)
27{
28 MY_TYPE *t;
29 int i;
30
31 __stack_init();
32
33 for (i = 0; i < 25; i++) {
34 t = acl_mymalloc(sizeof(MY_TYPE));
35 snprintf(t->name, sizeof(t->name), "name:%d", i);
36 acl_stack_append(__stack, t);
37 }
38 return (0);
39}
40
41int test_stack_walk(AUT_LINE *test_line acl_unused, void *arg acl_unused)
42{

Callers

nothing calls this directly

Calls 2

__stack_initFunction · 0.85
acl_stack_appendFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…