Home
last modified time | relevance | path

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

/freebsd/contrib/libcbor/test/
H A Dmap_test.c28 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_empty_map()
43 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_simple_map()
63 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_indef_simple_map()
90 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_def_nested_map()
96 assert_true(cbor_typeof(handle[0].key) == CBOR_TYPE_STRING); in test_def_nested_map()
97 assert_true(cbor_typeof(handle[0].value) == CBOR_TYPE_MAP); in test_def_nested_map()
99 assert_true(cbor_typeof(inner_handle[0].key) == CBOR_TYPE_STRING); in test_def_nested_map()
100 assert_true(cbor_typeof(inner_handle[0].value) == CBOR_TYPE_STRING); in test_def_nested_map()
114 assert_true(cbor_typeof(map) == CBOR_TYPE_MAP); in test_streamed_key_map()
120 assert_true(cbor_typeof(handle[0].key) == CBOR_TYPE_STRING); in test_streamed_key_map()
[all …]
H A Dtag_test.c32 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_embedded_tag()
44 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int8_tag()
56 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int16_tag()
68 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int32_tag()
81 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int64_tag()
93 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_nested_tag()
96 assert_true(cbor_typeof(nested_tag) == CBOR_TYPE_TAG); in test_nested_tag()
117 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_build_tag_failure()
130 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in main()
H A Dbytestring_test.c139 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_empty_bs()
150 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_embedded_bs()
169 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_bs1()
182 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_bs2()
194 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_half_bs()
206 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_int_bs()
218 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_long_bs()
232 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_zero_indef()
248 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_short_indef()
272 assert_true(cbor_typeof(bs) == CBOR_TYPE_BYTESTRING); in test_two_indef()
H A Dstring_test.c21 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_empty_string()
37 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_short_string()
55 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_short_multibyte_string()
84 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int8_string()
118 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int16_string()
151 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int32_string()
185 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_int64_string()
207 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_short_indef_string()
226 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_string_creation()
H A Dnegint_test.c24 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_very_short_int()
38 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_short_int()
52 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_half_int()
66 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_int()
80 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_long_int()
H A Duint_test.c25 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_very_short_int()
45 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_short_int()
59 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_half_int()
73 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_int()
87 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_long_int()
H A Dcallbacks_test.c53 assert_true(cbor_typeof(bytestring) == CBOR_TYPE_BYTESTRING); in test_builder_byte_string_callback_append()
61 assert_true(cbor_typeof(bytestring) == CBOR_TYPE_BYTESTRING); in test_builder_byte_string_callback_append()
95 assert_true(cbor_typeof(bytestring) == CBOR_TYPE_BYTESTRING); in test_builder_byte_string_callback_append_alloc_failure()
129 assert_true(cbor_typeof(bytestring) == CBOR_TYPE_BYTESTRING); in test_builder_byte_string_callback_append_item_alloc_failure()
163 assert_true(cbor_typeof(bytestring) == CBOR_TYPE_BYTESTRING); in test_builder_byte_string_callback_append_parent_alloc_failure()
231 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_builder_string_callback_append_alloc_failure()
263 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_builder_string_callback_append_item_alloc_failure()
295 assert_true(cbor_typeof(string) == CBOR_TYPE_STRING); in test_builder_string_callback_append_parent_alloc_failure()
H A Darray_test.c20 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_empty_array()
33 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_simple_array()
59 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_nested_arrays()
80 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_indef_arrays()
100 assert_true(cbor_typeof(arr) == CBOR_TYPE_ARRAY); in test_nested_indef_arrays()
/freebsd/contrib/libcbor/doc/source/api/
H A Ditem_types.rst10 .. doxygenfunction:: cbor_typeof
/freebsd/contrib/libcbor/src/cbor/
H A Dserialization.c23 switch (cbor_typeof(item)) { in cbor_serialize()
63 switch (cbor_typeof(item)) { in cbor_serialized_size()
H A Dcommon.h157 CBOR_EXPORT cbor_type cbor_typeof(
H A Dcommon.c54 cbor_type cbor_typeof(const cbor_item_t *item) { return item->type; } in cbor_typeof() function
/freebsd/contrib/libcbor/src/
H A Dcbor.c156 switch (cbor_typeof(item)) { in cbor_copy()
310 switch (cbor_typeof(item)) { in _cbor_nested_describe()