Lines Matching refs:nnodes
168 node_remove(tree_t *tree, node_t *node, unsigned nnodes) { in node_remove() argument
193 assert_u_eq(tree_iterate(tree), nnodes-1, in node_remove()
195 assert_u_eq(tree_iterate_reverse(tree), nnodes-1, in node_remove()
201 unsigned *nnodes = (unsigned *)data; in remove_iterate_cb() local
204 node_remove(tree, node, *nnodes); in remove_iterate_cb()
211 unsigned *nnodes = (unsigned *)data; in remove_reverse_iterate_cb() local
214 node_remove(tree, node, *nnodes); in remove_reverse_iterate_cb()
221 unsigned *nnodes = (unsigned *)data; in destroy_cb() local
223 assert_u_gt(*nnodes, 0, "Destruction removed too many nodes"); in destroy_cb()
224 (*nnodes)--; in destroy_cb()
307 unsigned nnodes = j; in TEST_BEGIN() local
312 remove_iterate_cb, (void *)&nnodes); in TEST_BEGIN()
313 nnodes--; in TEST_BEGIN()
315 assert_u_eq(nnodes, 0, in TEST_BEGIN()
320 unsigned nnodes = j; in TEST_BEGIN() local
326 (void *)&nnodes); in TEST_BEGIN()
327 nnodes--; in TEST_BEGIN()
329 assert_u_eq(nnodes, 0, in TEST_BEGIN()
333 unsigned nnodes = j; in TEST_BEGIN() local
334 tree_destroy(&tree, destroy_cb, &nnodes); in TEST_BEGIN()
335 assert_u_eq(nnodes, 0, in TEST_BEGIN()