Lines Matching refs:result

25   unsigned int result;
27 result = coap_decode_var_bytes(teststr.s, teststr.length);
29 CU_ASSERT(result == 0);
36 unsigned int result;
38 result = coap_decode_var_bytes8(teststr.s, teststr.length);
40 CU_ASSERT(result == 1);
47 unsigned int result;
49 result = coap_decode_var_bytes(teststr.s, teststr.length);
51 CU_ASSERT(result == 0x01000000);
58 unsigned int result;
60 result = coap_decode_var_bytes(teststr.s, teststr.length);
62 CU_ASSERT(result == 0x05060708);
68 uint64_t result;
70 result = coap_decode_var_bytes8(teststr.s, teststr.length);
72 CU_ASSERT(result == 0);
79 uint64_t result;
81 result = coap_decode_var_bytes8(teststr.s, teststr.length);
83 CU_ASSERT(result == 1);
90 uint64_t result;
92 result = coap_decode_var_bytes8(teststr.s, teststr.length);
94 CU_ASSERT(result == 0x0100000000000000);
101 uint64_t result;
103 result = coap_decode_var_bytes8(teststr.s, teststr.length);
105 CU_ASSERT(result == 0x0102030405060708);
116 unsigned int result;
118 result = coap_encode_var_safe(buf, sizeof(buf), 0x00);
120 CU_ASSERT(result == 0);
122 CU_ASSERT(memcmp(buf, data, result) == 0);
129 unsigned int result;
131 result = coap_encode_var_safe(buf, sizeof(buf), 0x01);
133 CU_ASSERT(result == sizeof(data));
135 CU_ASSERT(memcmp(buf, data, result) == 0);
142 unsigned int result;
144 result = coap_encode_var_safe8(buf, sizeof(buf), 0x05060708);
146 CU_ASSERT(result == sizeof(data));
148 CU_ASSERT(memcmp(buf, data, result) == 0);
153 unsigned int result = 0;
157 result = coap_encode_var_safe(buf, 2, 0x01020304);
159 CU_ASSERT(result == 0);
166 unsigned int result;
168 result = coap_encode_var_safe8(buf, sizeof(buf), 0x00);
170 CU_ASSERT(result == 0);
172 CU_ASSERT(memcmp(buf, data, result) == 0);
179 unsigned int result;
181 result = coap_encode_var_safe8(buf, sizeof(buf), 0x01);
183 CU_ASSERT(result == sizeof(data));
185 CU_ASSERT(memcmp(buf, data, result) == 0);
192 unsigned int result;
194 result = coap_encode_var_safe8(buf, sizeof(buf), 0x0102030405060708);
196 CU_ASSERT(result == sizeof(data));
198 CU_ASSERT(memcmp(buf, data, result) == 0);
203 unsigned int result = 0;
207 result = coap_encode_var_safe8(buf, 2, 0x0102030405060708);
209 CU_ASSERT(result == 0);