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

Function test_stack_pop

unit_test/stdlib/test_stack.c:58–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58int test_stack_pop(AUT_LINE *test_line acl_unused, void *arg acl_unused)
59{
60 const char *myname = "test_stack_pop";
61 MY_TYPE *t;
62 int i = 0;
63
64 __stack_init();
65
66 while (1) {
67 t = acl_stack_pop(__stack);
68 if (t == NULL)
69 break;
70 printf("%s: %d %s\r\n", myname, i++, t->name);
71 acl_myfree(t);
72 }
73
74 printf("%s: total is %d\r\n", myname, i);
75 return (0);
76}

Callers

nothing calls this directly

Calls 2

__stack_initFunction · 0.85
acl_stack_popFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…