Lines Matching full:cb
114 cn_cbor *cb; in CTEST() local
123 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST()
126 ASSERT_NOT_NULL(cb); in CTEST()
128 enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); in CTEST()
131 cn_cbor_free(cb CONTEXT_NULL); in CTEST()
162 cn_cbor *cb; in CTEST() local
172 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST()
175 ASSERT_NOT_NULL(cb); in CTEST()
177 enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); in CTEST()
181 cn_cbor_free(cb CONTEXT_NULL); in CTEST()
188 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST()
192 ASSERT_NOT_NULL(cb); in CTEST()
195 ASSERT_NULL(cb); in CTEST()
198 /* enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); */ in CTEST()
202 cn_cbor_free(cb CONTEXT_NULL); in CTEST()
224 cn_cbor *cb; in CTEST() local
234 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST()
235 ASSERT_NULL(cb); in CTEST()
239 cn_cbor_free(cb CONTEXT_NULL); in CTEST()
256 cn_cbor *cb; in CTEST() local
264 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST()
265 ASSERT_NOT_NULL(cb); in CTEST()
267 enc_sz = cn_cbor_encoder_write(encoded, 0, sizeof(encoded), cb); in CTEST()
271 cn_cbor_free(cb CONTEXT_NULL); in CTEST()
279 cn_cbor *cb; in CTEST() local
284 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST()
285 ASSERT_NOT_NULL(cb); in CTEST()
286 val = cn_cbor_mapget_string(cb, "a"); in CTEST()
288 val = cn_cbor_mapget_string(cb, "bb"); in CTEST()
290 val = cn_cbor_mapget_string(cb, "ccc"); in CTEST()
292 val = cn_cbor_mapget_string(cb, "b"); in CTEST()
295 cn_cbor_free(cb CONTEXT_NULL); in CTEST()
298 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST()
299 ASSERT_NOT_NULL(cb); in CTEST()
300 val = cn_cbor_mapget_int(cb, 0); in CTEST()
302 val = cn_cbor_mapget_int(cb, -1); in CTEST()
304 val = cn_cbor_mapget_int(cb, 1); in CTEST()
307 cn_cbor_free(cb CONTEXT_NULL); in CTEST()
310 cb = cn_cbor_decode(b.ptr, b.sz CONTEXT_NULL, &err); in CTEST()
311 ASSERT_NOT_NULL(cb); in CTEST()
312 val = cn_cbor_index(cb, 0); in CTEST()
314 val = cn_cbor_index(cb, 1); in CTEST()
316 val = cn_cbor_index(cb, -1); in CTEST()
319 cn_cbor_free(cb CONTEXT_NULL); in CTEST()