Lines Matching refs:option
28 coap_option_t option; in t_parse_option1() local
31 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option1()
33 CU_ASSERT(option.delta == 0); in t_parse_option1()
34 CU_ASSERT(option.length == 0); in t_parse_option1()
44 coap_option_t option; in t_parse_option2() local
46 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option2()
48 CU_ASSERT(option.delta == 12); in t_parse_option2()
49 CU_ASSERT(option.length == 1); in t_parse_option2()
50 CU_ASSERT(option.value == teststr.s + 1); in t_parse_option2()
60 coap_option_t option; in t_parse_option3() local
62 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option3()
64 CU_ASSERT(option.delta == 3); in t_parse_option3()
65 CU_ASSERT(option.length == 12); in t_parse_option3()
66 CU_ASSERT(option.value == teststr.s + 1); in t_parse_option3()
76 coap_option_t option; in t_parse_option4() local
78 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option4()
88 coap_option_t option; in t_parse_option5() local
90 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option5()
100 coap_option_t option; in t_parse_option6() local
102 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option6()
112 coap_option_t option; in t_parse_option7() local
114 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option7()
116 CU_ASSERT(option.delta == 20); in t_parse_option7()
117 CU_ASSERT(option.length == 0); in t_parse_option7()
126 coap_option_t option; in t_parse_option8() local
128 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option8()
130 CU_ASSERT(option.delta == 780); in t_parse_option8()
131 CU_ASSERT(option.length == 0); in t_parse_option8()
140 coap_option_t option; in t_parse_option9() local
142 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option9()
144 CU_ASSERT(option.delta == 65535); in t_parse_option9()
153 coap_option_t option; in t_parse_option10() local
155 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option10()
165 coap_option_t option; in t_parse_option11() local
167 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option11()
177 coap_option_t option; in t_parse_option12() local
179 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option12()
195 coap_option_t option; in t_parse_option13() local
197 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option13()
199 CU_ASSERT(option.delta == 280); in t_parse_option13()
200 CU_ASSERT(option.length == 500); in t_parse_option13()
201 CU_ASSERT(option.value == &_data[5]); in t_parse_option13()
222 coap_option_t option; in t_parse_option14() local
224 result = coap_opt_parse(data, length, &option); in t_parse_option14()
226 CU_ASSERT(option.delta == 268); in t_parse_option14()
227 CU_ASSERT(option.length == 65535); in t_parse_option14()
228 CU_ASSERT(option.value == &data[4]); in t_parse_option14()
439 coap_opt_t *option; in t_iterate_option1() local
446 option = coap_option_next(&oi); in t_iterate_option1()
448 CU_ASSERT(option == NULL); in t_iterate_option1()
464 coap_opt_t *option; in t_iterate_option2() local
471 option = coap_option_next(&oi); in t_iterate_option2()
473 CU_ASSERT(option == NULL); in t_iterate_option2()
490 coap_opt_t *option; in t_iterate_option3() local
497 option = coap_option_next(&oi); in t_iterate_option3()
500 CU_ASSERT_PTR_EQUAL(option, teststr + 7); in t_iterate_option3()
502 option = coap_option_next(&oi); in t_iterate_option3()
505 CU_ASSERT_PTR_EQUAL(option, teststr + 11); in t_iterate_option3()
507 option = coap_option_next(&oi); in t_iterate_option3()
510 CU_ASSERT_PTR_EQUAL(option, teststr + 12); in t_iterate_option3()
512 option = coap_option_next(&oi); in t_iterate_option3()
514 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option3()
532 coap_opt_t *option; in t_iterate_option4() local
539 option = coap_option_next(&oi); in t_iterate_option4()
542 CU_ASSERT_PTR_EQUAL(option, teststr + 7); in t_iterate_option4()
544 option = coap_option_next(&oi); in t_iterate_option4()
547 CU_ASSERT_PTR_EQUAL(option, teststr + 11); in t_iterate_option4()
549 option = coap_option_next(&oi); in t_iterate_option4()
552 CU_ASSERT_PTR_EQUAL(option, teststr + 12); in t_iterate_option4()
554 option = coap_option_next(&oi); in t_iterate_option4()
556 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option4()
573 coap_opt_t *option; in t_iterate_option5() local
580 option = coap_option_next(&oi); in t_iterate_option5()
583 CU_ASSERT_PTR_EQUAL(option, teststr + 4); in t_iterate_option5()
585 option = coap_option_next(&oi); in t_iterate_option5()
587 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option5()
605 coap_opt_t *option; in t_iterate_option6() local
615 option = coap_option_next(&oi); in t_iterate_option6()
618 CU_ASSERT_PTR_EQUAL(option, teststr + 5); in t_iterate_option6()
620 option = coap_option_next(&oi); in t_iterate_option6()
623 CU_ASSERT_PTR_EQUAL(option, teststr + 6); in t_iterate_option6()
625 option = coap_option_next(&oi); in t_iterate_option6()
628 CU_ASSERT_PTR_EQUAL(option, teststr + 7); in t_iterate_option6()
630 option = coap_option_next(&oi); in t_iterate_option6()
632 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option6()
649 coap_opt_t *option; in t_iterate_option7() local
661 option = coap_option_next(&oi); in t_iterate_option7()
664 CU_ASSERT_PTR_EQUAL(option, teststr + 4); in t_iterate_option7()
666 option = coap_option_next(&oi); in t_iterate_option7()
669 CU_ASSERT_PTR_EQUAL(option, teststr + 8); in t_iterate_option7()
671 option = coap_option_next(&oi); in t_iterate_option7()
674 CU_ASSERT_PTR_EQUAL(option, teststr + 9); in t_iterate_option7()
676 option = coap_option_next(&oi); in t_iterate_option7()
678 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option7()
695 coap_opt_t *option; in t_iterate_option8() local
706 option = coap_option_next(&oi); in t_iterate_option8()
708 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option8()
725 coap_opt_t *option; in t_iterate_option9() local
736 option = coap_option_next(&oi); in t_iterate_option9()
738 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option9()
755 coap_opt_t *option; in t_iterate_option10() local
766 option = coap_option_next(&oi); in t_iterate_option10()
768 CU_ASSERT_PTR_EQUAL(option, teststr + 8); in t_iterate_option10()
770 option = coap_option_next(&oi); in t_iterate_option10()
772 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option10()