Home
last modified time | relevance | path

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

/SCP-firmware-master/framework/test/
A Dtest_fwk_list_pop.c15 static struct fwk_slist slist; variable
23 fwk_list_init(&slist); in test_case_setup()
31 assert(slist.head == (struct fwk_slist_node *)&slist); in test_slist_pop_head_on_empty()
32 assert(slist.tail == (struct fwk_slist_node *)&slist); in test_slist_pop_head_on_empty()
45 fwk_list_push_tail(&slist, &snodes[0]); in test_slist_pop_head_on_one()
49 assert(slist.head == (struct fwk_slist_node *)&slist); in test_slist_pop_head_on_one()
50 assert(slist.tail == (struct fwk_slist_node *)&slist); in test_slist_pop_head_on_one()
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()
98 assert(slist.head == &snodes[1]); in test_slist_pop_head_on_many()
[all …]
A Dtest_fwk_list_remove.c16 static struct fwk_slist slist; variable
24 fwk_list_init(&slist); in test_case_setup()
36 fwk_list_remove(&slist, &snodes[0]); in test_slist_remove_on_one()
37 assert(slist.head == (struct fwk_slist_node *)&slist); in test_slist_remove_on_one()
38 assert(slist.tail == (struct fwk_slist_node *)&slist); in test_slist_remove_on_one()
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()
[all …]
A Dtest_fwk_list_push.c16 static struct fwk_slist slist; variable
24 fwk_list_init(&slist); in test_case_setup()
34 fwk_list_push_head(&slist, &snodes[0]); in test_slist_push_head_from_empty()
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()
106 assert(slist.head == &snodes[0]); in test_slist_push_back()
[all …]
A Dtest_fwk_list_next.c15 static struct fwk_slist slist; variable
23 fwk_list_init(&slist); in test_case_setup()
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_empty.c15 static struct fwk_slist slist; variable
23 fwk_list_init(&slist); in test_case_setup()
29 assert(fwk_list_is_empty(&slist)); in test_slist_empty()
39 fwk_list_push_tail(&slist, &snode); in test_slist_not_empty()
41 assert(!fwk_list_is_empty(&slist)); in test_slist_not_empty()
A Dtest_fwk_list_head.c15 static struct fwk_slist slist; variable
23 fwk_list_init(&slist); in test_case_setup()
29 assert(fwk_list_head(&slist) == NULL); in test_slist_head_empty()
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 6 milliseconds