Lines Matching refs:nnodes
165 node_remove(tree_t *tree, node_t *node, unsigned nnodes) in node_remove() argument
191 assert_u_eq(tree_iterate(tree), nnodes-1, in node_remove()
193 assert_u_eq(tree_iterate_reverse(tree), nnodes-1, in node_remove()
200 unsigned *nnodes = (unsigned *)data; in remove_iterate_cb() local
203 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()
222 unsigned *nnodes = (unsigned *)data; in destroy_cb() local
224 assert_u_gt(*nnodes, 0, "Destruction removed too many nodes"); in destroy_cb()
225 (*nnodes)--; in destroy_cb()
304 unsigned nnodes = j; in TEST_BEGIN() local
309 remove_iterate_cb, (void *)&nnodes); in TEST_BEGIN()
310 nnodes--; in TEST_BEGIN()
312 assert_u_eq(nnodes, 0, in TEST_BEGIN()
317 unsigned nnodes = j; in TEST_BEGIN() local
323 (void *)&nnodes); in TEST_BEGIN()
324 nnodes--; in TEST_BEGIN()
326 assert_u_eq(nnodes, 0, in TEST_BEGIN()
330 unsigned nnodes = j; in TEST_BEGIN() local
331 tree_destroy(&tree, destroy_cb, &nnodes); in TEST_BEGIN()
332 assert_u_eq(nnodes, 0, in TEST_BEGIN()