Lines Matching defs:result
27 size_t result;
30 /* result = coap_opt_parse(teststr.s, teststr.s + teststr.length, &option); */
31 result = coap_opt_parse(teststr.s, teststr.length, &option);
32 CU_ASSERT(result == 1);
43 size_t result;
46 result = coap_opt_parse(teststr.s, teststr.length, &option);
47 CU_ASSERT(result == 2);
60 size_t result;
63 result = coap_opt_parse(teststr.s, teststr.length, &option);
64 CU_ASSERT(result == 13);
76 size_t result;
79 result = coap_opt_parse(teststr.s, teststr.length, &option);
80 CU_ASSERT(result == 0);
88 size_t result;
91 result = coap_opt_parse(teststr.s, teststr.length, &option);
92 CU_ASSERT(result == 0);
100 size_t result;
103 result = coap_opt_parse(teststr.s, teststr.length, &option);
104 CU_ASSERT(result == 0);
112 size_t result;
115 result = coap_opt_parse(teststr.s, teststr.length, &option);
116 CU_ASSERT(result == 2);
126 size_t result;
129 result = coap_opt_parse(teststr.s, teststr.length, &option);
130 CU_ASSERT(result == 3);
140 size_t result;
143 result = coap_opt_parse(teststr.s, teststr.length, &option);
144 CU_ASSERT(result == 3);
153 size_t result;
156 result = coap_opt_parse(teststr.s, teststr.length, &option);
157 CU_ASSERT(result == 0);
165 size_t result;
168 result = coap_opt_parse(teststr.s, teststr.length, &option);
169 CU_ASSERT(result == 0);
177 size_t result;
180 result = coap_opt_parse(teststr.s, teststr.length, &option);
181 CU_ASSERT(result == 0);
195 size_t result;
198 result = coap_opt_parse(teststr.s, teststr.length, &option);
199 CU_ASSERT(result == sizeof(_data));
222 size_t result;
225 result = coap_opt_parse(data, length, &option);
226 CU_ASSERT(result == length);
241 size_t result;
243 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 0, 0);
244 CU_ASSERT(result == sizeof(teststr));
246 CU_ASSERT(memcmp(buf, teststr, result) == 0);
253 size_t result;
255 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5, 268);
256 CU_ASSERT(result == sizeof(teststr));
258 CU_ASSERT(memcmp(buf, teststr, result) == 0);
265 size_t result;
267 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 14, 1);
268 CU_ASSERT(result == sizeof(teststr));
270 CU_ASSERT(memcmp(buf, teststr, result) == 0);
277 size_t result;
279 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 268, 184);
280 CU_ASSERT(result == sizeof(teststr));
282 CU_ASSERT(memcmp(buf, teststr, result) == 0);
289 size_t result;
291 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5133, 268);
292 CU_ASSERT(result == sizeof(teststr));
294 CU_ASSERT(memcmp(buf, teststr, result) == 0);
301 size_t result;
303 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 65535, 65535);
304 CU_ASSERT(result == sizeof(teststr));
306 CU_ASSERT(memcmp(buf, teststr, result) == 0);
314 size_t result;
316 result = coap_opt_encode((coap_opt_t *)buf, sizeof(buf), 3,
320 CU_ASSERT(result == sizeof(teststr));
329 size_t result;
331 result = coap_opt_encode((coap_opt_t *)buf, 8, 15,
334 CU_ASSERT(result == 0);
336 result = coap_opt_encode((coap_opt_t *)buf, 1, 15,
339 CU_ASSERT(result == 0);
346 size_t result;
348 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 269, 1);
349 CU_ASSERT(result == sizeof(teststr));
351 CU_ASSERT(memcmp(buf, teststr, result) == 0);
479 coap_opt_iterator_t oi, *result;
482 result = coap_option_iterator_init(&pdu, &oi, COAP_OPT_ALL);
484 CU_ASSERT(result == NULL);
505 coap_opt_iterator_t oi, *result;
508 result = coap_option_iterator_init(&pdu, &oi, COAP_OPT_ALL);
510 CU_ASSERT(result == NULL);
532 coap_opt_iterator_t oi, *result;
535 result = coap_option_iterator_init(&pdu, &oi, COAP_OPT_ALL);
537 CU_ASSERT_PTR_EQUAL(result, &oi);
575 coap_opt_iterator_t oi, *result;
578 result = coap_option_iterator_init(&pdu, &oi, COAP_OPT_ALL);
580 CU_ASSERT_PTR_EQUAL(result, &oi);
617 coap_opt_iterator_t oi, *result;
620 result = coap_option_iterator_init(&pdu, &oi, COAP_OPT_ALL);
622 CU_ASSERT_PTR_EQUAL(result, &oi);
650 coap_opt_iterator_t oi, *result;
656 result = coap_option_iterator_init(&pdu, &oi, &filter);
658 CU_ASSERT_PTR_EQUAL(result, &oi);
695 coap_opt_iterator_t oi, *result;
703 result = coap_option_iterator_init(&pdu, &oi, &filter);
705 CU_ASSERT_PTR_EQUAL(result, &oi);
742 coap_opt_iterator_t oi, *result;
749 result = coap_option_iterator_init(&pdu, &oi, &filter);
751 CU_ASSERT_PTR_EQUAL(result, &oi);
773 coap_opt_iterator_t oi, *result;
780 result = coap_option_iterator_init(&pdu, &oi, &filter);
782 CU_ASSERT_PTR_EQUAL(result, &oi);
804 coap_opt_iterator_t oi, *result;
811 result = coap_option_iterator_init(&pdu, &oi, &filter);
813 CU_ASSERT_PTR_EQUAL(result, &oi);