| /freebsd-14.2/contrib/libcbor/test/ |
| H A D | bytestring_test.c | 140 assert_true(cbor_isa_bytestring(bs)); in test_empty_bs() 142 assert_true(res.read == 1); in test_empty_bs() 153 assert_true(res.read == 2); in test_embedded_bs() 172 assert_true(res.read == 3); in test_short_bs1() 185 assert_true(res.read == 257); in test_short_bs2() 197 assert_true(res.read == 258); in test_half_bs() 209 assert_true(res.read == 260); in test_int_bs() 221 assert_true(res.read == 264); in test_long_bs() 236 assert_true(res.read == 2); in test_zero_indef() 253 assert_true(res.read == 5); in test_short_indef() [all …]
|
| H A D | uint_test.c | 27 assert_true(cbor_isa_uint(number)); in test_very_short_int() 30 assert_true(res.error.code == 0); in test_very_short_int() 31 assert_true(res.read == 1); in test_very_short_int() 32 assert_true(cbor_is_int(number)); in test_very_short_int() 50 assert_true(res.error.code == 0); in test_short_int() 51 assert_true(res.read == 2); in test_short_int() 52 assert_true(cbor_is_int(number)); in test_short_int() 64 assert_true(res.error.code == 0); in test_half_int() 65 assert_true(res.read == 3); in test_half_int() 79 assert_true(res.read == 5); in test_int() [all …]
|
| H A D | negint_test.c | 29 assert_true(res.error.code == 0); in test_very_short_int() 30 assert_true(res.read == 1); in test_very_short_int() 31 assert_true(cbor_is_int(number)); in test_very_short_int() 43 assert_true(res.error.code == 0); in test_short_int() 44 assert_true(res.read == 2); in test_short_int() 45 assert_true(cbor_is_int(number)); in test_short_int() 57 assert_true(res.error.code == 0); in test_half_int() 58 assert_true(res.read == 3); in test_half_int() 59 assert_true(cbor_is_int(number)); in test_half_int() 72 assert_true(res.read == 5); in test_int() [all …]
|
| H A D | map_test.c | 29 assert_true(cbor_isa_map(map)); in test_empty_map() 31 assert_true(res.read == 1); in test_empty_map() 44 assert_true(cbor_isa_map(map)); in test_simple_map() 47 assert_true(res.read == 5); in test_simple_map() 64 assert_true(cbor_isa_map(map)); in test_indef_simple_map() 67 assert_true(res.read == 6); in test_indef_simple_map() 91 assert_true(cbor_isa_map(map)); in test_def_nested_map() 94 assert_true(res.read == 34); in test_def_nested_map() 115 assert_true(cbor_isa_map(map)); in test_streamed_key_map() 118 assert_true(res.read == 8); in test_streamed_key_map() [all …]
|
| H A D | float_ctrl_test.c | 29 assert_true(cbor_isa_float_ctrl(float_ctrl)); in test_float2() 30 assert_true(cbor_is_float(float_ctrl)); in test_float2() 42 assert_true(cbor_isa_float_ctrl(float_ctrl)); in test_float4() 43 assert_true(cbor_is_float(float_ctrl)); in test_float4() 57 assert_true(cbor_is_float(float_ctrl)); in test_float8() 72 assert_true(cbor_is_null(float_ctrl)); in test_null() 82 assert_true(cbor_is_undef(float_ctrl)); in test_undef() 93 assert_true(cbor_is_bool(float_ctrl)); in test_bool() 96 assert_true(cbor_get_bool(float_ctrl)); in test_bool() 103 assert_true(cbor_is_bool(float_ctrl)); in test_bool() [all …]
|
| H A D | stream_expectations.c | 29 assert_true(current().expectation == UINT8_EQ); in uint8_callback() 30 assert_true(current().data.int8 == actual); in uint8_callback() 41 assert_true(current().data.int16 == actual); in uint16_callback() 52 assert_true(current().data.int32 == actual); in uint32_callback() 63 assert_true(current().data.int64 == actual); in uint64_callback() 74 assert_true(current().data.int8 == actual); in negint8_callback() 85 assert_true(current().data.int16 == actual); in negint16_callback() 96 assert_true(current().data.int32 == actual); in negint32_callback() 107 assert_true(current().data.int64 == actual); in negint64_callback() 218 assert_true(current().data.int64 == value); in tag_callback() [all …]
|
| H A D | assertions.c | 12 assert_true(cbor_isa_uint(item)); in assert_uint8() 13 assert_true(cbor_int_get_width(item) == CBOR_INT_8); in assert_uint8() 14 assert_true(cbor_get_uint8(item) == num); in assert_uint8() 18 assert_true(cbor_isa_uint(item)); in assert_uint16() 20 assert_true(cbor_get_uint16(item) == num); in assert_uint16() 24 assert_true(cbor_isa_uint(item)); in assert_uint32() 26 assert_true(cbor_get_uint32(item) == num); in assert_uint32() 30 assert_true(cbor_isa_uint(item)); in assert_uint64() 32 assert_true(cbor_get_uint64(item) == num); in assert_uint64() 40 assert_true(actual_result.required == 0); in assert_decoder_result() [all …]
|
| H A D | string_test.c | 22 assert_true(cbor_isa_string(string)); in test_empty_string() 25 assert_true(res.read == 1); in test_empty_string() 38 assert_true(cbor_isa_string(string)); in test_short_string() 42 assert_true(res.read == 13); in test_short_string() 60 assert_true(res.read == 16); in test_short_multibyte_string() 93 assert_true(res.read == 152); in test_int8_string() 127 assert_true(res.read == 153); in test_int16_string() 160 assert_true(res.read == 155); in test_int32_string() 194 assert_true(res.read == 159); in test_int64_string() 212 assert_true(res.read == 5); in test_short_indef_string() [all …]
|
| H A D | tag_test.c | 19 assert_true(cbor_refcount(tag) == 1); in test_refcounting() 21 assert_true(cbor_refcount(item) == 2); in test_refcounting() 24 assert_true(cbor_refcount(item) == 1); in test_refcounting() 32 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_embedded_tag() 33 assert_true(cbor_tag_value(tag) == 0); in test_embedded_tag() 44 assert_true(cbor_typeof(tag) == CBOR_TYPE_TAG); in test_int8_tag() 45 assert_true(cbor_tag_value(tag) == 255); in test_int8_tag() 57 assert_true(cbor_tag_value(tag) == 255 << 8); in test_int16_tag() 94 assert_true(cbor_tag_value(tag) == 0); in test_nested_tag() 97 assert_true(cbor_tag_value(nested_tag) == 1); in test_nested_tag() [all …]
|
| H A D | callbacks_test.c | 88 assert_true(context.creation_failed); in test_builder_byte_string_callback_append_alloc_failure() 122 assert_true(context.creation_failed); in test_builder_byte_string_callback_append_item_alloc_failure() 156 assert_true(context.creation_failed); in test_builder_byte_string_callback_append_parent_alloc_failure() 192 assert_true(cbor_isa_string(string)); in test_builder_string_callback_append() 199 assert_true(cbor_isa_string(chunk)); in test_builder_string_callback_append() 224 assert_true(context.creation_failed); in test_builder_string_callback_append_alloc_failure() 232 assert_true(cbor_isa_string(string)); in test_builder_string_callback_append_alloc_failure() 256 assert_true(context.creation_failed); in test_builder_string_callback_append_item_alloc_failure() 326 assert_true(cbor_isa_array(array)); in test_append_array_failure() 355 assert_true(cbor_isa_map(map)); in test_append_map_failure() [all …]
|
| H A D | array_test.c | 21 assert_true(cbor_isa_array(arr)); in test_empty_array() 22 assert_true(cbor_array_size(arr) == 0); in test_empty_array() 23 assert_true(res.read == 1); in test_empty_array() 34 assert_true(cbor_isa_array(arr)); in test_simple_array() 36 assert_true(res.read == 2); in test_simple_array() 60 assert_true(cbor_isa_array(arr)); in test_nested_arrays() 62 assert_true(res.read == 4); in test_nested_arrays() 81 assert_true(cbor_isa_array(arr)); in test_indef_arrays() 83 assert_true(res.read == 4); in test_indef_arrays() 101 assert_true(cbor_isa_array(arr)); in test_nested_indef_arrays() [all …]
|
| H A D | copy_test.c | 68 assert_true(cbor_bytestring_add_chunk( in test_indef_bytestring() 196 assert_true(cbor_bytestring_add_chunk( in test_bytestring_alloc_failure() 207 assert_true(cbor_bytestring_add_chunk( in test_bytestring_chunk_alloc_failure() 218 assert_true(cbor_bytestring_add_chunk( in test_bytestring_chunk_append_failure() 233 assert_true(cbor_bytestring_add_chunk( in test_bytestring_second_chunk_alloc_failure() 349 assert_true( in test_map_alloc_failure() 361 assert_true( in test_map_key_alloc_failure() 375 assert_true( in test_map_value_alloc_failure() 389 assert_true( in test_map_add_failure() 403 assert_true( in test_map_second_key_failure() [all …]
|
| H A D | pretty_printer_test.c | 29 assert_true(feof(outfile)); in assert_describe_result() 60 assert_true(cbor_bytestring_add_chunk( in test_indefinite_bytestring() 62 assert_true(cbor_bytestring_add_chunk( in test_indefinite_bytestring() 87 assert_true( in test_indefinite_string() 89 assert_true( in test_indefinite_string() 114 assert_true(cbor_array_push(item, cbor_move(cbor_build_uint8(1)))); in test_definite_array() 115 assert_true(cbor_array_push(item, cbor_move(cbor_build_uint8(2)))); in test_definite_array() 136 assert_true(cbor_map_add( in test_definite_map() 149 assert_true(cbor_map_add( in test_indefinite_map() 171 assert_true( in test_floats() [all …]
|
| H A D | unicode_test.c | 17 assert_true(_cbor_unicode_codepoint_count(missing_bytes_data, 1, &status) == in test_missing_bytes() 19 assert_true(status.status == _CBOR_UNICODE_BADCP); in test_missing_bytes() 20 assert_true(status.location == 1); in test_missing_bytes() 22 assert_true(_cbor_unicode_codepoint_count(missing_bytes_data, 2, &status) == in test_missing_bytes() 24 assert_true(status.status == _CBOR_UNICODE_OK); in test_missing_bytes() 25 assert_true(status.location == 0); in test_missing_bytes() 32 assert_true( in test_invalid_sequence() 34 assert_true(status.status == _CBOR_UNICODE_BADCP); in test_invalid_sequence() 35 assert_true(status.location == 2); in test_invalid_sequence()
|
| H A D | bad_inputs_test.c | 22 assert_true(res.error.code == CBOR_ERR_NOTENOUGHDATA); in test_1() 30 assert_true(res.error.code == CBOR_ERR_MALFORMATED); in test_2() 38 assert_true(res.error.code == CBOR_ERR_NOTENOUGHDATA); in test_3() 47 assert_true(res.error.code == CBOR_ERR_MEMERROR); in test_4() 53 assert_true(res.error.code == CBOR_ERR_MEMERROR); in test_5() 65 assert_true(res.error.code == CBOR_ERR_SYNTAXERROR); in test_6() 77 assert_true(res.error.code == CBOR_ERR_MEMERROR); in test_7() 90 assert_true(res.error.code == CBOR_ERR_SYNTAXERROR); in test_8() 98 assert_true(res.error.code == CBOR_ERR_SYNTAXERROR); in test_9()
|
| H A D | memory_utils_test.c | 13 assert_true(_cbor_safe_to_multiply(1, 1)); in test_safe_multiply() 14 assert_true(_cbor_safe_to_multiply(SIZE_MAX, 0)); in test_safe_multiply() 15 assert_true(_cbor_safe_to_multiply(SIZE_MAX, 1)); in test_safe_multiply() 21 assert_true(_cbor_safe_to_add(1, 1)); in test_safe_add() 22 assert_true(_cbor_safe_to_add(SIZE_MAX - 1, 1)); in test_safe_add() 23 assert_true(_cbor_safe_to_add(SIZE_MAX, 0)); in test_safe_add()
|
| H A D | cbor_serialize_test.c | 257 assert_true(cbor_string_add_chunk(item, cbor_move(chunk))); in test_serialize_indefinite_string() 288 assert_true(cbor_string_add_chunk(item, cbor_move(chunk))); in test_serialize_indefinite_string_no_space() 308 assert_true(cbor_array_push(item, one)); in test_serialize_definite_array() 309 assert_true(cbor_array_set(item, 1, two)); in test_serialize_definite_array() 310 assert_true(cbor_array_replace(item, 0, one)); in test_serialize_definite_array() 323 assert_true(cbor_array_push(item, one)); in test_serialize_array_no_space() 344 assert_true(cbor_array_push(item, one)); in test_serialize_indefinite_array() 345 assert_true(cbor_array_push(item, two)); in test_serialize_indefinite_array() 524 assert_true(cbor_string_add_chunk(item, chunk)); in test_auto_serialize_too_large() 528 assert_true(SIZE_MAX + 2 == 1); in test_auto_serialize_too_large() [all …]
|
| H A D | array_encoders_test.c | 34 assert_true(cbor_array_push(array, one)); in test_indef_array_encoding() 35 assert_true(cbor_array_push(array, two)); in test_indef_array_encoding()
|
| H A D | float_ctrl_encoders_test.c | 44 assert_true(cbor_isa_float_ctrl(half_float)); in assert_half_float_codec_identity() 45 assert_true(cbor_is_float(half_float)); in assert_half_float_codec_identity()
|
| /freebsd-14.2/contrib/expat/tests/ |
| H A D | misc_tests.c | 300 assert_true(mydata != NULL); in START_TEST() 322 assert_true(mydata != NULL); in START_TEST() 485 assert_true(ext_parser != NULL); in START_TEST() 488 assert_true(ext_parser == NULL); in START_TEST() 552 assert_true(parser != NULL); in START_TEST() 608 assert_true(parser != NULL); in START_TEST() 626 assert_true(byte_count >= 0); in dup_original_string() 634 assert_true(context != NULL); in dup_original_string() 635 assert_true(offset >= 0); in dup_original_string() 636 assert_true(size >= 0); in dup_original_string() [all …]
|
| H A D | acc_tests.c | 414 assert_true(parser != NULL); in START_TEST() 416 assert_true(XML_SetBillionLaughsAttackProtectionMaximumAmplification( in START_TEST() 419 assert_true(XML_SetBillionLaughsAttackProtectionActivationThreshold( in START_TEST() 424 assert_true(ext_parser != NULL); in START_TEST() 429 assert_true(actualStatus == expectedStatus); in START_TEST() 431 assert_true(XML_GetErrorCode(ext_parser) in START_TEST()
|
| H A D | basic_tests.c | 1276 assert_true( in START_TEST() 1332 assert_true(parser != NULL); in START_TEST() 2476 assert_true(parser != NULL); in START_TEST() 3147 assert_true(parser != NULL); in START_TEST() 5644 assert_true(parser != NULL); in START_TEST() 5714 assert_true(parser != NULL); in START_TEST() 5806 assert_true(parser != NULL); in external_inherited_parser() 5878 assert_true(parser != NULL); in START_TEST() 5913 assert_true(parser != NULL); in START_TEST() 6110 assert_true(document != NULL); in START_TEST() [all …]
|
| H A D | minicheck.h | 88 # define assert_true(cond) \ macro
|
| H A D | handlers.h | 519 assert_true(strcmp(e->name, expected_name) == 0); \ 520 assert_true(e->arg == (expected_arg)); \
|
| /freebsd-14.2/contrib/netbsd-tests/lib/libc/gen/ |
| H A D | t_assert.c | 103 ATF_TC(assert_true); 104 ATF_TC_HEAD(assert_true, tc) in ATF_TC_HEAD() argument 109 ATF_TC_BODY(assert_true, tc) in ATF_TC_BODY() argument 145 ATF_TP_ADD_TC(tp, assert_true); in ATF_TP_ADD_TCS()
|