Lines Matching refs:assert

44     assert(rn != NULL);  in ktest_bitree_case1()
45 assert((int64_t)rn != (-EINVAL)); in ktest_bitree_case1()
46 assert(rn->value == tv1); in ktest_bitree_case1()
49 assert(tree != NULL); in ktest_bitree_case1()
50 assert(tree->bt_node == rn); in ktest_bitree_case1()
51 assert(tree->cmp == compare); in ktest_bitree_case1()
52 assert(tree->release == release); in ktest_bitree_case1()
53 assert(tree->size == 1); in ktest_bitree_case1()
57 assert(tv2 != NULL); in ktest_bitree_case1()
62 assert(val == 0); in ktest_bitree_case1()
63 assert(last_size + 1 == tree->size); in ktest_bitree_case1()
66 assert(tv3 != NULL); in ktest_bitree_case1()
71 assert(val == 0); in ktest_bitree_case1()
72 assert(last_size + 1 == tree->size); in ktest_bitree_case1()
76 assert(((struct test_value_t *)tree->bt_node->left->value)->tv == tv2->tv); in ktest_bitree_case1()
77 assert(((struct test_value_t *)tree->bt_node->right->value)->tv == tv3->tv); in ktest_bitree_case1()
82 assert(bt_query(tree, tv2, (uint64_t*)(&node2)) == 0); in ktest_bitree_case1()
83 assert(node2 != NULL); in ktest_bitree_case1()
84 assert(node2->value == tv2); in ktest_bitree_case1()
88 assert(tv4 != NULL); in ktest_bitree_case1()
93 assert(val == 0); in ktest_bitree_case1()
94 assert(last_size + 1 == tree->size); in ktest_bitree_case1()
97 assert(((struct test_value_t *)node2->right->value)->tv == tv4->tv); in ktest_bitree_case1()
102 assert(tv_not_exists != NULL); in ktest_bitree_case1()
104 assert(bt_query(tree, tv_not_exists, (uint64_t*)(&node_not_exists)) == -1); in ktest_bitree_case1()
106 assert(node_not_exists == NULL); in ktest_bitree_case1()
109 assert(bt_delete(tree, rn->value) == 0); in ktest_bitree_case1()
110 assert(((struct test_value_t *)tree->bt_node->value)->tv != 20); in ktest_bitree_case1()
111 assert(tree->bt_node->right == NULL); in ktest_bitree_case1()
114 assert(bt_destroy_tree(tree) == 0); in ktest_bitree_case1()