Lines Matching refs:result
27 size_t result; in t_parse_option1() local
31 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option1()
32 CU_ASSERT(result == 1); in t_parse_option1()
43 size_t result; in t_parse_option2() local
46 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option2()
47 CU_ASSERT(result == 2); in t_parse_option2()
59 size_t result; in t_parse_option3() local
62 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option3()
63 CU_ASSERT(result == 13); in t_parse_option3()
75 size_t result; in t_parse_option4() local
78 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option4()
79 CU_ASSERT(result == 0); in t_parse_option4()
87 size_t result; in t_parse_option5() local
90 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option5()
91 CU_ASSERT(result == 0); in t_parse_option5()
99 size_t result; in t_parse_option6() local
102 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option6()
103 CU_ASSERT(result == 0); in t_parse_option6()
111 size_t result; in t_parse_option7() local
114 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option7()
115 CU_ASSERT(result == 2); in t_parse_option7()
125 size_t result; in t_parse_option8() local
128 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option8()
129 CU_ASSERT(result == 3); in t_parse_option8()
139 size_t result; in t_parse_option9() local
142 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option9()
143 CU_ASSERT(result == 3); in t_parse_option9()
152 size_t result; in t_parse_option10() local
155 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option10()
156 CU_ASSERT(result == 0); in t_parse_option10()
164 size_t result; in t_parse_option11() local
167 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option11()
168 CU_ASSERT(result == 0); in t_parse_option11()
176 size_t result; in t_parse_option12() local
179 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option12()
180 CU_ASSERT(result == 0); in t_parse_option12()
194 size_t result; in t_parse_option13() local
197 result = coap_opt_parse(teststr.s, teststr.length, &option); in t_parse_option13()
198 CU_ASSERT(result == sizeof(_data)); in t_parse_option13()
221 size_t result; in t_parse_option14() local
224 result = coap_opt_parse(data, length, &option); in t_parse_option14()
225 CU_ASSERT(result == length); in t_parse_option14()
239 size_t result; in t_encode_option1() local
241 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 0, 0); in t_encode_option1()
242 CU_ASSERT(result == sizeof(teststr)); in t_encode_option1()
244 CU_ASSERT(memcmp(buf, teststr, result) == 0); in t_encode_option1()
251 size_t result; in t_encode_option2() local
253 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5, 268); in t_encode_option2()
254 CU_ASSERT(result == sizeof(teststr)); in t_encode_option2()
256 CU_ASSERT(memcmp(buf, teststr, result) == 0); in t_encode_option2()
263 size_t result; in t_encode_option3() local
265 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 14, 1); in t_encode_option3()
266 CU_ASSERT(result == sizeof(teststr)); in t_encode_option3()
268 CU_ASSERT(memcmp(buf, teststr, result) == 0); in t_encode_option3()
275 size_t result; in t_encode_option4() local
277 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 268, 184); in t_encode_option4()
278 CU_ASSERT(result == sizeof(teststr)); in t_encode_option4()
280 CU_ASSERT(memcmp(buf, teststr, result) == 0); in t_encode_option4()
287 size_t result; in t_encode_option5() local
289 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5133, 268); in t_encode_option5()
290 CU_ASSERT(result == sizeof(teststr)); in t_encode_option5()
292 CU_ASSERT(memcmp(buf, teststr, result) == 0); in t_encode_option5()
299 size_t result; in t_encode_option6() local
301 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 65535, 65535); in t_encode_option6()
302 CU_ASSERT(result == sizeof(teststr)); in t_encode_option6()
304 CU_ASSERT(memcmp(buf, teststr, result) == 0); in t_encode_option6()
312 size_t result; in t_encode_option7() local
314 result = coap_opt_encode((coap_opt_t *)buf, sizeof(buf), 3, in t_encode_option7()
318 CU_ASSERT(result == sizeof(teststr)); in t_encode_option7()
320 CU_ASSERT(memcmp(buf, teststr, result) == 0); in t_encode_option7()
327 size_t result; in t_encode_option8() local
329 result = coap_opt_encode((coap_opt_t *)buf, 8, 15, in t_encode_option8()
332 CU_ASSERT(result == 0); in t_encode_option8()
334 result = coap_opt_encode((coap_opt_t *)buf, 1, 15, in t_encode_option8()
337 CU_ASSERT(result == 0); in t_encode_option8()
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()
443 CU_ASSERT(result == NULL); 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()
468 CU_ASSERT(result == NULL); 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()
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()
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()
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()
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()
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()
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()
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()