Home
last modified time | relevance | path

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

/SCP-firmware-master/framework/test/
A Dtest_fwk_list_push.c20 static struct fwk_dlist_node dnodes[2]; variable
29 memset(dnodes, 0, sizeof(dnodes)); in test_case_setup()
46 assert(dlist.head == &dnodes[0]); in test_dlist_push_head_from_empty()
47 assert(dlist.tail == &dnodes[0]); in test_dlist_push_head_from_empty()
67 assert(dlist.head == &dnodes[0]); in test_dlist_push_back_from_empty()
68 assert(dlist.tail == &dnodes[0]); in test_dlist_push_back_from_empty()
91 assert(dlist.head == &dnodes[1]); in test_dlist_push_head()
95 assert(dnodes[0].prev == &dnodes[1]); in test_dlist_push_head()
97 assert(dnodes[1].next == &dnodes[0]); in test_dlist_push_head()
121 assert(dnodes[0].next == &dnodes[1]); in test_dlist_push_back()
[all …]
A Dtest_fwk_list_remove.c20 static struct fwk_dlist_node dnodes[3]; variable
28 memset(dnodes, 0, sizeof(dnodes)); in test_case_setup()
79 fwk_list_remove(&dlist, &dnodes[0]); in test_dlist_remove_on_one()
90 assert(dlist.head == &dnodes[1]); in test_dlist_remove_first_of_two()
91 assert(dlist.tail == &dnodes[1]); in test_dlist_remove_first_of_two()
102 assert(dlist.head == &dnodes[0]); in test_dlist_remove_second_of_two()
103 assert(dlist.tail == &dnodes[0]); in test_dlist_remove_second_of_two()
115 assert(dlist.head == &dnodes[0]); in test_dlist_remove_second_of_three()
116 assert(dlist.tail == &dnodes[2]); in test_dlist_remove_second_of_three()
117 assert(dnodes[0].next == &dnodes[2]); in test_dlist_remove_second_of_three()
[all …]
A Dtest_fwk_list_pop.c19 static struct fwk_dlist_node dnodes[3]; variable
55 fwk_list_push_tail(&dlist, &dnodes[0]); in test_dlist_pop_head_on_one()
78 fwk_list_push_tail(&dlist, &dnodes[0]); in test_dlist_pop_head_on_two()
79 fwk_list_push_tail(&dlist, &dnodes[1]); in test_dlist_pop_head_on_two()
83 assert(dlist.head == &dnodes[1]); in test_dlist_pop_head_on_two()
84 assert(dlist.tail == &dnodes[1]); in test_dlist_pop_head_on_two()
107 fwk_list_push_tail(&dlist, &dnodes[0]); in test_dlist_pop_head_on_many()
113 assert(dlist.head == &dnodes[1]); in test_dlist_pop_head_on_many()
114 assert(dlist.tail == &dnodes[2]); in test_dlist_pop_head_on_many()
117 assert(dnodes[1].next == &dnodes[2]); in test_dlist_pop_head_on_many()
[all …]
A Dtest_fwk_list_next.c19 static struct fwk_dlist_node dnodes[2]; variable
38 fwk_list_push_tail(&dlist, &dnodes[0]); in test_dlist_next()
39 fwk_list_push_tail(&dlist, &dnodes[1]); in test_dlist_next()
41 assert(fwk_list_next(&dlist, &dnodes[0]) == &dnodes[1]); in test_dlist_next()
42 assert(fwk_list_next(&dlist, &dnodes[1]) == NULL); in test_dlist_next()
A Dtest_fwk_list_head.c19 static struct fwk_dlist_node dnodes[2]; variable
46 fwk_list_push_tail(&dlist, &dnodes[0]); in test_dlist_head_one()
48 assert(fwk_list_head(&dlist) == &dnodes[0]); in test_dlist_head_one()

Completed in 4 milliseconds