Home
last modified time | relevance | path

Searched refs:cbor_typeof (Results 1 – 12 of 12) sorted by relevance

/netbsd-src/external/mit/libcbor/dist/test/
H A Dtype_5_test.c26 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_empty_map()
41 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_simple_map()
61 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_indef_simple_map()
88 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_def_nested_map()
94 assert_true(cbor_typeof(handle[0].key) == CBOR_TYPE_STRING); in test_def_nested_map()
95 assert_true(cbor_typeof(handle[0].value) == CBOR_TYPE_MAP); in test_def_nested_map()
97 assert_true(cbor_typeof(inner_handle[0].key) == CBOR_TYPE_STRING); in test_def_nested_map()
98 assert_true(cbor_typeof(inner_handle[0].value) == CBOR_TYPE_STRING); in test_def_nested_map()
112 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_streamed_key_map()
118 assert_true(cbor_typeof(handle[0].key) == CBOR_TYPE_STRING); in test_streamed_key_map()
[all …]
H A Dtype_6_test.c25 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_embedded_tag()
37 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int8_tag()
49 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int16_tag()
61 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int32_tag()
74 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int64_tag()
86 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_nested_tag()
88 assert_true(cbor_typeof(cbor_tag_item(tag)) == CBOR_TYPE_TAG); in test_nested_tag()
H A Dtype_2_test.c143 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_empty_bs()
154 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_embedded_bs()
173 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_bs1()
186 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_bs2()
198 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_half_bs()
210 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_int_bs()
222 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_long_bs()
236 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_zero_indef()
252 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_indef()
276 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_two_indef()
H A Dtype_3_test.c25 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_empty_string()
41 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_short_string()
59 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_short_multibyte_string()
88 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int8_string()
122 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int16_string()
155 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int32_string()
189 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int64_string()
211 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_short_indef_string()
H A Dtype_1_test.c28 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_very_short_int()
42 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_short_int()
56 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_half_int()
70 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_int()
84 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_long_int()
H A Dtype_4_test.c25 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_empty_array()
38 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_simple_array()
64 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_nested_arrays()
85 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_indef_arrays()
105 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_nested_indef_arrays()
H A Dtype_0_test.c28 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_very_short_int()
48 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_short_int()
62 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_half_int()
76 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_int()
90 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_long_int()
/netbsd-src/external/mit/libcbor/dist/src/
H A Dcbor.c161 switch (cbor_typeof(item)) { in cbor_copy()
243 switch (cbor_typeof(item)) { in _cbor_nested_describe()
/netbsd-src/external/mit/libcbor/dist/doc/source/api/
H A Ditem_types.rst10 .. doxygenfunction:: cbor_typeof
/netbsd-src/external/mit/libcbor/dist/src/cbor/
H A Dcommon.h137 cbor_type cbor_typeof(
H A Dcommon.c50 cbor_type cbor_typeof(const cbor_item_t *item) { return item->type; } in cbor_typeof() function
H A Dserialization.c22 switch (cbor_typeof(item)) { in cbor_serialize()