Lines Matching refs:root
79 void* root = nullptr; in TEST() local
86 ASSERT_EQ(nullptr, tfind(&n1, &root, node_cmp)); in TEST()
87 ASSERT_EQ(nullptr, tfind(&n2, &root, node_cmp)); in TEST()
88 ASSERT_EQ(nullptr, tfind(&n3, &root, node_cmp)); in TEST()
91 void* i1 = tsearch(&n1, &root, node_cmp); in TEST()
95 ASSERT_EQ(i1, tfind(&n1, &root, node_cmp)); in TEST()
96 ASSERT_EQ(nullptr, tfind(&n2, &root, node_cmp)); in TEST()
97 ASSERT_EQ(nullptr, tfind(&n3, &root, node_cmp)); in TEST()
100 ASSERT_NE(nullptr, tsearch(&n2, &root, node_cmp)); in TEST()
101 ASSERT_NE(nullptr, tsearch(&n3, &root, node_cmp)); in TEST()
105 twalk(root, node_walk); in TEST()
113 tdestroy(root, node_free); in TEST()
127 void* root = nullptr; in TEST() local
130 ASSERT_NE(nullptr, tsearch(&n1, &root, pod_node_cmp)); in TEST()
134 ASSERT_EQ(nullptr, tdelete(¬_there, &root, pod_node_cmp)); in TEST()
135 ASSERT_NE(nullptr, tdelete(&n1, &root, pod_node_cmp)); in TEST()