Home
last modified time | relevance | path

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

/SCP-firmware-master/framework/test/
A Dtest_fwk_list_push.c19 static struct fwk_slist_node snodes[2]; variable
28 memset(snodes, 0, sizeof(snodes)); in test_case_setup()
36 assert(slist.head == &snodes[0]); in test_slist_push_head_from_empty()
37 assert(slist.tail == &snodes[0]); in test_slist_push_head_from_empty()
57 assert(slist.head == &snodes[0]); in test_slist_push_back_from_empty()
58 assert(slist.tail == &snodes[0]); in test_slist_push_back_from_empty()
79 assert(slist.head == &snodes[1]); in test_slist_push_head()
80 assert(slist.tail == &snodes[0]); in test_slist_push_head()
83 assert(snodes[1].next == &snodes[0]); in test_slist_push_head()
106 assert(slist.head == &snodes[0]); in test_slist_push_back()
[all …]
A Dtest_fwk_list_remove.c19 static struct fwk_slist_node snodes[3]; variable
29 memset(snodes, 0, sizeof(snodes)); in test_case_setup()
36 fwk_list_remove(&slist, &snodes[0]); in test_slist_remove_on_one()
46 fwk_list_remove(&slist, &snodes[0]); in test_slist_remove_first_of_two()
47 assert(slist.head == &snodes[1]); in test_slist_remove_first_of_two()
48 assert(slist.tail == &snodes[1]); in test_slist_remove_first_of_two()
58 assert(slist.head == &snodes[0]); in test_slist_remove_second_of_two()
59 assert(slist.tail == &snodes[0]); in test_slist_remove_second_of_two()
70 assert(slist.head == &snodes[0]); in test_slist_remove_second_of_three()
71 assert(slist.tail == &snodes[2]); in test_slist_remove_second_of_three()
[all …]
A Dtest_fwk_list_pop.c18 static struct fwk_slist_node snodes[3]; variable
45 fwk_list_push_tail(&slist, &snodes[0]); in test_slist_pop_head_on_one()
65 fwk_list_push_tail(&slist, &snodes[0]); in test_slist_pop_head_on_two()
66 fwk_list_push_tail(&slist, &snodes[1]); in test_slist_pop_head_on_two()
70 assert(slist.head == &snodes[1]); in test_slist_pop_head_on_two()
71 assert(slist.tail == &snodes[1]); in test_slist_pop_head_on_two()
92 fwk_list_push_tail(&slist, &snodes[0]); in test_slist_pop_head_on_many()
93 fwk_list_push_tail(&slist, &snodes[1]); in test_slist_pop_head_on_many()
98 assert(slist.head == &snodes[1]); in test_slist_pop_head_on_many()
99 assert(slist.tail == &snodes[2]); in test_slist_pop_head_on_many()
[all …]
A Dtest_fwk_list_next.c18 static struct fwk_slist_node snodes[2]; variable
29 fwk_list_push_tail(&slist, &snodes[0]); in test_slist_next()
30 fwk_list_push_tail(&slist, &snodes[1]); in test_slist_next()
32 assert(fwk_list_next(&slist, &snodes[0]) == &snodes[1]); in test_slist_next()
33 assert(fwk_list_next(&slist, &snodes[1]) == NULL); in test_slist_next()
A Dtest_fwk_list_head.c18 static struct fwk_slist_node snodes[2]; variable
39 fwk_list_push_tail(&slist, &snodes[0]); in test_slist_head_one()
41 assert(fwk_list_head(&slist) == &snodes[0]); in test_slist_head_one()

Completed in 5 milliseconds