Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/ktest/
Dtest-bitree.c11 struct test_value_t struct
17 if (((struct test_value_t *)a)->tv > ((struct test_value_t *)b)->tv) in compare() argument
19 else if (((struct test_value_t *)a)->tv == ((struct test_value_t *)b)->tv) in compare()
40 struct test_value_t *tv1 = (struct test_value_t *)kmalloc(sizeof(struct test_value_t), 0); in ktest_bitree_case1()
56 struct test_value_t *tv2 = (struct test_value_t *)kmalloc(sizeof(struct test_value_t), 0); in ktest_bitree_case1()
65 struct test_value_t *tv3 = (struct test_value_t *)kmalloc(sizeof(struct test_value_t), 0); 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()
87 struct test_value_t *tv4 = (struct test_value_t *)kmalloc(sizeof(struct test_value_t), 0); in ktest_bitree_case1()
97 assert(((struct test_value_t *)node2->right->value)->tv == tv4->tv); in ktest_bitree_case1()
[all …]