Lines Matching defs:length
24 /* delta == 0, length == 0, value == 0 */
30 /* result = coap_opt_parse(teststr.s, teststr.s + teststr.length, &option); */
31 result = coap_opt_parse(teststr.s, teststr.length, &option);
34 CU_ASSERT(option.length == 0);
40 /* delta == 12, length == 1, value == 0 */
46 result = coap_opt_parse(teststr.s, teststr.length, &option);
49 CU_ASSERT(option.length == 1);
55 /* delta == 3, length == 12, value == 0 */
63 result = coap_opt_parse(teststr.s, teststr.length, &option);
66 CU_ASSERT(option.length == 12);
73 /* delta == 15, length == 3, value == 0 */
79 result = coap_opt_parse(teststr.s, teststr.length, &option);
85 /* delta == 3, length == 15, value == 0 */
91 result = coap_opt_parse(teststr.s, teststr.length, &option);
97 /* delta == 15, length == 15 */
103 result = coap_opt_parse(teststr.s, teststr.length, &option);
109 /* delta == 20, length == 0 */
115 result = coap_opt_parse(teststr.s, teststr.length, &option);
118 CU_ASSERT(option.length == 0);
123 /* delta == 780, length == 0 */
129 result = coap_opt_parse(teststr.s, teststr.length, &option);
132 CU_ASSERT(option.length == 0);
137 /* delta == 65535, length == 0 */
143 result = coap_opt_parse(teststr.s, teststr.length, &option);
150 /* delta > 65535 (illegal), length == 0 */
156 result = coap_opt_parse(teststr.s, teststr.length, &option);
168 result = coap_opt_parse(teststr.s, teststr.length, &option);
174 /* delta == 280, length == 500 */
180 result = coap_opt_parse(teststr.s, teststr.length, &option);
186 /* delta == 280, length == 500 */
198 result = coap_opt_parse(teststr.s, teststr.length, &option);
201 CU_ASSERT(option.length == 500);
207 /* delta == 268, length == 65535 */
209 unsigned int length = 4 + 65535;
211 data = (unsigned char *)malloc(length);
225 result = coap_opt_parse(data, length, &option);
226 CU_ASSERT(result == length);
228 CU_ASSERT(option.length == 65535);