Home
last modified time | relevance | path

Searched refs:test_rbtree (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.6.0/tests/unit/rbtree/
Dmain.c16 static struct rbtree test_rbtree; variable
126 _CHECK(test_rbtree.root); in check_rb()
127 _CHECK(z_rb_is_black(test_rbtree.root)); in check_rb()
129 check_rbnode(test_rbtree.root, 0); in check_rb()
143 RB_FOR_EACH(&test_rbtree, n) { in _check_tree()
147 rb_walk(&test_rbtree, visit_node, &nwalked); in _check_tree()
167 _CHECK(get_node_mask(i) == rb_contains(&test_rbtree, &nodes[i])); in _check_tree()
177 if (test_rbtree.root) { in _check_tree()
203 (void)memset(&test_rbtree, 0, sizeof(test_rbtree)); in test_tree()
204 test_rbtree.lessthan_fn = node_lessthan; in test_tree()
[all …]
/Zephyr-Core-3.6.0/tests/benchmarks/data_structure_perf/rbtree_perf/src/
Drbtree_perf.c22 static struct rbtree test_rbtree; variable
129 !test_rbtree.lessthan_fn(final_node, node)); in search_height_recurse()
191 init_tree(&test_rbtree, TREE_SIZE); in ZTEST()
192 struct rbnode *root = test_rbtree.root; in ZTEST()
195 test = rb_get_min(&test_rbtree); in ZTEST()
198 test = rb_get_max(&test_rbtree); in ZTEST()