Lines Matching refs:oi
438 coap_opt_iterator_t oi, *result; in t_iterate_option1() local
441 result = coap_option_iterator_init(&pdu, &oi, COAP_OPT_ALL); in t_iterate_option1()
444 CU_ASSERT(oi.bad == 1); in t_iterate_option1()
446 option = coap_option_next(&oi); in t_iterate_option1()
447 CU_ASSERT(oi.bad == 1); in t_iterate_option1()
463 coap_opt_iterator_t oi, *result; in t_iterate_option2() local
466 result = coap_option_iterator_init(&pdu, &oi, COAP_OPT_ALL); in t_iterate_option2()
469 CU_ASSERT(oi.bad == 1); in t_iterate_option2()
471 option = coap_option_next(&oi); in t_iterate_option2()
472 CU_ASSERT(oi.bad == 1); in t_iterate_option2()
489 coap_opt_iterator_t oi, *result; in t_iterate_option3() local
492 result = coap_option_iterator_init(&pdu, &oi, COAP_OPT_ALL); in t_iterate_option3()
494 CU_ASSERT_PTR_EQUAL(result, &oi); in t_iterate_option3()
495 CU_ASSERT(oi.bad == 0); in t_iterate_option3()
497 option = coap_option_next(&oi); in t_iterate_option3()
498 CU_ASSERT(oi.bad == 0); in t_iterate_option3()
499 CU_ASSERT(oi.type == 1); in t_iterate_option3()
502 option = coap_option_next(&oi); in t_iterate_option3()
503 CU_ASSERT(oi.bad == 0); in t_iterate_option3()
504 CU_ASSERT(oi.type == 1); in t_iterate_option3()
507 option = coap_option_next(&oi); in t_iterate_option3()
508 CU_ASSERT(oi.bad == 0); in t_iterate_option3()
509 CU_ASSERT(oi.type == 30); in t_iterate_option3()
512 option = coap_option_next(&oi); in t_iterate_option3()
513 CU_ASSERT(oi.bad == 1); in t_iterate_option3()
531 coap_opt_iterator_t oi, *result; in t_iterate_option4() local
534 result = coap_option_iterator_init(&pdu, &oi, COAP_OPT_ALL); in t_iterate_option4()
536 CU_ASSERT_PTR_EQUAL(result, &oi); in t_iterate_option4()
537 CU_ASSERT(oi.bad == 0); in t_iterate_option4()
539 option = coap_option_next(&oi); in t_iterate_option4()
540 CU_ASSERT(oi.bad == 0); in t_iterate_option4()
541 CU_ASSERT(oi.type == 1); in t_iterate_option4()
544 option = coap_option_next(&oi); in t_iterate_option4()
545 CU_ASSERT(oi.bad == 0); in t_iterate_option4()
546 CU_ASSERT(oi.type == 1); in t_iterate_option4()
549 option = coap_option_next(&oi); in t_iterate_option4()
550 CU_ASSERT(oi.bad == 0); in t_iterate_option4()
551 CU_ASSERT(oi.type == 30); in t_iterate_option4()
554 option = coap_option_next(&oi); in t_iterate_option4()
555 CU_ASSERT(oi.bad == 1); in t_iterate_option4()
572 coap_opt_iterator_t oi, *result; in t_iterate_option5() local
575 result = coap_option_iterator_init(&pdu, &oi, COAP_OPT_ALL); in t_iterate_option5()
577 CU_ASSERT_PTR_EQUAL(result, &oi); in t_iterate_option5()
578 CU_ASSERT(oi.bad == 0); in t_iterate_option5()
580 option = coap_option_next(&oi); in t_iterate_option5()
581 CU_ASSERT(oi.bad == 0); in t_iterate_option5()
582 CU_ASSERT(oi.type == 5); in t_iterate_option5()
585 option = coap_option_next(&oi); in t_iterate_option5()
586 CU_ASSERT(oi.bad == 1); in t_iterate_option5()
604 coap_opt_iterator_t oi, *result; in t_iterate_option6() local
610 result = coap_option_iterator_init(&pdu, &oi, filter); in t_iterate_option6()
612 CU_ASSERT_PTR_EQUAL(result, &oi); in t_iterate_option6()
613 CU_ASSERT(oi.bad == 0); in t_iterate_option6()
615 option = coap_option_next(&oi); in t_iterate_option6()
616 CU_ASSERT(oi.bad == 0); in t_iterate_option6()
617 CU_ASSERT(oi.type == 10); in t_iterate_option6()
620 option = coap_option_next(&oi); in t_iterate_option6()
621 CU_ASSERT(oi.bad == 0); in t_iterate_option6()
622 CU_ASSERT(oi.type == 10); in t_iterate_option6()
625 option = coap_option_next(&oi); in t_iterate_option6()
626 CU_ASSERT(oi.bad == 0); in t_iterate_option6()
627 CU_ASSERT(oi.type == 10); in t_iterate_option6()
630 option = coap_option_next(&oi); in t_iterate_option6()
631 CU_ASSERT(oi.bad == 1); in t_iterate_option6()
648 coap_opt_iterator_t oi, *result; in t_iterate_option7() local
656 result = coap_option_iterator_init(&pdu, &oi, filter); in t_iterate_option7()
658 CU_ASSERT_PTR_EQUAL(result, &oi); in t_iterate_option7()
659 CU_ASSERT(oi.bad == 0); in t_iterate_option7()
661 option = coap_option_next(&oi); in t_iterate_option7()
662 CU_ASSERT(oi.bad == 0); in t_iterate_option7()
663 CU_ASSERT(oi.type == 8); in t_iterate_option7()
666 option = coap_option_next(&oi); in t_iterate_option7()
667 CU_ASSERT(oi.bad == 0); in t_iterate_option7()
668 CU_ASSERT(oi.type == 22); in t_iterate_option7()
671 option = coap_option_next(&oi); in t_iterate_option7()
672 CU_ASSERT(oi.bad == 0); in t_iterate_option7()
673 CU_ASSERT(oi.type == 22); in t_iterate_option7()
676 option = coap_option_next(&oi); in t_iterate_option7()
677 CU_ASSERT(oi.bad == 1); in t_iterate_option7()
694 coap_opt_iterator_t oi, *result; in t_iterate_option8() local
701 result = coap_option_iterator_init(&pdu, &oi, filter); in t_iterate_option8()
703 CU_ASSERT_PTR_EQUAL(result, &oi); in t_iterate_option8()
704 CU_ASSERT(oi.bad == 0); in t_iterate_option8()
706 option = coap_option_next(&oi); in t_iterate_option8()
707 CU_ASSERT(oi.bad == 1); in t_iterate_option8()
724 coap_opt_iterator_t oi, *result; in t_iterate_option9() local
731 result = coap_option_iterator_init(&pdu, &oi, filter); in t_iterate_option9()
733 CU_ASSERT_PTR_EQUAL(result, &oi); in t_iterate_option9()
734 CU_ASSERT(oi.bad == 0); in t_iterate_option9()
736 option = coap_option_next(&oi); in t_iterate_option9()
737 CU_ASSERT(oi.bad == 1); in t_iterate_option9()
754 coap_opt_iterator_t oi, *result; in t_iterate_option10() local
761 result = coap_option_iterator_init(&pdu, &oi, filter); in t_iterate_option10()
763 CU_ASSERT_PTR_EQUAL(result, &oi); in t_iterate_option10()
764 CU_ASSERT(oi.bad == 0); in t_iterate_option10()
766 option = coap_option_next(&oi); in t_iterate_option10()
767 CU_ASSERT(oi.bad == 0); in t_iterate_option10()
770 option = coap_option_next(&oi); in t_iterate_option10()
771 CU_ASSERT(oi.bad == 1); in t_iterate_option10()