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

Function test_stack_walk

unit_test/stdlib/test_stack.c:41–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41int test_stack_walk(AUT_LINE *test_line acl_unused, void *arg acl_unused)
42{
43 const char *myname = "test_stack_walk";
44 ACL_ITER iter;
45 MY_TYPE *t;
46 int i = 0;
47
48 __stack_init();
49
50 acl_foreach(iter, __stack) {
51 t = (MY_TYPE*) iter.data;
52 printf("%s: %d %s\r\n", myname, i++, t->name);
53 }
54 printf("%s: total is %d\r\n", myname, i);
55 return (0);
56}
57
58int test_stack_pop(AUT_LINE *test_line acl_unused, void *arg acl_unused)
59{

Callers

nothing calls this directly

Calls 2

__stack_initFunction · 0.85
acl_foreachFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…