• Home
  • Raw
  • Download

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()
479 coap_opt_t *option; in t_iterate_option1() local
486 option = coap_option_next(&oi); in t_iterate_option1()
488 CU_ASSERT(option == NULL); in t_iterate_option1()
505 coap_opt_t *option; in t_iterate_option2() local
512 option = coap_option_next(&oi); in t_iterate_option2()
514 CU_ASSERT(option == NULL); in t_iterate_option2()
532 coap_opt_t *option; in t_iterate_option3() local
539 option = coap_option_next(&oi); in t_iterate_option3()
542 CU_ASSERT_PTR_EQUAL(option, teststr + 3); in t_iterate_option3()
544 option = coap_option_next(&oi); in t_iterate_option3()
547 CU_ASSERT_PTR_EQUAL(option, teststr + 7); in t_iterate_option3()
549 option = coap_option_next(&oi); in t_iterate_option3()
552 CU_ASSERT_PTR_EQUAL(option, teststr + 8); in t_iterate_option3()
554 option = coap_option_next(&oi); in t_iterate_option3()
556 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option3()
575 coap_opt_t *option; in t_iterate_option4() local
582 option = coap_option_next(&oi); in t_iterate_option4()
585 CU_ASSERT_PTR_EQUAL(option, teststr + 3); in t_iterate_option4()
587 option = coap_option_next(&oi); in t_iterate_option4()
590 CU_ASSERT_PTR_EQUAL(option, teststr + 7); in t_iterate_option4()
592 option = coap_option_next(&oi); in t_iterate_option4()
595 CU_ASSERT_PTR_EQUAL(option, teststr + 8); in t_iterate_option4()
597 option = coap_option_next(&oi); in t_iterate_option4()
599 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option4()
617 coap_opt_t *option; in t_iterate_option5() local
624 option = coap_option_next(&oi); in t_iterate_option5()
627 CU_ASSERT_PTR_EQUAL(option, teststr); in t_iterate_option5()
629 option = coap_option_next(&oi); in t_iterate_option5()
631 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option5()
650 coap_opt_t *option; in t_iterate_option6() local
660 option = coap_option_next(&oi); in t_iterate_option6()
663 CU_ASSERT_PTR_EQUAL(option, teststr + 1); in t_iterate_option6()
665 option = coap_option_next(&oi); in t_iterate_option6()
668 CU_ASSERT_PTR_EQUAL(option, teststr + 2); in t_iterate_option6()
670 option = coap_option_next(&oi); in t_iterate_option6()
673 CU_ASSERT_PTR_EQUAL(option, teststr + 3); in t_iterate_option6()
675 option = coap_option_next(&oi); in t_iterate_option6()
677 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option6()
695 coap_opt_t *option; in t_iterate_option7() local
707 option = coap_option_next(&oi); in t_iterate_option7()
710 CU_ASSERT_PTR_EQUAL(option, teststr); in t_iterate_option7()
712 option = coap_option_next(&oi); in t_iterate_option7()
715 CU_ASSERT_PTR_EQUAL(option, teststr + 4); in t_iterate_option7()
717 option = coap_option_next(&oi); in t_iterate_option7()
720 CU_ASSERT_PTR_EQUAL(option, teststr + 5); in t_iterate_option7()
722 option = coap_option_next(&oi); in t_iterate_option7()
724 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option7()
742 coap_opt_t *option; in t_iterate_option8() local
753 option = coap_option_next(&oi); in t_iterate_option8()
755 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option8()
773 coap_opt_t *option; in t_iterate_option9() local
784 option = coap_option_next(&oi); in t_iterate_option9()
786 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option9()
804 coap_opt_t *option; in t_iterate_option10() local
815 option = coap_option_next(&oi); in t_iterate_option10()
817 CU_ASSERT_PTR_EQUAL(option, teststr + 4); in t_iterate_option10()
819 option = coap_option_next(&oi); in t_iterate_option10()
821 CU_ASSERT_PTR_EQUAL(option, NULL); in t_iterate_option10()