Lines Matching refs:result

28   int result;  in t_parse_pdu1()  local
30 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu1()
31 CU_ASSERT(result > 0); in t_parse_pdu1()
45 int result; in t_parse_pdu2() local
47 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu2()
48 CU_ASSERT(result > 0); in t_parse_pdu2()
63 int result; in t_parse_pdu3() local
65 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu3()
66 CU_ASSERT(result == 0); in t_parse_pdu3()
74 int result; in t_parse_pdu4() local
76 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu4()
77 CU_ASSERT(result == 0); in t_parse_pdu4()
81 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu4()
82 CU_ASSERT(result == 0); in t_parse_pdu4()
91 int result; in t_parse_pdu5() local
93 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu5()
94 CU_ASSERT(result > 0); in t_parse_pdu5()
114 int result; in t_parse_pdu6() local
116 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu6()
117 CU_ASSERT(result == 0); in t_parse_pdu6()
127 int result; in t_parse_pdu7() local
129 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu7()
130 CU_ASSERT(result > 0); in t_parse_pdu7()
153 int result; in t_parse_pdu8() local
155 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu8()
156 CU_ASSERT(result > 0); in t_parse_pdu8()
175 int result; in t_parse_pdu9() local
177 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu9()
178 CU_ASSERT(result == 0); in t_parse_pdu9()
187 int result; in t_parse_pdu10() local
189 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu10()
190 CU_ASSERT(result == 0); in t_parse_pdu10()
196 int result; in t_parse_pdu11() local
198 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu11()
199 CU_ASSERT(result > 0); in t_parse_pdu11()
213 int result; in t_parse_pdu12() local
215 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu12()
216 CU_ASSERT(result > 0); in t_parse_pdu12()
232 int result; in t_parse_pdu13() local
234 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu13()
235 CU_ASSERT(result == 0); in t_parse_pdu13()
244 int result; in t_parse_pdu14() local
246 result = coap_pdu_parse((unsigned char *)teststr, sizeof(teststr), pdu); in t_parse_pdu14()
247 CU_ASSERT(result == 0); in t_parse_pdu14()
257 int result; in t_encode_pdu1() local
264 result = coap_add_token(pdu, 5, (unsigned char *)"token"); in t_encode_pdu1()
266 CU_ASSERT(result == 1); in t_encode_pdu1()
275 int result; in t_encode_pdu2() local
283 result = coap_add_token(pdu, 5, (unsigned char *)"token"); in t_encode_pdu2()
285 CU_ASSERT(result == 0); in t_encode_pdu2()
292 int result; in t_encode_pdu3() local
294 result = coap_add_token(pdu, 9, (unsigned char *)"123456789"); in t_encode_pdu3()
296 CU_ASSERT(result == 0); in t_encode_pdu3()
309 int result; in t_encode_pdu4() local
319 result = coap_add_option(pdu, COAP_OPTION_URI_HOST, in t_encode_pdu4()
322 CU_ASSERT(result == 20); in t_encode_pdu4()
327 result = coap_add_option(pdu, COAP_OPTION_URI_PATH, in t_encode_pdu4()
330 CU_ASSERT(result == 5); in t_encode_pdu4()
335 result = coap_add_option(pdu, COAP_OPTION_URI_PATH, 0, NULL); in t_encode_pdu4()
337 CU_ASSERT(result == 1); in t_encode_pdu4()
342 result = coap_add_option(pdu, 8000, 8, (unsigned char *)"fancyopt"); in t_encode_pdu4()
344 CU_ASSERT(result == 11); in t_encode_pdu4()
360 int result; in t_encode_pdu5() local
370 result = coap_add_token(pdu, 8, (unsigned char *)"12345678"); in t_encode_pdu5()
374 result = coap_add_option(pdu, COAP_OPTION_IF_MATCH, in t_encode_pdu5()
377 CU_ASSERT(result == 9); in t_encode_pdu5()
382 result = coap_add_option(pdu, COAP_OPTION_ACCEPT, in t_encode_pdu5()
385 CU_ASSERT(result == 3); in t_encode_pdu5()
419 int result; in t_encode_pdu7() local
428 result = coap_add_data(pdu, 0, NULL); in t_encode_pdu7()
430 CU_ASSERT(result > 0); in t_encode_pdu7()
442 int result; in t_encode_pdu8() local
451 result = coap_add_token(pdu, 2, (unsigned char *)"\x00\x01"); in t_encode_pdu8()
453 CU_ASSERT(result > 0); in t_encode_pdu8()
455 result = coap_add_data(pdu, 1, (unsigned char *)"\0"); in t_encode_pdu8()
457 CU_ASSERT(result > 0); in t_encode_pdu8()
474 int result; in t_encode_pdu9() local
484 result = coap_add_option(pdu, COAP_OPTION_ETAG, 8, (unsigned char *)"someetag"); in t_encode_pdu9()
486 CU_ASSERT(result == 9); in t_encode_pdu9()
491 result = coap_add_option(pdu, COAP_OPTION_IF_NONE_MATCH, 0, NULL); in t_encode_pdu9()
493 CU_ASSERT(result == 1); in t_encode_pdu9()
498 result = coap_add_option(pdu, COAP_OPTION_PROXY_URI, in t_encode_pdu9()
501 CU_ASSERT(result == 20); in t_encode_pdu9()
506 result = coap_add_data(pdu, 4, (unsigned char *)"data"); in t_encode_pdu9()
508 CU_ASSERT(result > 0); in t_encode_pdu9()
556 int result; in t_encode_pdu10() local
566 result = coap_add_token(pdu, 2, (unsigned char *)"\0\0"); in t_encode_pdu10()
568 CU_ASSERT(result > 0); in t_encode_pdu10()
569 result = coap_add_option(pdu, COAP_OPTION_LOCATION_PATH, 255, in t_encode_pdu10()
572 CU_ASSERT(result == 257); in t_encode_pdu10()
577 result = coap_add_option(pdu, COAP_OPTION_LOCATION_PATH, 14, in t_encode_pdu10()
580 CU_ASSERT(result == 16); in t_encode_pdu10()
585 result = coap_add_option(pdu, COAP_OPTION_LOCATION_QUERY, in t_encode_pdu10()
588 CU_ASSERT(result == 2); in t_encode_pdu10()
593 result = coap_add_data(pdu, 4, (unsigned char *)"data"); in t_encode_pdu10()
595 CU_ASSERT(result > 0); in t_encode_pdu10()
608 int result; in t_encode_pdu11() local
614 result = coap_add_data(pdu, 10, (unsigned char *)"0123456789"); in t_encode_pdu11()
617 CU_ASSERT(result == 0); in t_encode_pdu11()