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

Function test_json_foreach2

lib_acl/samples/json/json1/main.cpp:66–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static void test_json_foreach2(ACL_JSON* json)
67{
68 ACL_ITER iter1, iter2, iter3, iter4, iter5;
69 ACL_JSON_NODE *node1, *node2, *node3, *node4, *node5;
70
71 printf("------------ in %s ------------\r\n", __FUNCTION__);
72
73 /* һ����� */
74 acl_foreach(iter1, json->root) {
75 node1 = (ACL_JSON_NODE*) iter1.data;
76 print_json_node(json, node1);
77
78 /* ������� */
79 acl_foreach(iter2, node1) {
80 node2 = (ACL_JSON_NODE*) iter2.data;
81 print_json_node(json, node2);
82
83 /* ������� */
84 acl_foreach(iter3, node2) {
85 node3 = (ACL_JSON_NODE*) iter3.data;
86 print_json_node(json, node3);
87
88 /* ���� */
89 acl_foreach(iter4, node3) {
90 node4 = (ACL_JSON_NODE*) iter4.data;
91 print_json_node(json, node4);
92
93 /* �弶��� */
94 acl_foreach(iter5, node4) {
95 node5 = (ACL_JSON_NODE*) iter5.data;
96 print_json_node(json, node5);
97 }
98 }
99 }
100 }
101 }
102 printf("\r\n");
103}
104
105static void test_json_find1(ACL_JSON* json)
106{

Callers 1

test_json_dataFunction · 0.85

Calls 2

print_json_nodeFunction · 0.85
acl_foreachFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…