ceedling 0.29.1 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +15 -16
- data/Gemfile.lock +1 -1
- data/README.md +108 -107
- data/Rakefile +11 -11
- data/assets/ceedling +3 -3
- data/assets/ceedling.cmd +0 -0
- data/assets/default_gitignore +5 -5
- data/assets/example_file.c +5 -5
- data/assets/example_file.h +6 -6
- data/assets/project_as_gem.yml +101 -97
- data/assets/project_with_guts.yml +102 -98
- data/assets/project_with_guts_gcov.yml +102 -98
- data/assets/project_with_guts_gcov_abortonuncovered.yml +93 -0
- data/assets/test_example_file.c +13 -13
- data/assets/test_example_file_boom.c +13 -13
- data/assets/test_example_file_success.c +14 -14
- data/assets/test_example_file_verbose.c +12 -12
- data/assets/uncovered_example_file.c +5 -0
- data/bin/ceedling +351 -339
- data/ceedling.gemspec +52 -36
- data/config/test_environment.rb +11 -11
- data/docs/Ceedling Basic Porting.pdf +0 -0
- data/docs/Ceedling Managing Release Code.pdf +0 -0
- data/docs/Ceedling Powerful Plugins.pdf +0 -0
- data/docs/Ceedling Working with IDEs.pdf +0 -0
- data/docs/CeedlingPacket.md +2213 -2134
- data/docs/CeedlingUpgrade.md +83 -83
- data/docs/ThrowTheSwitchCodingStandard.md +207 -207
- data/examples/blinky/project.yml +99 -99
- data/examples/blinky/rakefile.rb +31 -31
- data/examples/blinky/src/BlinkTask.c +21 -21
- data/examples/blinky/src/BlinkTask.h +6 -6
- data/examples/blinky/src/Configure.c +36 -36
- data/examples/blinky/src/Configure.h +6 -6
- data/examples/blinky/src/main.c +51 -51
- data/examples/blinky/src/main.h +9 -9
- data/examples/blinky/test/support/stub_interrupt.h +347 -347
- data/examples/blinky/test/support/stub_io.h +421 -421
- data/examples/blinky/test/support/stub_iom328p.h +883 -883
- data/examples/blinky/test/support/stub_sfr_defs.h +269 -269
- data/examples/blinky/test/test_BlinkTask.c +42 -42
- data/examples/blinky/test/test_Configure.c +29 -29
- data/examples/blinky/test/test_main.c +60 -60
- data/examples/temp_sensor/project.yml +66 -76
- data/examples/temp_sensor/rakefile.rb +6 -6
- data/examples/temp_sensor/src/AdcConductor.c +42 -42
- data/examples/temp_sensor/src/AdcConductor.h +13 -13
- data/examples/temp_sensor/src/AdcHardware.c +27 -27
- data/examples/temp_sensor/src/AdcHardware.h +11 -11
- data/examples/temp_sensor/src/AdcHardwareConfigurator.c +18 -18
- data/examples/temp_sensor/src/AdcHardwareConfigurator.h +10 -10
- data/examples/temp_sensor/src/AdcModel.c +33 -33
- data/examples/temp_sensor/src/AdcModel.h +13 -13
- data/examples/temp_sensor/src/AdcTemperatureSensor.c +51 -51
- data/examples/temp_sensor/src/AdcTemperatureSensor.h +10 -10
- data/examples/temp_sensor/src/Executor.c +25 -25
- data/examples/temp_sensor/src/Executor.h +9 -9
- data/examples/temp_sensor/src/IntrinsicsWrapper.c +18 -18
- data/examples/temp_sensor/src/IntrinsicsWrapper.h +7 -7
- data/examples/temp_sensor/src/Main.c +46 -46
- data/examples/temp_sensor/src/Main.h +7 -7
- data/examples/temp_sensor/src/Model.c +10 -10
- data/examples/temp_sensor/src/Model.h +8 -8
- data/examples/temp_sensor/src/ModelConfig.h +7 -7
- data/examples/temp_sensor/src/TaskScheduler.c +72 -72
- data/examples/temp_sensor/src/TaskScheduler.h +11 -11
- data/examples/temp_sensor/src/TemperatureCalculator.c +27 -27
- data/examples/temp_sensor/src/TemperatureCalculator.h +8 -8
- data/examples/temp_sensor/src/TemperatureFilter.c +38 -38
- data/examples/temp_sensor/src/TemperatureFilter.h +10 -10
- data/examples/temp_sensor/src/TimerConductor.c +15 -15
- data/examples/temp_sensor/src/TimerConductor.h +9 -9
- data/examples/temp_sensor/src/TimerConfigurator.c +51 -51
- data/examples/temp_sensor/src/TimerConfigurator.h +15 -15
- data/examples/temp_sensor/src/TimerHardware.c +15 -15
- data/examples/temp_sensor/src/TimerHardware.h +8 -8
- data/examples/temp_sensor/src/TimerInterruptConfigurator.c +55 -55
- data/examples/temp_sensor/src/TimerInterruptConfigurator.h +13 -13
- data/examples/temp_sensor/src/TimerInterruptHandler.c +25 -25
- data/examples/temp_sensor/src/TimerInterruptHandler.h +10 -10
- data/examples/temp_sensor/src/TimerModel.c +9 -9
- data/examples/temp_sensor/src/TimerModel.h +8 -8
- data/examples/temp_sensor/src/Types.h +90 -90
- data/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c +18 -18
- data/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +8 -8
- data/examples/temp_sensor/src/UsartConductor.c +21 -21
- data/examples/temp_sensor/src/UsartConductor.h +7 -7
- data/examples/temp_sensor/src/UsartConfigurator.c +39 -39
- data/examples/temp_sensor/src/UsartConfigurator.h +13 -13
- data/examples/temp_sensor/src/UsartHardware.c +22 -22
- data/examples/temp_sensor/src/UsartHardware.h +9 -9
- data/examples/temp_sensor/src/UsartModel.c +34 -34
- data/examples/temp_sensor/src/UsartModel.h +10 -10
- data/examples/temp_sensor/src/UsartPutChar.c +16 -16
- data/examples/temp_sensor/src/UsartPutChar.h +8 -8
- data/examples/temp_sensor/src/UsartTransmitBufferStatus.c +7 -7
- data/examples/temp_sensor/src/UsartTransmitBufferStatus.h +8 -8
- data/examples/temp_sensor/test/TestAdcConductor.c +121 -121
- data/examples/temp_sensor/test/TestAdcHardware.c +44 -44
- data/examples/temp_sensor/test/TestAdcModel.c +33 -33
- data/examples/temp_sensor/test/TestExecutor.c +36 -36
- data/examples/temp_sensor/test/TestMain.c +24 -24
- data/examples/temp_sensor/test/TestModel.c +20 -20
- data/examples/temp_sensor/test/TestTaskScheduler.c +104 -104
- data/examples/temp_sensor/test/TestTemperatureCalculator.c +36 -36
- data/examples/temp_sensor/test/TestTemperatureFilter.c +79 -79
- data/examples/temp_sensor/test/TestTimerConductor.c +32 -32
- data/examples/temp_sensor/test/TestTimerHardware.c +26 -26
- data/examples/temp_sensor/test/TestTimerModel.c +18 -18
- data/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c +21 -21
- data/examples/temp_sensor/test/TestUsartConductor.c +40 -40
- data/examples/temp_sensor/test/TestUsartHardware.c +36 -36
- data/examples/temp_sensor/test/TestUsartModel.c +40 -40
- data/examples/temp_sensor/test/support/UnityHelper.c +12 -12
- data/examples/temp_sensor/test/support/UnityHelper.h +12 -12
- data/lib/ceedling.rb +99 -99
- data/lib/ceedling/build_invoker_utils.rb +39 -39
- data/lib/ceedling/cacheinator.rb +47 -47
- data/lib/ceedling/cacheinator_helper.rb +35 -31
- data/lib/ceedling/cmock_builder.rb +15 -15
- data/lib/ceedling/configurator.rb +372 -363
- data/lib/ceedling/configurator_builder.rb +463 -458
- data/lib/ceedling/configurator_plugins.rb +111 -111
- data/lib/ceedling/configurator_setup.rb +127 -127
- data/lib/ceedling/configurator_validator.rb +193 -193
- data/lib/ceedling/constants.rb +99 -97
- data/lib/ceedling/defaults.rb +447 -418
- data/lib/ceedling/dependinator.rb +97 -98
- data/lib/ceedling/erb_wrapper.rb +8 -8
- data/lib/ceedling/file_finder.rb +149 -149
- data/lib/ceedling/file_finder_helper.rb +56 -54
- data/lib/ceedling/file_path_utils.rb +202 -200
- data/lib/ceedling/file_system_utils.rb +69 -69
- data/lib/ceedling/file_system_wrapper.rb +9 -9
- data/lib/ceedling/file_wrapper.rb +83 -83
- data/lib/ceedling/flaginator.rb +74 -74
- data/lib/ceedling/generator.rb +186 -183
- data/lib/ceedling/generator_helper.rb +40 -40
- data/lib/ceedling/generator_test_results.rb +100 -100
- data/lib/ceedling/generator_test_results_sanity_checker.rb +65 -65
- data/lib/ceedling/generator_test_runner.rb +58 -56
- data/lib/ceedling/loginator.rb +31 -31
- data/lib/ceedling/makefile.rb +46 -46
- data/lib/ceedling/objects.yml +311 -310
- data/lib/ceedling/par_map.rb +19 -19
- data/lib/ceedling/plugin.rb +80 -80
- data/lib/ceedling/plugin_builder.rb +52 -52
- data/lib/ceedling/plugin_manager.rb +107 -107
- data/lib/ceedling/plugin_manager_helper.rb +19 -19
- data/lib/ceedling/plugin_reportinator.rb +76 -76
- data/lib/ceedling/plugin_reportinator_helper.rb +51 -51
- data/lib/ceedling/preprocessinator.rb +47 -42
- data/lib/ceedling/preprocessinator_extractor.rb +30 -30
- data/lib/ceedling/preprocessinator_file_handler.rb +21 -21
- data/lib/ceedling/preprocessinator_helper.rb +50 -46
- data/lib/ceedling/preprocessinator_includes_handler.rb +181 -181
- data/lib/ceedling/project_config_manager.rb +52 -46
- data/lib/ceedling/project_file_loader.rb +99 -99
- data/lib/ceedling/rake_utils.rb +17 -17
- data/lib/ceedling/rake_wrapper.rb +33 -33
- data/lib/ceedling/rakefile.rb +86 -86
- data/lib/ceedling/release_invoker.rb +98 -73
- data/lib/ceedling/release_invoker_helper.rb +19 -19
- data/lib/ceedling/reportinator.rb +26 -26
- data/lib/ceedling/rules_cmock.rake +9 -9
- data/lib/ceedling/rules_preprocess.rake +26 -26
- data/lib/ceedling/rules_release.rake +99 -86
- data/lib/ceedling/rules_release_deep_dependencies.rake +15 -15
- data/lib/ceedling/rules_tests.rake +73 -74
- data/lib/ceedling/rules_tests_deep_dependencies.rake +15 -15
- data/lib/ceedling/setupinator.rb +53 -53
- data/lib/ceedling/stream_wrapper.rb +28 -28
- data/lib/ceedling/streaminator.rb +40 -40
- data/lib/ceedling/streaminator_helper.rb +15 -15
- data/lib/ceedling/system_utils.rb +37 -37
- data/lib/ceedling/system_wrapper.rb +80 -80
- data/lib/ceedling/target_loader.rb +38 -38
- data/lib/ceedling/task_invoker.rb +122 -117
- data/lib/ceedling/tasks_base.rake +116 -105
- data/lib/ceedling/tasks_filesystem.rake +113 -112
- data/lib/ceedling/tasks_release.rake +30 -30
- data/lib/ceedling/tasks_release_deep_dependencies.rake +9 -9
- data/lib/ceedling/tasks_tests.rake +60 -60
- data/lib/ceedling/tasks_tests_deep_dependencies.rake +9 -9
- data/lib/ceedling/tasks_vendor.rake +35 -35
- data/lib/ceedling/test_includes_extractor.rb +111 -85
- data/lib/ceedling/test_invoker.rb +164 -188
- data/lib/ceedling/test_invoker_helper.rb +32 -32
- data/lib/ceedling/tool_executor.rb +229 -229
- data/lib/ceedling/tool_executor_helper.rb +164 -164
- data/lib/ceedling/verbosinator.rb +10 -10
- data/lib/ceedling/version.rb +50 -50
- data/lib/ceedling/yaml_wrapper.rb +17 -17
- data/license.txt +31 -31
- data/plugins/beep/README.md +22 -22
- data/plugins/beep/lib/beep.rb +40 -40
- data/plugins/bullseye/README.md +76 -0
- data/plugins/bullseye/assets/template.erb +15 -15
- data/plugins/bullseye/bullseye.rake +173 -169
- data/plugins/bullseye/config/defaults.yml +57 -57
- data/plugins/bullseye/lib/bullseye.rb +194 -194
- data/plugins/colour_report/README.md +20 -0
- data/plugins/colour_report/lib/colour_report.rb +16 -16
- data/plugins/command_hooks/README.md +53 -53
- data/plugins/command_hooks/lib/command_hooks.rb +92 -92
- data/plugins/compile_commands_json/README.md +29 -0
- data/plugins/compile_commands_json/lib/compile_commands_json.rb +35 -0
- data/plugins/dependencies/README.md +254 -0
- data/plugins/dependencies/config/defaults.yml +5 -0
- data/plugins/dependencies/dependencies.rake +144 -0
- data/plugins/dependencies/lib/dependencies.rb +231 -0
- data/plugins/fake_function_framework/README.md +250 -250
- data/plugins/fake_function_framework/Rakefile +18 -18
- data/plugins/fake_function_framework/examples/fff_example/project.yml +71 -71
- data/plugins/fake_function_framework/examples/fff_example/rakefile.rb +7 -7
- data/plugins/fake_function_framework/examples/fff_example/src/bar.c +1 -1
- data/plugins/fake_function_framework/examples/fff_example/src/bar.h +14 -14
- data/plugins/fake_function_framework/examples/fff_example/src/custom_types.h +6 -6
- data/plugins/fake_function_framework/examples/fff_example/src/display.c +6 -6
- data/plugins/fake_function_framework/examples/fff_example/src/display.h +16 -16
- data/plugins/fake_function_framework/examples/fff_example/src/event_processor.c +93 -93
- data/plugins/fake_function_framework/examples/fff_example/src/event_processor.h +11 -11
- data/plugins/fake_function_framework/examples/fff_example/src/foo.c +16 -16
- data/plugins/fake_function_framework/examples/fff_example/src/foo.h +8 -8
- data/plugins/fake_function_framework/examples/fff_example/src/subfolder/zzz.c +1 -1
- data/plugins/fake_function_framework/examples/fff_example/src/subfolder/zzz.h +6 -6
- data/plugins/fake_function_framework/examples/fff_example/test/test_event_processor.c +155 -155
- data/plugins/fake_function_framework/examples/fff_example/test/test_foo.c +47 -47
- data/plugins/fake_function_framework/lib/fake_function_framework.rb +87 -87
- data/plugins/fake_function_framework/lib/fff_mock_generator.rb +163 -163
- data/plugins/fake_function_framework/spec/fff_mock_header_generator_spec.rb +304 -304
- data/plugins/fake_function_framework/spec/fff_mock_source_generator_spec.rb +148 -148
- data/plugins/fake_function_framework/spec/header_generator.rb +50 -50
- data/plugins/fake_function_framework/spec/spec_helper.rb +96 -96
- data/plugins/fake_function_framework/src/fff_unity_helper.h +32 -32
- data/plugins/gcov/README.md +412 -101
- data/plugins/gcov/assets/template.erb +15 -15
- data/plugins/gcov/config/defaults.yml +51 -73
- data/plugins/gcov/gcov.rake +209 -220
- data/plugins/gcov/lib/gcov.rb +133 -113
- data/plugins/gcov/lib/gcov_constants.rb +48 -19
- data/plugins/gcov/lib/gcovr_reportinator.rb +331 -0
- data/plugins/gcov/lib/reportgenerator_reportinator.rb +153 -0
- data/plugins/gcov/lib/reportinator_helper.rb +15 -0
- data/plugins/json_tests_report/README.md +36 -0
- data/plugins/json_tests_report/lib/json_tests_report.rb +83 -0
- data/plugins/junit_tests_report/README.md +36 -36
- data/plugins/junit_tests_report/lib/junit_tests_report.rb +134 -130
- data/plugins/module_generator/README.md +105 -0
- data/plugins/module_generator/config/module_generator.yml +3 -3
- data/plugins/module_generator/lib/module_generator.rb +79 -70
- data/plugins/module_generator/module_generator.rake +62 -47
- data/plugins/raw_output_report/README.md +19 -0
- data/plugins/raw_output_report/lib/raw_output_report.rb +41 -41
- data/plugins/stdout_gtestlike_tests_report/README.md +19 -0
- data/plugins/stdout_gtestlike_tests_report/assets/template.erb +84 -84
- data/plugins/stdout_gtestlike_tests_report/assets/template.erb copy +59 -59
- data/plugins/stdout_gtestlike_tests_report/config/stdout_gtestlike_tests_report.yml +4 -4
- data/plugins/stdout_gtestlike_tests_report/lib/stdout_gtestlike_tests_report.rb +43 -43
- data/plugins/stdout_ide_tests_report/README.md +18 -0
- data/plugins/stdout_ide_tests_report/config/stdout_ide_tests_report.yml +4 -4
- data/plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb +44 -44
- data/plugins/stdout_pretty_tests_report/README.md +20 -0
- data/plugins/stdout_pretty_tests_report/assets/template.erb +59 -59
- data/plugins/stdout_pretty_tests_report/config/stdout_pretty_tests_report.yml +4 -4
- data/plugins/stdout_pretty_tests_report/lib/stdout_pretty_tests_report.rb +47 -47
- data/plugins/subprojects/README.md +63 -63
- data/plugins/subprojects/config/defaults.yml +33 -33
- data/plugins/subprojects/lib/subprojects.rb +92 -92
- data/plugins/subprojects/subprojects.rake +78 -78
- data/plugins/teamcity_tests_report/README.md +18 -0
- data/plugins/teamcity_tests_report/config/teamcity_tests_report.yml +4 -4
- data/plugins/teamcity_tests_report/lib/teamcity_tests_report.rb +57 -57
- data/plugins/warnings_report/README.md +19 -0
- data/plugins/warnings_report/lib/warnings_report.rb +69 -69
- data/plugins/xml_tests_report/README.md +36 -36
- data/plugins/xml_tests_report/lib/xml_tests_report.rb +110 -110
- data/spec/build_invoker_utils_spec.rb +54 -54
- data/spec/ceedling_spec.rb +154 -154
- data/spec/configurator_builder_spec.rb +6 -6
- data/spec/configurator_helper_spec.rb +4 -4
- data/spec/configurator_spec.rb +9 -9
- data/spec/file_finder_helper_spec.rb +53 -53
- data/spec/gcov/gcov_deployment_spec.rb +72 -70
- data/spec/gcov/gcov_test_cases_spec.rb +128 -91
- data/spec/generator_test_results_sanity_checker_spec.rb +88 -88
- data/spec/generator_test_results_spec.rb +107 -107
- data/spec/par_map_spec.rb +57 -57
- data/spec/preprocessinator_extractor_spec.rb +45 -45
- data/spec/preprocessinator_includes_handler_spec.rb +202 -202
- data/spec/reportinator_spec.rb +19 -19
- data/spec/spec_helper.rb +27 -27
- data/spec/spec_system_helper.rb +616 -615
- data/spec/support/test_example.fail +24 -24
- data/spec/support/test_example.pass +24 -24
- data/spec/support/test_example_empty.pass +14 -14
- data/spec/support/test_example_ignore.pass +24 -24
- data/spec/support/test_example_mangled.pass +21 -21
- data/spec/support/test_example_with_time.pass +24 -24
- data/spec/system/deployment_spec.rb +225 -225
- data/spec/system_utils_spec.rb +56 -56
- data/spec/target_loader_spec.rb +30 -30
- data/spec/tool_executor_helper_spec.rb +310 -310
- data/spec/uncatagorized_specs_spec.rb +8 -8
- data/vendor/behaviors/Manifest.txt +9 -9
- data/vendor/behaviors/Rakefile +19 -19
- data/vendor/behaviors/lib/behaviors.rb +76 -76
- data/vendor/behaviors/lib/behaviors/reporttask.rb +158 -158
- data/vendor/behaviors/test/behaviors_tasks_test.rb +73 -73
- data/vendor/behaviors/test/behaviors_test.rb +50 -50
- data/vendor/behaviors/test/tasks_test/Rakefile +19 -19
- data/vendor/behaviors/test/tasks_test/lib/user.rb +2 -2
- data/vendor/behaviors/test/tasks_test/test/user_test.rb +17 -17
- data/vendor/c_exception/Gemfile +4 -4
- data/vendor/c_exception/Gemfile.lock +12 -12
- data/vendor/c_exception/README.md +249 -162
- data/vendor/c_exception/docs/CException.md +332 -292
- data/vendor/c_exception/docs/ThrowTheSwitchCodingStandard.md +207 -207
- data/vendor/c_exception/lib/CException.c +46 -46
- data/vendor/c_exception/lib/CException.h +115 -115
- data/vendor/c_exception/lib/meson.build +11 -0
- data/vendor/c_exception/meson.build +48 -0
- data/vendor/c_exception/project.yml +37 -0
- data/vendor/c_exception/test/TestException.c +391 -391
- data/vendor/{cmock/vendor/c_exception/test → c_exception/test/support}/CExceptionConfig.h +46 -46
- data/vendor/c_exception/vendor/unity/README.md +220 -220
- data/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +118 -118
- data/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +39 -39
- data/vendor/c_exception/vendor/unity/auto/generate_config.yml +36 -36
- data/vendor/c_exception/vendor/unity/auto/generate_module.rb +308 -308
- data/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +437 -437
- data/vendor/c_exception/vendor/unity/auto/parse_output.rb +220 -220
- data/vendor/c_exception/vendor/unity/auto/stylize_as_junit.rb +252 -252
- data/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +25 -25
- data/vendor/c_exception/vendor/unity/auto/type_sanitizer.rb +6 -6
- data/vendor/c_exception/vendor/unity/auto/unity_test_summary.py +139 -139
- data/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +136 -136
- data/vendor/c_exception/vendor/unity/auto/unity_to_junit.py +146 -146
- data/vendor/c_exception/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +207 -207
- data/vendor/c_exception/vendor/unity/docs/UnityAssertionsReference.md +716 -716
- data/vendor/c_exception/vendor/unity/docs/UnityConfigurationGuide.md +398 -398
- data/vendor/c_exception/vendor/unity/docs/UnityGettingStartedGuide.md +191 -191
- data/vendor/c_exception/vendor/unity/docs/UnityHelperScriptsGuide.md +242 -242
- data/vendor/c_exception/vendor/unity/docs/license.txt +21 -21
- data/vendor/c_exception/vendor/unity/examples/example_1/makefile +71 -71
- data/vendor/c_exception/vendor/unity/examples/example_1/readme.txt +4 -4
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.c +24 -24
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.h +3 -3
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.c +11 -11
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.h +2 -2
- data/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode.c +62 -62
- data/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode2.c +31 -31
- data/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -53
- data/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -57
- data/vendor/c_exception/vendor/unity/examples/example_2/makefile +70 -70
- data/vendor/c_exception/vendor/unity/examples/example_2/readme.txt +4 -4
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.c +24 -24
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.h +3 -3
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.c +11 -11
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.h +2 -2
- data/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode.c +64 -64
- data/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode2.c +33 -33
- data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +8 -8
- data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +10 -10
- data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -12
- data/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.c +10 -10
- data/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.h +12 -12
- data/vendor/c_exception/vendor/unity/examples/example_3/rakefile.rb +43 -43
- data/vendor/c_exception/vendor/unity/examples/example_3/rakefile_helper.rb +249 -249
- data/vendor/c_exception/vendor/unity/examples/example_3/readme.txt +13 -13
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.c +24 -24
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.h +3 -3
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.c +11 -11
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.h +2 -2
- data/vendor/c_exception/vendor/unity/examples/example_3/target_gcc_32.yml +46 -46
- data/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode.c +62 -62
- data/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode2.c +31 -31
- data/vendor/c_exception/vendor/unity/examples/unity_config.h +237 -237
- data/vendor/c_exception/vendor/unity/extras/eclipse/error_parsers.txt +26 -26
- data/vendor/c_exception/vendor/unity/extras/fixture/rakefile.rb +48 -48
- data/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +178 -178
- data/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +8 -8
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +432 -432
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +83 -83
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +51 -51
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +47 -47
- data/vendor/c_exception/vendor/unity/extras/fixture/test/Makefile +74 -74
- data/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +22 -22
- data/vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c +39 -39
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +543 -543
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +57 -57
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +57 -57
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +17 -17
- data/vendor/c_exception/vendor/unity/release/build.info +2 -2
- data/vendor/c_exception/vendor/unity/release/version.info +2 -2
- data/vendor/c_exception/vendor/unity/src/unity.c +1517 -1517
- data/vendor/c_exception/vendor/unity/src/unity.h +339 -339
- data/vendor/c_exception/vendor/unity/src/unity_internals.h +784 -784
- data/vendor/c_exception/vendor/unity/test/Makefile +63 -63
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +61 -61
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +57 -57
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.c +55 -55
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.h +15 -15
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +80 -80
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +76 -76
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.c +75 -75
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.h +13 -13
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +89 -89
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +89 -89
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +77 -77
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +89 -89
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +89 -89
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +90 -90
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +67 -67
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +70 -70
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +58 -58
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +67 -67
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +70 -70
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +71 -71
- data/vendor/c_exception/vendor/unity/test/rakefile +125 -125
- data/vendor/c_exception/vendor/unity/test/rakefile_helper.rb +260 -260
- data/vendor/c_exception/vendor/unity/test/spec/generate_module_existing_file_spec.rb +158 -158
- data/vendor/c_exception/vendor/unity/test/targets/clang_file.yml +78 -78
- data/vendor/c_exception/vendor/unity/test/targets/clang_strict.yml +78 -78
- data/vendor/c_exception/vendor/unity/test/targets/gcc_32.yml +49 -49
- data/vendor/c_exception/vendor/unity/test/targets/gcc_64.yml +50 -50
- data/vendor/c_exception/vendor/unity/test/targets/gcc_auto_limits.yml +47 -47
- data/vendor/c_exception/vendor/unity/test/targets/gcc_auto_stdint.yml +59 -59
- data/vendor/c_exception/vendor/unity/test/targets/gcc_manual_math.yml +47 -47
- data/vendor/c_exception/vendor/unity/test/targets/hitech_picc18.yml +101 -101
- data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v4.yml +90 -90
- data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5.yml +80 -80
- data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5_3.yml +80 -80
- data/vendor/c_exception/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +94 -94
- data/vendor/c_exception/vendor/unity/test/targets/iar_cortexm3_v5.yml +84 -84
- data/vendor/c_exception/vendor/unity/test/targets/iar_msp430.yml +95 -95
- data/vendor/c_exception/vendor/unity/test/targets/iar_sh2a_v6.yml +86 -86
- data/vendor/c_exception/vendor/unity/test/testdata/CException.h +11 -11
- data/vendor/c_exception/vendor/unity/test/testdata/Defs.h +8 -8
- data/vendor/c_exception/vendor/unity/test/testdata/cmock.h +14 -14
- data/vendor/c_exception/vendor/unity/test/testdata/mockMock.h +13 -13
- data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGenerator.c +183 -183
- data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +67 -67
- data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +192 -192
- data/vendor/c_exception/vendor/unity/test/tests/test_generate_test_runner.rb +1252 -1252
- data/vendor/c_exception/vendor/unity/test/tests/testparameterized.c +110 -110
- data/vendor/c_exception/vendor/unity/test/tests/testunity.c +4993 -4993
- data/vendor/cmock/Gemfile +8 -9
- data/vendor/cmock/LICENSE.txt +18 -18
- data/vendor/cmock/README.md +34 -34
- data/vendor/cmock/config/production_environment.rb +12 -14
- data/vendor/cmock/config/test_environment.rb +16 -16
- data/vendor/cmock/docs/CMock_Summary.md +806 -696
- data/vendor/cmock/docs/ThrowTheSwitchCodingStandard.md +207 -207
- data/vendor/cmock/examples/make_example/Makefile +30 -30
- data/vendor/cmock/examples/make_example/src/foo.c +5 -5
- data/vendor/cmock/examples/make_example/src/foo.h +5 -5
- data/vendor/cmock/examples/make_example/src/main.c +15 -15
- data/vendor/cmock/examples/make_example/test/test_foo.c +17 -17
- data/vendor/cmock/examples/make_example/test/test_main.c +15 -15
- data/vendor/cmock/examples/temp_sensor/gcc.yml +44 -44
- data/vendor/cmock/examples/temp_sensor/iar_v4.yml +92 -92
- data/vendor/cmock/examples/temp_sensor/iar_v5.yml +81 -81
- data/vendor/cmock/examples/temp_sensor/rakefile.rb +42 -42
- data/vendor/cmock/examples/temp_sensor/rakefile_helper.rb +268 -272
- data/vendor/cmock/examples/temp_sensor/src/AT91SAM7X256.h +2556 -2556
- data/vendor/cmock/examples/temp_sensor/src/AdcConductor.c +42 -42
- data/vendor/cmock/examples/temp_sensor/src/AdcConductor.h +11 -11
- data/vendor/cmock/examples/temp_sensor/src/AdcHardware.c +27 -27
- data/vendor/cmock/examples/temp_sensor/src/AdcHardware.h +9 -9
- data/vendor/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.c +18 -18
- data/vendor/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.h +10 -10
- data/vendor/cmock/examples/temp_sensor/src/AdcModel.c +33 -33
- data/vendor/cmock/examples/temp_sensor/src/AdcModel.h +13 -13
- data/vendor/cmock/examples/temp_sensor/src/AdcTemperatureSensor.c +51 -51
- data/vendor/cmock/examples/temp_sensor/src/AdcTemperatureSensor.h +10 -10
- data/vendor/cmock/examples/temp_sensor/src/Executor.c +25 -25
- data/vendor/cmock/examples/temp_sensor/src/Executor.h +9 -9
- data/vendor/cmock/examples/temp_sensor/src/IntrinsicsWrapper.c +18 -18
- data/vendor/cmock/examples/temp_sensor/src/IntrinsicsWrapper.h +7 -7
- data/vendor/cmock/examples/temp_sensor/src/Main.c +46 -46
- data/vendor/cmock/examples/temp_sensor/src/Main.h +7 -7
- data/vendor/cmock/examples/temp_sensor/src/Model.c +10 -10
- data/vendor/cmock/examples/temp_sensor/src/Model.h +8 -8
- data/vendor/cmock/examples/temp_sensor/src/ModelConfig.h +7 -7
- data/vendor/cmock/examples/temp_sensor/src/TaskScheduler.c +72 -72
- data/vendor/cmock/examples/temp_sensor/src/TaskScheduler.h +11 -11
- data/vendor/cmock/examples/temp_sensor/src/TemperatureCalculator.c +27 -27
- data/vendor/cmock/examples/temp_sensor/src/TemperatureCalculator.h +6 -6
- data/vendor/cmock/examples/temp_sensor/src/TemperatureFilter.c +39 -39
- data/vendor/cmock/examples/temp_sensor/src/TemperatureFilter.h +10 -10
- data/vendor/cmock/examples/temp_sensor/src/TimerConductor.c +15 -15
- data/vendor/cmock/examples/temp_sensor/src/TimerConductor.h +9 -9
- data/vendor/cmock/examples/temp_sensor/src/TimerConfigurator.c +51 -51
- data/vendor/cmock/examples/temp_sensor/src/TimerConfigurator.h +15 -15
- data/vendor/cmock/examples/temp_sensor/src/TimerHardware.c +15 -15
- data/vendor/cmock/examples/temp_sensor/src/TimerHardware.h +8 -8
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptConfigurator.c +55 -55
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptConfigurator.h +13 -13
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptHandler.c +25 -25
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptHandler.h +10 -10
- data/vendor/cmock/examples/temp_sensor/src/TimerModel.c +9 -9
- data/vendor/cmock/examples/temp_sensor/src/TimerModel.h +8 -8
- data/vendor/cmock/examples/temp_sensor/src/Types.h +103 -103
- data/vendor/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c +18 -18
- data/vendor/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +6 -6
- data/vendor/cmock/examples/temp_sensor/src/UsartConductor.c +21 -21
- data/vendor/cmock/examples/temp_sensor/src/UsartConductor.h +7 -7
- data/vendor/cmock/examples/temp_sensor/src/UsartConfigurator.c +39 -39
- data/vendor/cmock/examples/temp_sensor/src/UsartConfigurator.h +13 -13
- data/vendor/cmock/examples/temp_sensor/src/UsartHardware.c +22 -22
- data/vendor/cmock/examples/temp_sensor/src/UsartHardware.h +9 -9
- data/vendor/cmock/examples/temp_sensor/src/UsartModel.c +34 -34
- data/vendor/cmock/examples/temp_sensor/src/UsartModel.h +10 -10
- data/vendor/cmock/examples/temp_sensor/src/UsartPutChar.c +16 -16
- data/vendor/cmock/examples/temp_sensor/src/UsartPutChar.h +8 -8
- data/vendor/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.c +7 -7
- data/vendor/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.h +8 -8
- data/vendor/cmock/examples/temp_sensor/test/TestAdcConductor.c +121 -121
- data/vendor/cmock/examples/temp_sensor/test/TestAdcHardware.c +44 -44
- data/vendor/cmock/examples/temp_sensor/test/TestAdcHardwareConfigurator.c +43 -43
- data/vendor/cmock/examples/temp_sensor/test/TestAdcModel.c +33 -33
- data/vendor/cmock/examples/temp_sensor/test/TestAdcTemperatureSensor.c +47 -47
- data/vendor/cmock/examples/temp_sensor/test/TestExecutor.c +36 -36
- data/vendor/cmock/examples/temp_sensor/test/TestMain.c +24 -24
- data/vendor/cmock/examples/temp_sensor/test/TestModel.c +20 -20
- data/vendor/cmock/examples/temp_sensor/test/TestTaskScheduler.c +104 -104
- data/vendor/cmock/examples/temp_sensor/test/TestTemperatureCalculator.c +33 -33
- data/vendor/cmock/examples/temp_sensor/test/TestTemperatureFilter.c +69 -69
- data/vendor/cmock/examples/temp_sensor/test/TestTimerConductor.c +32 -32
- data/vendor/cmock/examples/temp_sensor/test/TestTimerConfigurator.c +112 -112
- data/vendor/cmock/examples/temp_sensor/test/TestTimerHardware.c +26 -26
- data/vendor/cmock/examples/temp_sensor/test/TestTimerInterruptConfigurator.c +78 -78
- data/vendor/cmock/examples/temp_sensor/test/TestTimerInterruptHandler.c +66 -66
- data/vendor/cmock/examples/temp_sensor/test/TestTimerModel.c +18 -18
- data/vendor/cmock/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c +21 -21
- data/vendor/cmock/examples/temp_sensor/test/TestUsartConductor.c +40 -40
- data/vendor/cmock/examples/temp_sensor/test/TestUsartConfigurator.c +77 -77
- data/vendor/cmock/examples/temp_sensor/test/TestUsartHardware.c +37 -37
- data/vendor/cmock/examples/temp_sensor/test/TestUsartModel.c +40 -40
- data/vendor/cmock/examples/temp_sensor/test/TestUsartPutChar.c +43 -43
- data/vendor/cmock/examples/temp_sensor/test/TestUsartTransmitBufferStatus.c +22 -22
- data/vendor/cmock/lib/cmock.rb +104 -86
- data/vendor/cmock/lib/cmock_config.rb +173 -163
- data/vendor/cmock/lib/cmock_file_writer.rb +48 -44
- data/vendor/cmock/lib/cmock_generator.rb +333 -275
- data/vendor/cmock/lib/cmock_generator_plugin_array.rb +63 -63
- data/vendor/cmock/lib/cmock_generator_plugin_callback.rb +88 -88
- data/vendor/cmock/lib/cmock_generator_plugin_cexception.rb +49 -51
- data/vendor/cmock/lib/cmock_generator_plugin_expect.rb +100 -103
- data/vendor/cmock/lib/cmock_generator_plugin_expect_any_args.rb +50 -53
- data/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +88 -75
- data/vendor/cmock/lib/cmock_generator_plugin_ignore_arg.rb +42 -42
- data/vendor/cmock/lib/cmock_generator_plugin_return_thru_ptr.rb +79 -79
- data/vendor/cmock/lib/cmock_generator_utils.rb +247 -253
- data/vendor/cmock/lib/cmock_header_parser.rb +595 -474
- data/vendor/cmock/lib/cmock_plugin_manager.rb +50 -55
- data/vendor/cmock/lib/cmock_unityhelper_parser.rb +77 -75
- data/vendor/cmock/meson.build +53 -72
- data/vendor/cmock/scripts/create_makefile.rb +203 -202
- data/vendor/cmock/scripts/create_mock.rb +8 -8
- data/vendor/cmock/scripts/create_runner.rb +18 -20
- data/vendor/cmock/scripts/test_summary.rb +18 -19
- data/vendor/cmock/src/cmock.c +216 -216
- data/vendor/cmock/src/cmock.h +41 -40
- data/vendor/cmock/src/cmock_internals.h +91 -91
- data/vendor/cmock/src/meson.build +12 -17
- data/vendor/cmock/test/c/TestCMockC.c +333 -333
- data/vendor/cmock/test/c/TestCMockC.yml +14 -14
- data/vendor/cmock/test/c/TestCMockCDynamic.c +186 -186
- data/vendor/cmock/test/c/TestCMockCDynamic.yml +12 -12
- data/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +36 -36
- data/vendor/cmock/test/c/TestCMockC_Runner.c +41 -41
- data/vendor/cmock/test/iar/iar_v4/Resource/at91SAM7X256_FLASH.xcl +185 -185
- data/vendor/cmock/test/iar/iar_v4/Resource/at91SAM7X256_RAM.xcl +185 -185
- data/vendor/cmock/test/iar/iar_v4/Resource/ioat91sam7x256.ddf +2259 -2259
- data/vendor/cmock/test/iar/iar_v4/cmock_demo.dep +3691 -3691
- data/vendor/cmock/test/iar/iar_v4/cmock_demo.ewp +2581 -2581
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X-EK.h +61 -61
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256.inc +2314 -2314
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256.rdf +4704 -4704
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256.tcl +3407 -3407
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256_inc.h +2268 -2268
- data/vendor/cmock/test/iar/iar_v4/incIAR/ioat91sam7x256.h +4380 -4380
- data/vendor/cmock/test/iar/iar_v4/incIAR/lib_AT91SAM7X256.h +4211 -4211
- data/vendor/cmock/test/iar/iar_v4/settings/cmock_demo.cspy.bat +32 -32
- data/vendor/cmock/test/iar/iar_v4/srcIAR/Cstartup.s79 +265 -265
- data/vendor/cmock/test/iar/iar_v4/srcIAR/Cstartup_SAM7.c +98 -98
- data/vendor/cmock/test/iar/iar_v5/Resource/at91SAM7X256_FLASH.icf +43 -43
- data/vendor/cmock/test/iar/iar_v5/Resource/at91SAM7X256_RAM.icf +42 -42
- data/vendor/cmock/test/iar/iar_v5/cmock_demo.dep +4204 -4204
- data/vendor/cmock/test/iar/iar_v5/cmock_demo.ewp +2426 -2426
- data/vendor/cmock/test/iar/iar_v5/incIAR/AT91SAM7X-EK.h +61 -61
- data/vendor/cmock/test/iar/iar_v5/incIAR/AT91SAM7X256_inc.h +2268 -2268
- data/vendor/cmock/test/iar/iar_v5/incIAR/lib_AT91SAM7X256.h +4211 -4211
- data/vendor/cmock/test/iar/iar_v5/incIAR/project.h +30 -30
- data/vendor/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X.cspy.bat +33 -33
- data/vendor/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X_FLASH_Debug.jlink +12 -12
- data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo.cspy.bat +33 -33
- data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo_Binary.jlink +12 -12
- data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo_FLASH_Debug.jlink +12 -12
- data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo_RAM_Debug.jlink +12 -12
- data/vendor/cmock/test/iar/iar_v5/srcIAR/Cstartup.s +299 -299
- data/vendor/cmock/test/iar/iar_v5/srcIAR/Cstartup_SAM7.c +98 -98
- data/vendor/cmock/test/rakefile +147 -106
- data/vendor/cmock/test/rakefile_helper.rb +403 -382
- data/vendor/cmock/test/system/systest_generator.rb +205 -193
- data/vendor/cmock/test/system/test_compilation/callingconv.h +11 -11
- data/vendor/cmock/test/system/test_compilation/config.yml +10 -10
- data/vendor/cmock/test/system/test_compilation/const.h +37 -37
- data/vendor/cmock/test/system/test_compilation/inline.h +23 -23
- data/vendor/cmock/test/system/test_compilation/osek.h +275 -275
- data/vendor/cmock/test/system/test_compilation/parsing.h +89 -89
- data/vendor/cmock/test/system/test_interactions/all_plugins_but_other_limits.yml +375 -375
- data/vendor/cmock/test/system/test_interactions/all_plugins_coexist.yml +460 -460
- data/vendor/cmock/test/system/test_interactions/array_and_pointer_handling.yml +446 -446
- data/vendor/cmock/test/system/test_interactions/basic_expect_and_return.yml +124 -124
- data/vendor/cmock/test/system/test_interactions/const_primitives_handling.yml +87 -87
- data/vendor/cmock/test/system/test_interactions/doesnt_leave_details_behind.yml +308 -308
- data/vendor/cmock/test/system/test_interactions/enforce_strict_ordering.yml +247 -247
- data/vendor/cmock/test/system/test_interactions/expect_and_return_custom_types.yml +108 -108
- data/vendor/cmock/test/system/test_interactions/expect_and_return_treat_as.yml +173 -173
- data/vendor/cmock/test/system/test_interactions/expect_and_throw.yml +170 -170
- data/vendor/cmock/test/system/test_interactions/expect_any_args.yml +238 -238
- data/vendor/cmock/test/system/test_interactions/fancy_pointer_handling.yml +210 -210
- data/vendor/cmock/test/system/test_interactions/function_pointer_handling.yml +83 -82
- data/vendor/cmock/test/system/test_interactions/ignore_and_return.yml +329 -329
- data/vendor/cmock/test/system/test_interactions/ignore_strict_mock_calling.yml +37 -37
- data/vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml +52 -52
- data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_1.yml +91 -91
- data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_2.yml +59 -59
- data/vendor/cmock/test/system/test_interactions/out_of_memory.yml +65 -65
- data/vendor/cmock/test/system/test_interactions/parsing_challenges.yml +242 -242
- data/vendor/cmock/test/system/test_interactions/return_thru_ptr_and_expect_any_args.yml +235 -235
- data/vendor/cmock/test/system/test_interactions/return_thru_ptr_ignore_arg.yml +231 -231
- data/vendor/cmock/test/system/test_interactions/skeleton.yml +55 -0
- data/vendor/cmock/test/system/test_interactions/skeleton_update.yml +76 -0
- data/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return.yml +277 -277
- data/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return_with_plugins.yml +280 -280
- data/vendor/cmock/test/system/test_interactions/stubs_with_callbacks.yml +221 -221
- data/vendor/cmock/test/system/test_interactions/unity_64bit_support.yml +77 -77
- data/vendor/cmock/test/system/test_interactions/unity_ignores.yml +139 -139
- data/vendor/cmock/test/system/test_interactions/unity_void_pointer_compare.yml +91 -91
- data/vendor/cmock/test/targets/clang_strict.yml +90 -90
- data/vendor/cmock/test/targets/gcc.yml +58 -58
- data/vendor/cmock/test/targets/gcc_64.yml +58 -58
- data/vendor/cmock/test/targets/gcc_tiny.yml +80 -80
- data/vendor/cmock/test/targets/iar_arm_v4.yml +110 -110
- data/vendor/cmock/test/targets/iar_arm_v5.yml +95 -95
- data/vendor/cmock/test/test_helper.rb +44 -44
- data/vendor/cmock/test/unit/cmock_config_test.rb +126 -123
- data/vendor/cmock/test/unit/cmock_config_test.yml +7 -6
- data/vendor/cmock/test/unit/cmock_file_writer_test.rb +27 -27
- data/vendor/cmock/test/unit/cmock_generator_main_test.rb +686 -551
- data/vendor/cmock/test/unit/cmock_generator_plugin_array_test.rb +141 -141
- data/vendor/cmock/test/unit/cmock_generator_plugin_callback_test.rb +281 -281
- data/vendor/cmock/test/unit/cmock_generator_plugin_cexception_test.rb +96 -96
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_a_test.rb +185 -183
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_any_args_test.rb +67 -67
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_b_test.rb +201 -200
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_arg_test.rb +116 -116
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +119 -105
- data/vendor/cmock/test/unit/cmock_generator_plugin_return_thru_ptr_test.rb +136 -136
- data/vendor/cmock/test/unit/cmock_generator_utils_test.rb +398 -415
- data/vendor/cmock/test/unit/cmock_header_parser_test.rb +2717 -2000
- data/vendor/cmock/test/unit/cmock_plugin_manager_test.rb +100 -100
- data/vendor/cmock/test/unit/cmock_unityhelper_parser_test.rb +223 -223
- data/vendor/cmock/vendor/behaviors/Manifest.txt +9 -9
- data/vendor/cmock/vendor/behaviors/Rakefile +19 -19
- data/vendor/cmock/vendor/behaviors/lib/behaviors.rb +76 -76
- data/vendor/cmock/vendor/behaviors/lib/behaviors/reporttask.rb +158 -158
- data/vendor/cmock/vendor/behaviors/test/behaviors_tasks_test.rb +73 -73
- data/vendor/cmock/vendor/behaviors/test/behaviors_test.rb +50 -50
- data/vendor/cmock/vendor/behaviors/test/tasks_test/Rakefile +19 -19
- data/vendor/cmock/vendor/behaviors/test/tasks_test/lib/user.rb +2 -2
- data/vendor/cmock/vendor/behaviors/test/tasks_test/test/user_test.rb +17 -17
- data/vendor/cmock/vendor/c_exception/Gemfile +4 -4
- data/vendor/cmock/vendor/c_exception/Gemfile.lock +12 -12
- data/vendor/cmock/vendor/c_exception/README.md +249 -162
- data/vendor/cmock/vendor/c_exception/docs/CException.md +332 -292
- data/vendor/cmock/vendor/c_exception/docs/ThrowTheSwitchCodingStandard.md +207 -207
- data/vendor/cmock/vendor/c_exception/lib/CException.c +46 -46
- data/vendor/cmock/vendor/c_exception/lib/CException.h +115 -115
- data/vendor/cmock/vendor/c_exception/lib/meson.build +11 -0
- data/vendor/cmock/vendor/c_exception/meson.build +48 -0
- data/vendor/cmock/vendor/c_exception/project.yml +37 -0
- data/vendor/cmock/vendor/c_exception/test/TestException.c +391 -391
- data/vendor/{c_exception/test → cmock/vendor/c_exception/test/support}/CExceptionConfig.h +46 -46
- data/vendor/cmock/vendor/c_exception/vendor/unity/README.md +220 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +118 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +39 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_config.yml +36 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_module.rb +308 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +437 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/parse_output.rb +220 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/stylize_as_junit.rb +252 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +25 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/type_sanitizer.rb +6 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_test_summary.py +139 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +136 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_to_junit.py +146 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +207 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityAssertionsReference.md +716 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityConfigurationGuide.md +398 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityGettingStartedGuide.md +191 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityHelperScriptsGuide.md +242 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/license.txt +21 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/makefile +71 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/readme.txt +5 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.c +24 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.h +3 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.c +11 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.h +2 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode.c +62 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode2.c +31 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/makefile +70 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/readme.txt +5 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.c +24 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.h +3 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.c +11 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.h +2 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode.c +64 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode2.c +33 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +9 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +11 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.c +10 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.h +12 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/rakefile.rb +43 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/rakefile_helper.rb +249 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/readme.txt +13 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.c +24 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.h +3 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.c +11 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.h +2 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/target_gcc_32.yml +46 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode.c +62 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode2.c +31 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/unity_config.h +237 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/eclipse/error_parsers.txt +26 -0
- data/vendor/cmock/vendor/{unity → c_exception/vendor/unity}/extras/fixture/rakefile.rb +48 -44
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +178 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +9 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +432 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +83 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +51 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +47 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/Makefile +74 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +22 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c +39 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +543 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +57 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +57 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +17 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/release/build.info +2 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/release/version.info +2 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.c +1517 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.h +339 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity_internals.h +784 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/Makefile +63 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +61 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +57 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.c +55 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.h +15 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +80 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +76 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.c +75 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.h +13 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +89 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +89 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +77 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +89 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +89 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +90 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +67 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +70 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +58 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +67 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +70 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +71 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile +125 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile_helper.rb +260 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/spec/generate_module_existing_file_spec.rb +158 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/clang_file.yml +78 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/clang_strict.yml +78 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_32.yml +49 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_64.yml +50 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_auto_limits.yml +47 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_auto_stdint.yml +59 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_manual_math.yml +47 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/hitech_picc18.yml +101 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v4.yml +90 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5.yml +80 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5_3.yml +80 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +94 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_cortexm3_v5.yml +84 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_msp430.yml +95 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_sh2a_v6.yml +86 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/CException.h +11 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/Defs.h +8 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/cmock.h +14 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/mockMock.h +13 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGenerator.c +183 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +67 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +192 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/tests/test_generate_test_runner.rb +1252 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/tests/testparameterized.c +110 -0
- data/vendor/cmock/vendor/{unity → c_exception/vendor/unity}/test/tests/testunity.c +4993 -8168
- data/vendor/cmock/vendor/unity/CMakeLists.txt +133 -31
- data/vendor/cmock/vendor/unity/LICENSE.txt +21 -21
- data/vendor/cmock/vendor/unity/README.md +191 -191
- data/vendor/cmock/vendor/unity/auto/colour_prompt.rb +119 -119
- data/vendor/cmock/vendor/unity/auto/colour_reporter.rb +39 -39
- data/vendor/cmock/vendor/unity/auto/generate_config.yml +36 -36
- data/vendor/cmock/vendor/unity/auto/generate_module.rb +312 -309
- data/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +511 -495
- data/vendor/cmock/vendor/unity/auto/parse_output.rb +322 -322
- data/vendor/cmock/vendor/unity/auto/run_test.erb +37 -36
- data/vendor/cmock/vendor/unity/auto/stylize_as_junit.rb +251 -251
- data/vendor/cmock/vendor/unity/auto/test_file_filter.rb +25 -25
- data/vendor/cmock/vendor/unity/auto/type_sanitizer.rb +6 -6
- data/vendor/cmock/vendor/unity/auto/unity_test_summary.py +139 -139
- data/vendor/cmock/vendor/unity/auto/unity_test_summary.rb +135 -135
- data/vendor/cmock/vendor/unity/auto/unity_to_junit.py +146 -146
- data/vendor/cmock/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +206 -206
- data/vendor/cmock/vendor/unity/docs/UnityAssertionsReference.md +831 -850
- data/vendor/cmock/vendor/unity/docs/UnityConfigurationGuide.md +563 -541
- data/vendor/cmock/vendor/unity/docs/UnityGettingStartedGuide.md +251 -251
- data/vendor/cmock/vendor/unity/docs/UnityHelperScriptsGuide.md +278 -266
- data/vendor/cmock/vendor/unity/examples/example_1/makefile +72 -72
- data/vendor/cmock/vendor/unity/examples/example_1/readme.txt +4 -4
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.c +24 -24
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.h +3 -3
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.c +11 -11
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.h +2 -2
- data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode.c +62 -62
- data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode2.c +31 -31
- data/vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -53
- data/vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -57
- data/vendor/cmock/vendor/unity/examples/example_2/makefile +71 -71
- data/vendor/cmock/vendor/unity/examples/example_2/readme.txt +4 -4
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.c +24 -24
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.h +3 -3
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.c +11 -11
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.h +2 -2
- data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode.c +64 -64
- data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode2.c +33 -33
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +8 -8
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +10 -10
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -12
- data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.c +10 -10
- data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.h +12 -12
- data/vendor/cmock/vendor/unity/examples/example_3/rakefile.rb +38 -38
- data/vendor/cmock/vendor/unity/examples/example_3/rakefile_helper.rb +250 -250
- data/vendor/cmock/vendor/unity/examples/example_3/readme.txt +13 -13
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.c +24 -24
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.h +3 -3
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.c +11 -11
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.h +2 -2
- data/vendor/cmock/vendor/unity/examples/example_3/target_gcc_32.yml +47 -47
- data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode.c +62 -62
- data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode2.c +31 -31
- data/vendor/cmock/vendor/unity/examples/example_4/meson.build +12 -17
- data/vendor/cmock/vendor/unity/examples/example_4/readme.txt +14 -14
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode.c +24 -24
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode.h +3 -3
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode2.c +11 -11
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode2.h +2 -2
- data/vendor/cmock/vendor/unity/examples/example_4/src/meson.build +16 -21
- data/vendor/cmock/vendor/unity/examples/example_4/subprojects/unity.wrap +4 -4
- data/vendor/cmock/vendor/unity/examples/example_4/test/TestProductionCode.c +63 -63
- data/vendor/cmock/vendor/unity/examples/example_4/test/TestProductionCode2.c +35 -35
- data/vendor/cmock/vendor/unity/examples/example_4/test/meson.build +7 -12
- data/vendor/cmock/vendor/unity/examples/example_4/test/test_runners/TestProductionCode2_Runner.c +53 -53
- data/vendor/cmock/vendor/unity/examples/example_4/test/test_runners/TestProductionCode_Runner.c +57 -57
- data/vendor/cmock/vendor/unity/examples/example_4/test/test_runners/meson.build +13 -16
- data/vendor/cmock/vendor/unity/examples/unity_config.h +244 -263
- data/vendor/cmock/vendor/unity/extras/eclipse/error_parsers.txt +26 -26
- data/vendor/cmock/vendor/unity/extras/fixture/readme.md +29 -17
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +310 -275
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.h +83 -83
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +50 -50
- data/vendor/cmock/vendor/unity/extras/fixture/test/Makefile +72 -72
- data/vendor/cmock/vendor/unity/extras/fixture/test/main/AllTests.c +20 -20
- data/vendor/cmock/vendor/unity/extras/fixture/test/template_fixture_tests.c +39 -39
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +245 -245
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +32 -32
- data/vendor/cmock/vendor/unity/extras/memory/readme.md +49 -49
- data/vendor/cmock/vendor/unity/extras/memory/src/unity_memory.c +202 -202
- data/vendor/cmock/vendor/unity/extras/memory/src/unity_memory.h +60 -60
- data/vendor/cmock/vendor/unity/extras/memory/test/Makefile +78 -78
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_memory_Test.c +325 -325
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_memory_TestRunner.c +49 -49
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_output_Spy.c +56 -56
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_output_Spy.h +16 -16
- data/vendor/cmock/vendor/unity/meson.build +48 -69
- data/vendor/cmock/vendor/unity/src/meson.build +11 -16
- data/vendor/cmock/vendor/unity/src/unity.c +2109 -2085
- data/vendor/cmock/vendor/unity/src/unity.h +661 -617
- data/vendor/cmock/vendor/unity/src/unity_internals.h +1030 -1002
- data/vendor/cmock/vendor/unity/test/Makefile +159 -67
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_cmd.c +61 -61
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_def.c +57 -57
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_head1.c +55 -55
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_head1.h +15 -15
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_cmd.c +80 -80
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_def.c +76 -76
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_head1.c +75 -75
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_head1.h +13 -13
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new1.c +89 -89
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new2.c +89 -89
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_param.c +77 -77
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run1.c +89 -89
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run2.c +89 -89
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_yaml.c +90 -90
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_new1.c +67 -67
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_new2.c +70 -70
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_param.c +58 -58
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_run1.c +67 -67
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_run2.c +70 -70
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_yaml.c +71 -71
- data/vendor/cmock/vendor/unity/test/rakefile +163 -124
- data/vendor/cmock/vendor/unity/test/rakefile_helper.rb +315 -269
- data/vendor/cmock/vendor/unity/test/spec/generate_module_existing_file_spec.rb +158 -158
- data/vendor/cmock/vendor/unity/test/targets/ansi.yml +44 -49
- data/vendor/cmock/vendor/unity/test/targets/clang_file.yml +72 -78
- data/vendor/cmock/vendor/unity/test/targets/clang_strict.yml +71 -78
- data/vendor/cmock/vendor/unity/test/targets/gcc_32.yml +45 -49
- data/vendor/cmock/vendor/unity/test/targets/gcc_64.yml +46 -50
- data/vendor/cmock/vendor/unity/test/targets/gcc_auto_limits.yml +43 -47
- data/vendor/cmock/vendor/unity/test/targets/gcc_auto_stdint.yml +55 -59
- data/vendor/cmock/vendor/unity/test/targets/gcc_manual_math.yml +43 -47
- data/vendor/cmock/vendor/unity/test/targets/hitech_picc18.yml +91 -101
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v4.yml +98 -90
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5.yml +92 -80
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5_3.yml +92 -80
- data/vendor/cmock/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +90 -94
- data/vendor/cmock/vendor/unity/test/targets/iar_cortexm3_v5.yml +94 -84
- data/vendor/cmock/vendor/unity/test/targets/iar_msp430.yml +112 -95
- data/vendor/cmock/vendor/unity/test/targets/iar_sh2a_v6.yml +99 -86
- data/vendor/cmock/vendor/unity/test/testdata/CException.h +11 -11
- data/vendor/cmock/vendor/unity/test/testdata/Defs.h +8 -8
- data/vendor/cmock/vendor/unity/test/testdata/cmock.h +14 -14
- data/vendor/cmock/vendor/unity/test/testdata/mockMock.h +13 -13
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGenerator.c +189 -189
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +70 -70
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +197 -197
- data/vendor/cmock/vendor/unity/test/tests/self_assessment_utils.h +144 -0
- data/vendor/cmock/vendor/unity/test/tests/test_generate_test_runner.rb +1260 -1268
- data/vendor/cmock/vendor/unity/test/tests/test_unity_arrays.c +2874 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_core.c +371 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_doubles.c +773 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_floats.c +884 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_integers.c +2847 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_integers_64.c +773 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_memory.c +81 -0
- data/vendor/{unity/test/tests/testparameterized.c → cmock/vendor/unity/test/tests/test_unity_parameterized.c} +171 -171
- data/vendor/cmock/vendor/unity/test/tests/test_unity_strings.c +329 -0
- data/vendor/cmock/vendor/unity/unityConfig.cmake +1 -0
- data/vendor/deep_merge/MIT-LICENSE +20 -20
- data/vendor/deep_merge/README +94 -94
- data/vendor/deep_merge/Rakefile +28 -28
- data/vendor/deep_merge/lib/deep_merge.rb +211 -211
- data/vendor/deep_merge/test/test_deep_merge.rb +553 -553
- data/vendor/diy/History.txt +28 -28
- data/vendor/diy/README.rdoc +233 -233
- data/vendor/diy/Rakefile +33 -33
- data/vendor/diy/TODO.txt +9 -9
- data/vendor/diy/diy.gemspec +131 -131
- data/vendor/diy/lib/diy.rb +403 -403
- data/vendor/diy/lib/diy/factory.rb +36 -36
- data/vendor/diy/sample_code/car.rb +7 -7
- data/vendor/diy/sample_code/chassis.rb +5 -5
- data/vendor/diy/sample_code/diy_example.rb +26 -26
- data/vendor/diy/sample_code/engine.rb +5 -5
- data/vendor/diy/sample_code/objects.yml +10 -10
- data/vendor/diy/test/constructor.rb +119 -119
- data/vendor/diy/test/diy_test.rb +608 -608
- data/vendor/diy/test/factory_test.rb +79 -79
- data/vendor/diy/test/files/broken_construction.yml +7 -7
- data/vendor/diy/test/files/cat/cat.rb +3 -3
- data/vendor/diy/test/files/cat/extra_conflict.yml +5 -5
- data/vendor/diy/test/files/cat/heritage.rb +2 -2
- data/vendor/diy/test/files/cat/needs_input.yml +3 -3
- data/vendor/diy/test/files/cat/the_cat_lineage.rb +1 -1
- data/vendor/diy/test/files/dog/dog_model.rb +3 -3
- data/vendor/diy/test/files/dog/dog_presenter.rb +3 -3
- data/vendor/diy/test/files/dog/dog_view.rb +2 -2
- data/vendor/diy/test/files/dog/file_resolver.rb +2 -2
- data/vendor/diy/test/files/dog/other_thing.rb +2 -2
- data/vendor/diy/test/files/dog/simple.yml +11 -11
- data/vendor/diy/test/files/donkey/foo.rb +8 -8
- data/vendor/diy/test/files/donkey/foo/bar/qux.rb +7 -7
- data/vendor/diy/test/files/factory/beef.rb +5 -5
- data/vendor/diy/test/files/factory/dog.rb +6 -6
- data/vendor/diy/test/files/factory/factory.yml +19 -19
- data/vendor/diy/test/files/factory/farm/llama.rb +7 -7
- data/vendor/diy/test/files/factory/farm/pork.rb +7 -7
- data/vendor/diy/test/files/factory/kitten.rb +13 -13
- data/vendor/diy/test/files/fud/objects.yml +13 -13
- data/vendor/diy/test/files/fud/toy.rb +14 -14
- data/vendor/diy/test/files/functions/attached_things_builder.rb +1 -1
- data/vendor/diy/test/files/functions/invalid_method.yml +4 -4
- data/vendor/diy/test/files/functions/method_extractor.rb +2 -2
- data/vendor/diy/test/files/functions/nonsingleton_objects.yml +5 -5
- data/vendor/diy/test/files/functions/objects.yml +21 -21
- data/vendor/diy/test/files/functions/thing.rb +2 -2
- data/vendor/diy/test/files/functions/thing_builder.rb +24 -24
- data/vendor/diy/test/files/functions/things_builder.rb +2 -2
- data/vendor/diy/test/files/gnu/objects.yml +14 -14
- data/vendor/diy/test/files/gnu/thinger.rb +7 -7
- data/vendor/diy/test/files/goat/base.rb +8 -8
- data/vendor/diy/test/files/goat/can.rb +6 -6
- data/vendor/diy/test/files/goat/goat.rb +6 -6
- data/vendor/diy/test/files/goat/objects.yml +12 -12
- data/vendor/diy/test/files/goat/paper.rb +6 -6
- data/vendor/diy/test/files/goat/plane.rb +7 -7
- data/vendor/diy/test/files/goat/shirt.rb +6 -6
- data/vendor/diy/test/files/goat/wings.rb +8 -8
- data/vendor/diy/test/files/horse/holder_thing.rb +3 -3
- data/vendor/diy/test/files/horse/objects.yml +7 -7
- data/vendor/diy/test/files/namespace/animal/bird.rb +5 -5
- data/vendor/diy/test/files/namespace/animal/cat.rb +5 -5
- data/vendor/diy/test/files/namespace/animal/reptile/hardshell/turtle.rb +8 -8
- data/vendor/diy/test/files/namespace/animal/reptile/lizard.rb +7 -7
- data/vendor/diy/test/files/namespace/bad_module_specified.yml +8 -8
- data/vendor/diy/test/files/namespace/class_name_combine.yml +8 -8
- data/vendor/diy/test/files/namespace/no_module_specified.yml +8 -8
- data/vendor/diy/test/files/namespace/objects.yml +21 -21
- data/vendor/diy/test/files/namespace/road.rb +2 -2
- data/vendor/diy/test/files/namespace/sky.rb +2 -2
- data/vendor/diy/test/files/namespace/subcontext.yml +22 -22
- data/vendor/diy/test/files/non_singleton/air.rb +2 -2
- data/vendor/diy/test/files/non_singleton/fat_cat.rb +3 -3
- data/vendor/diy/test/files/non_singleton/objects.yml +19 -19
- data/vendor/diy/test/files/non_singleton/pig.rb +3 -3
- data/vendor/diy/test/files/non_singleton/thread_spinner.rb +3 -3
- data/vendor/diy/test/files/non_singleton/tick.rb +3 -3
- data/vendor/diy/test/files/non_singleton/yard.rb +2 -2
- data/vendor/diy/test/files/yak/core_model.rb +3 -3
- data/vendor/diy/test/files/yak/core_presenter.rb +3 -3
- data/vendor/diy/test/files/yak/core_view.rb +1 -1
- data/vendor/diy/test/files/yak/data_source.rb +1 -1
- data/vendor/diy/test/files/yak/fringe_model.rb +3 -3
- data/vendor/diy/test/files/yak/fringe_presenter.rb +3 -3
- data/vendor/diy/test/files/yak/fringe_view.rb +1 -1
- data/vendor/diy/test/files/yak/giant_squid.rb +3 -3
- data/vendor/diy/test/files/yak/krill.rb +2 -2
- data/vendor/diy/test/files/yak/my_objects.yml +21 -21
- data/vendor/diy/test/files/yak/sub_sub_context_test.yml +27 -27
- data/vendor/diy/test/test_helper.rb +55 -55
- data/vendor/hardmock/CHANGES +78 -78
- data/vendor/hardmock/LICENSE +7 -7
- data/vendor/hardmock/README +70 -70
- data/vendor/hardmock/Rakefile +8 -8
- data/vendor/hardmock/config/environment.rb +12 -12
- data/vendor/hardmock/lib/assert_error.rb +23 -23
- data/vendor/hardmock/lib/extend_test_unit.rb +14 -14
- data/vendor/hardmock/lib/hardmock.rb +86 -86
- data/vendor/hardmock/lib/hardmock/errors.rb +22 -22
- data/vendor/hardmock/lib/hardmock/expectation.rb +229 -229
- data/vendor/hardmock/lib/hardmock/expectation_builder.rb +9 -9
- data/vendor/hardmock/lib/hardmock/expector.rb +26 -26
- data/vendor/hardmock/lib/hardmock/method_cleanout.rb +33 -33
- data/vendor/hardmock/lib/hardmock/mock.rb +180 -180
- data/vendor/hardmock/lib/hardmock/mock_control.rb +53 -53
- data/vendor/hardmock/lib/hardmock/stubbing.rb +210 -210
- data/vendor/hardmock/lib/hardmock/trapper.rb +31 -31
- data/vendor/hardmock/lib/hardmock/utils.rb +9 -9
- data/vendor/hardmock/lib/test_unit_before_after.rb +169 -169
- data/vendor/hardmock/rake_tasks/rdoc.rake +19 -19
- data/vendor/hardmock/rake_tasks/rdoc_options.rb +4 -4
- data/vendor/hardmock/rake_tasks/test.rake +22 -22
- data/vendor/hardmock/test/functional/assert_error_test.rb +52 -52
- data/vendor/hardmock/test/functional/auto_verify_test.rb +178 -178
- data/vendor/hardmock/test/functional/direct_mock_usage_test.rb +396 -396
- data/vendor/hardmock/test/functional/hardmock_test.rb +434 -434
- data/vendor/hardmock/test/functional/stubbing_test.rb +479 -479
- data/vendor/hardmock/test/test_helper.rb +43 -43
- data/vendor/hardmock/test/unit/expectation_builder_test.rb +19 -19
- data/vendor/hardmock/test/unit/expectation_test.rb +372 -372
- data/vendor/hardmock/test/unit/expector_test.rb +57 -57
- data/vendor/hardmock/test/unit/method_cleanout_test.rb +36 -36
- data/vendor/hardmock/test/unit/mock_control_test.rb +175 -175
- data/vendor/hardmock/test/unit/mock_test.rb +279 -279
- data/vendor/hardmock/test/unit/test_unit_before_after_test.rb +452 -452
- data/vendor/hardmock/test/unit/trapper_test.rb +62 -62
- data/vendor/hardmock/test/unit/verify_error_test.rb +40 -40
- data/vendor/unity/CMakeLists.txt +133 -31
- data/vendor/unity/LICENSE.txt +21 -21
- data/vendor/unity/README.md +191 -191
- data/vendor/unity/auto/colour_prompt.rb +119 -119
- data/vendor/unity/auto/colour_reporter.rb +39 -39
- data/vendor/unity/auto/generate_config.yml +36 -36
- data/vendor/unity/auto/generate_module.rb +312 -309
- data/vendor/unity/auto/generate_test_runner.rb +511 -495
- data/vendor/unity/auto/parse_output.rb +322 -322
- data/vendor/unity/auto/run_test.erb +37 -36
- data/vendor/unity/auto/stylize_as_junit.rb +251 -251
- data/vendor/unity/auto/test_file_filter.rb +25 -25
- data/vendor/unity/auto/type_sanitizer.rb +6 -6
- data/vendor/unity/auto/unity_test_summary.py +139 -139
- data/vendor/unity/auto/unity_test_summary.rb +135 -135
- data/vendor/unity/auto/unity_to_junit.py +146 -146
- data/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +206 -206
- data/vendor/unity/docs/UnityAssertionsReference.md +831 -850
- data/vendor/unity/docs/UnityConfigurationGuide.md +563 -541
- data/vendor/unity/docs/UnityGettingStartedGuide.md +251 -251
- data/vendor/unity/docs/UnityHelperScriptsGuide.md +278 -266
- data/vendor/unity/examples/example_1/makefile +72 -72
- data/vendor/unity/examples/example_1/readme.txt +4 -4
- data/vendor/unity/examples/example_1/src/ProductionCode.c +24 -24
- data/vendor/unity/examples/example_1/src/ProductionCode.h +3 -3
- data/vendor/unity/examples/example_1/src/ProductionCode2.c +11 -11
- data/vendor/unity/examples/example_1/src/ProductionCode2.h +2 -2
- data/vendor/unity/examples/example_1/test/TestProductionCode.c +62 -62
- data/vendor/unity/examples/example_1/test/TestProductionCode2.c +31 -31
- data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -53
- data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -57
- data/vendor/unity/examples/example_2/makefile +71 -71
- data/vendor/unity/examples/example_2/readme.txt +4 -4
- data/vendor/unity/examples/example_2/src/ProductionCode.c +24 -24
- data/vendor/unity/examples/example_2/src/ProductionCode.h +3 -3
- data/vendor/unity/examples/example_2/src/ProductionCode2.c +11 -11
- data/vendor/unity/examples/example_2/src/ProductionCode2.h +2 -2
- data/vendor/unity/examples/example_2/test/TestProductionCode.c +64 -64
- data/vendor/unity/examples/example_2/test/TestProductionCode2.c +33 -33
- data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +8 -8
- data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +10 -10
- data/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -12
- data/vendor/unity/examples/example_3/helper/UnityHelper.c +10 -10
- data/vendor/unity/examples/example_3/helper/UnityHelper.h +12 -12
- data/vendor/unity/examples/example_3/rakefile.rb +38 -38
- data/vendor/unity/examples/example_3/rakefile_helper.rb +250 -250
- data/vendor/unity/examples/example_3/readme.txt +13 -13
- data/vendor/unity/examples/example_3/src/ProductionCode.c +24 -24
- data/vendor/unity/examples/example_3/src/ProductionCode.h +3 -3
- data/vendor/unity/examples/example_3/src/ProductionCode2.c +11 -11
- data/vendor/unity/examples/example_3/src/ProductionCode2.h +2 -2
- data/vendor/unity/examples/example_3/target_gcc_32.yml +47 -47
- data/vendor/unity/examples/example_3/test/TestProductionCode.c +62 -62
- data/vendor/unity/examples/example_3/test/TestProductionCode2.c +31 -31
- data/vendor/unity/examples/example_4/meson.build +12 -17
- data/vendor/unity/examples/example_4/readme.txt +14 -14
- data/vendor/unity/examples/example_4/src/ProductionCode.c +24 -24
- data/vendor/unity/examples/example_4/src/ProductionCode.h +3 -3
- data/vendor/unity/examples/example_4/src/ProductionCode2.c +11 -11
- data/vendor/unity/examples/example_4/src/ProductionCode2.h +2 -2
- data/vendor/unity/examples/example_4/src/meson.build +16 -21
- data/vendor/unity/examples/example_4/subprojects/unity.wrap +4 -4
- data/vendor/unity/examples/example_4/test/TestProductionCode.c +63 -63
- data/vendor/unity/examples/example_4/test/TestProductionCode2.c +35 -35
- data/vendor/unity/examples/example_4/test/meson.build +7 -12
- data/vendor/unity/examples/example_4/test/test_runners/TestProductionCode2_Runner.c +53 -53
- data/vendor/unity/examples/example_4/test/test_runners/TestProductionCode_Runner.c +57 -57
- data/vendor/unity/examples/example_4/test/test_runners/meson.build +13 -16
- data/vendor/unity/examples/unity_config.h +244 -263
- data/vendor/unity/extras/eclipse/error_parsers.txt +26 -26
- data/vendor/unity/extras/fixture/readme.md +29 -17
- data/vendor/unity/extras/fixture/src/unity_fixture.c +310 -275
- data/vendor/unity/extras/fixture/src/unity_fixture.h +83 -83
- data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +50 -50
- data/vendor/unity/extras/fixture/test/Makefile +72 -72
- data/vendor/unity/extras/fixture/test/main/AllTests.c +20 -20
- data/vendor/unity/extras/fixture/test/template_fixture_tests.c +39 -39
- data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +245 -245
- data/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +32 -32
- data/vendor/unity/extras/memory/readme.md +49 -49
- data/vendor/unity/extras/memory/src/unity_memory.c +202 -202
- data/vendor/unity/extras/memory/src/unity_memory.h +60 -60
- data/vendor/unity/extras/memory/test/Makefile +78 -78
- data/vendor/unity/extras/memory/test/unity_memory_Test.c +325 -325
- data/vendor/unity/extras/memory/test/unity_memory_TestRunner.c +49 -49
- data/vendor/unity/extras/memory/test/unity_output_Spy.c +56 -56
- data/vendor/unity/extras/memory/test/unity_output_Spy.h +16 -16
- data/vendor/unity/meson.build +48 -69
- data/vendor/unity/src/meson.build +11 -16
- data/vendor/unity/src/unity.c +2109 -2085
- data/vendor/unity/src/unity.h +661 -617
- data/vendor/unity/src/unity_internals.h +1030 -1002
- data/vendor/unity/test/Makefile +159 -67
- data/vendor/unity/test/expectdata/testsample_cmd.c +61 -61
- data/vendor/unity/test/expectdata/testsample_def.c +57 -57
- data/vendor/unity/test/expectdata/testsample_head1.c +55 -55
- data/vendor/unity/test/expectdata/testsample_head1.h +15 -15
- data/vendor/unity/test/expectdata/testsample_mock_cmd.c +80 -80
- data/vendor/unity/test/expectdata/testsample_mock_def.c +76 -76
- data/vendor/unity/test/expectdata/testsample_mock_head1.c +75 -75
- data/vendor/unity/test/expectdata/testsample_mock_head1.h +13 -13
- data/vendor/unity/test/expectdata/testsample_mock_new1.c +89 -89
- data/vendor/unity/test/expectdata/testsample_mock_new2.c +89 -89
- data/vendor/unity/test/expectdata/testsample_mock_param.c +77 -77
- data/vendor/unity/test/expectdata/testsample_mock_run1.c +89 -89
- data/vendor/unity/test/expectdata/testsample_mock_run2.c +89 -89
- data/vendor/unity/test/expectdata/testsample_mock_yaml.c +90 -90
- data/vendor/unity/test/expectdata/testsample_new1.c +67 -67
- data/vendor/unity/test/expectdata/testsample_new2.c +70 -70
- data/vendor/unity/test/expectdata/testsample_param.c +58 -58
- data/vendor/unity/test/expectdata/testsample_run1.c +67 -67
- data/vendor/unity/test/expectdata/testsample_run2.c +70 -70
- data/vendor/unity/test/expectdata/testsample_yaml.c +71 -71
- data/vendor/unity/test/rakefile +163 -124
- data/vendor/unity/test/rakefile_helper.rb +315 -269
- data/vendor/unity/test/spec/generate_module_existing_file_spec.rb +158 -158
- data/vendor/unity/test/targets/ansi.yml +44 -49
- data/vendor/unity/test/targets/clang_file.yml +72 -78
- data/vendor/unity/test/targets/clang_strict.yml +71 -78
- data/vendor/unity/test/targets/gcc_32.yml +45 -49
- data/vendor/unity/test/targets/gcc_64.yml +46 -50
- data/vendor/unity/test/targets/gcc_auto_limits.yml +43 -47
- data/vendor/unity/test/targets/gcc_auto_stdint.yml +55 -59
- data/vendor/unity/test/targets/gcc_manual_math.yml +43 -47
- data/vendor/unity/test/targets/hitech_picc18.yml +91 -101
- data/vendor/unity/test/targets/iar_arm_v4.yml +98 -90
- data/vendor/unity/test/targets/iar_arm_v5.yml +92 -80
- data/vendor/unity/test/targets/iar_arm_v5_3.yml +92 -80
- data/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +90 -94
- data/vendor/unity/test/targets/iar_cortexm3_v5.yml +94 -84
- data/vendor/unity/test/targets/iar_msp430.yml +112 -95
- data/vendor/unity/test/targets/iar_sh2a_v6.yml +99 -86
- data/vendor/unity/test/testdata/CException.h +11 -11
- data/vendor/unity/test/testdata/Defs.h +8 -8
- data/vendor/unity/test/testdata/cmock.h +14 -14
- data/vendor/unity/test/testdata/mockMock.h +13 -13
- data/vendor/unity/test/testdata/testRunnerGenerator.c +189 -189
- data/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +70 -70
- data/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +197 -197
- data/vendor/unity/test/tests/self_assessment_utils.h +144 -0
- data/vendor/unity/test/tests/test_generate_test_runner.rb +1260 -1268
- data/vendor/unity/test/tests/test_unity_arrays.c +2874 -0
- data/vendor/unity/test/tests/test_unity_core.c +371 -0
- data/vendor/unity/test/tests/test_unity_doubles.c +773 -0
- data/vendor/unity/test/tests/test_unity_floats.c +884 -0
- data/vendor/unity/test/tests/test_unity_integers.c +2847 -0
- data/vendor/unity/test/tests/test_unity_integers_64.c +773 -0
- data/vendor/unity/test/tests/test_unity_memory.c +81 -0
- data/vendor/{cmock/vendor/unity/test/tests/testparameterized.c → unity/test/tests/test_unity_parameterized.c} +171 -171
- data/vendor/unity/test/tests/test_unity_strings.c +329 -0
- data/vendor/unity/unityConfig.cmake +1 -0
- metadata +225 -62
- data/ceedling.sublime-project +0 -28
- data/ceedling.sublime-workspace +0 -1276
- data/docs/CeedlingPacket.odt +0 -0
- data/docs/CeedlingPacket.pdf +0 -0
- data/plugins/bullseye/readme.txt +0 -0
- data/vendor/c_exception/LICENSE.txt +0 -30
- data/vendor/c_exception/Rakefile +0 -42
- data/vendor/c_exception/makefile +0 -24
- data/vendor/c_exception/test/TestException_Runner.c +0 -67
- data/vendor/cmock/vendor/c_exception/LICENSE.txt +0 -30
- data/vendor/cmock/vendor/c_exception/Rakefile +0 -42
- data/vendor/cmock/vendor/c_exception/makefile +0 -24
- data/vendor/cmock/vendor/c_exception/test/TestException_Runner.c +0 -67
- data/vendor/cmock/vendor/unity/extras/fixture/rakefile_helper.rb +0 -183
- data/vendor/cmock/vendor/unity/extras/memory/rakefile.rb +0 -45
- data/vendor/cmock/vendor/unity/extras/memory/rakefile_helper.rb +0 -187
- data/vendor/cmock/vendor/unity/src/CMakeLists.txt +0 -22
- data/vendor/unity/extras/fixture/rakefile.rb +0 -44
- data/vendor/unity/extras/fixture/rakefile_helper.rb +0 -183
- data/vendor/unity/extras/memory/rakefile.rb +0 -45
- data/vendor/unity/extras/memory/rakefile_helper.rb +0 -187
- data/vendor/unity/src/CMakeLists.txt +0 -22
- data/vendor/unity/test/tests/testunity.c +0 -8168
@@ -1,1002 +1,1030 @@
|
|
1
|
-
/* ==========================================
|
2
|
-
Unity Project - A Test Framework for C
|
3
|
-
Copyright (c) 2007-19 Mike Karlesky, Mark VanderVoord, Greg Williams
|
4
|
-
[Released under MIT License. Please refer to license.txt for details]
|
5
|
-
========================================== */
|
6
|
-
|
7
|
-
#ifndef UNITY_INTERNALS_H
|
8
|
-
#define UNITY_INTERNALS_H
|
9
|
-
|
10
|
-
#ifdef UNITY_INCLUDE_CONFIG_H
|
11
|
-
#include "unity_config.h"
|
12
|
-
#endif
|
13
|
-
|
14
|
-
#ifndef UNITY_EXCLUDE_SETJMP_H
|
15
|
-
#include <setjmp.h>
|
16
|
-
#endif
|
17
|
-
|
18
|
-
#ifndef UNITY_EXCLUDE_MATH_H
|
19
|
-
#include <math.h>
|
20
|
-
#endif
|
21
|
-
|
22
|
-
#ifndef UNITY_EXCLUDE_STDDEF_H
|
23
|
-
#include <stddef.h>
|
24
|
-
#endif
|
25
|
-
|
26
|
-
#ifdef UNITY_INCLUDE_PRINT_FORMATTED
|
27
|
-
#include <stdarg.h>
|
28
|
-
#endif
|
29
|
-
|
30
|
-
/* Unity Attempts to Auto-Detect Integer Types
|
31
|
-
* Attempt 1: UINT_MAX, ULONG_MAX in <limits.h>, or default to 32 bits
|
32
|
-
* Attempt 2: UINTPTR_MAX in <stdint.h>, or default to same size as long
|
33
|
-
* The user may override any of these derived constants:
|
34
|
-
* UNITY_INT_WIDTH, UNITY_LONG_WIDTH, UNITY_POINTER_WIDTH */
|
35
|
-
#ifndef UNITY_EXCLUDE_STDINT_H
|
36
|
-
#include <stdint.h>
|
37
|
-
#endif
|
38
|
-
|
39
|
-
#ifndef UNITY_EXCLUDE_LIMITS_H
|
40
|
-
#include <limits.h>
|
41
|
-
#endif
|
42
|
-
|
43
|
-
/*-------------------------------------------------------
|
44
|
-
* Guess Widths If Not Specified
|
45
|
-
*-------------------------------------------------------*/
|
46
|
-
|
47
|
-
/* Determine the size of an int, if not already specified.
|
48
|
-
* We cannot use sizeof(int), because it is not yet defined
|
49
|
-
* at this stage in the translation of the C program.
|
50
|
-
* Also sizeof(int) does return the size in addressable units on all platforms,
|
51
|
-
* which may not necessarily be the size in bytes.
|
52
|
-
* Therefore, infer it from UINT_MAX if possible. */
|
53
|
-
#ifndef UNITY_INT_WIDTH
|
54
|
-
#ifdef UINT_MAX
|
55
|
-
#if (UINT_MAX == 0xFFFF)
|
56
|
-
#define UNITY_INT_WIDTH (16)
|
57
|
-
#elif (UINT_MAX == 0xFFFFFFFF)
|
58
|
-
#define UNITY_INT_WIDTH (32)
|
59
|
-
#elif (UINT_MAX == 0xFFFFFFFFFFFFFFFF)
|
60
|
-
#define UNITY_INT_WIDTH (64)
|
61
|
-
#endif
|
62
|
-
#else /* Set to default */
|
63
|
-
#define UNITY_INT_WIDTH (32)
|
64
|
-
#endif /* UINT_MAX */
|
65
|
-
#endif
|
66
|
-
|
67
|
-
/* Determine the size of a long, if not already specified. */
|
68
|
-
#ifndef UNITY_LONG_WIDTH
|
69
|
-
#ifdef ULONG_MAX
|
70
|
-
#if (ULONG_MAX == 0xFFFF)
|
71
|
-
#define UNITY_LONG_WIDTH (16)
|
72
|
-
#elif (ULONG_MAX == 0xFFFFFFFF)
|
73
|
-
#define UNITY_LONG_WIDTH (32)
|
74
|
-
#elif (ULONG_MAX == 0xFFFFFFFFFFFFFFFF)
|
75
|
-
#define UNITY_LONG_WIDTH (64)
|
76
|
-
#endif
|
77
|
-
#else /* Set to default */
|
78
|
-
#define UNITY_LONG_WIDTH (32)
|
79
|
-
#endif /* ULONG_MAX */
|
80
|
-
#endif
|
81
|
-
|
82
|
-
/* Determine the size of a pointer, if not already specified. */
|
83
|
-
#ifndef UNITY_POINTER_WIDTH
|
84
|
-
#ifdef UINTPTR_MAX
|
85
|
-
#if (UINTPTR_MAX <= 0xFFFF)
|
86
|
-
#define UNITY_POINTER_WIDTH (16)
|
87
|
-
#elif (UINTPTR_MAX <= 0xFFFFFFFF)
|
88
|
-
#define UNITY_POINTER_WIDTH (32)
|
89
|
-
#elif (UINTPTR_MAX <= 0xFFFFFFFFFFFFFFFF)
|
90
|
-
#define UNITY_POINTER_WIDTH (64)
|
91
|
-
#endif
|
92
|
-
#else /* Set to default */
|
93
|
-
#define UNITY_POINTER_WIDTH UNITY_LONG_WIDTH
|
94
|
-
#endif /* UINTPTR_MAX */
|
95
|
-
#endif
|
96
|
-
|
97
|
-
/*-------------------------------------------------------
|
98
|
-
* Int Support (Define types based on detected sizes)
|
99
|
-
*-------------------------------------------------------*/
|
100
|
-
|
101
|
-
#if (UNITY_INT_WIDTH == 32)
|
102
|
-
typedef unsigned char UNITY_UINT8;
|
103
|
-
typedef unsigned short UNITY_UINT16;
|
104
|
-
typedef unsigned int UNITY_UINT32;
|
105
|
-
typedef signed char UNITY_INT8;
|
106
|
-
typedef signed short UNITY_INT16;
|
107
|
-
typedef signed int UNITY_INT32;
|
108
|
-
#elif (UNITY_INT_WIDTH == 16)
|
109
|
-
typedef unsigned char UNITY_UINT8;
|
110
|
-
typedef unsigned int UNITY_UINT16;
|
111
|
-
typedef unsigned long UNITY_UINT32;
|
112
|
-
typedef signed char UNITY_INT8;
|
113
|
-
typedef signed int UNITY_INT16;
|
114
|
-
typedef signed long UNITY_INT32;
|
115
|
-
#else
|
116
|
-
#error Invalid UNITY_INT_WIDTH specified! (16 or 32 are supported)
|
117
|
-
#endif
|
118
|
-
|
119
|
-
/*-------------------------------------------------------
|
120
|
-
* 64-bit Support
|
121
|
-
*-------------------------------------------------------*/
|
122
|
-
|
123
|
-
/* Auto-detect 64 Bit Support */
|
124
|
-
#ifndef UNITY_SUPPORT_64
|
125
|
-
#if UNITY_LONG_WIDTH == 64 || UNITY_POINTER_WIDTH == 64
|
126
|
-
#define UNITY_SUPPORT_64
|
127
|
-
#endif
|
128
|
-
#endif
|
129
|
-
|
130
|
-
/* 64-Bit Support Dependent Configuration */
|
131
|
-
#ifndef UNITY_SUPPORT_64
|
132
|
-
/* No 64-bit Support */
|
133
|
-
typedef UNITY_UINT32 UNITY_UINT;
|
134
|
-
typedef UNITY_INT32 UNITY_INT;
|
135
|
-
#define UNITY_MAX_NIBBLES (8) /* Maximum number of nibbles in a UNITY_(U)INT */
|
136
|
-
#else
|
137
|
-
/* 64-bit Support */
|
138
|
-
#if (UNITY_LONG_WIDTH == 32)
|
139
|
-
typedef unsigned long long UNITY_UINT64;
|
140
|
-
typedef signed long long UNITY_INT64;
|
141
|
-
#elif (UNITY_LONG_WIDTH == 64)
|
142
|
-
typedef unsigned long UNITY_UINT64;
|
143
|
-
typedef signed long UNITY_INT64;
|
144
|
-
#else
|
145
|
-
#error Invalid UNITY_LONG_WIDTH specified! (32 or 64 are supported)
|
146
|
-
#endif
|
147
|
-
typedef UNITY_UINT64 UNITY_UINT;
|
148
|
-
typedef UNITY_INT64 UNITY_INT;
|
149
|
-
#define UNITY_MAX_NIBBLES (16) /* Maximum number of nibbles in a UNITY_(U)INT */
|
150
|
-
#endif
|
151
|
-
|
152
|
-
/*-------------------------------------------------------
|
153
|
-
* Pointer Support
|
154
|
-
*-------------------------------------------------------*/
|
155
|
-
|
156
|
-
#if (UNITY_POINTER_WIDTH == 32)
|
157
|
-
#define UNITY_PTR_TO_INT UNITY_INT32
|
158
|
-
#define UNITY_DISPLAY_STYLE_POINTER UNITY_DISPLAY_STYLE_HEX32
|
159
|
-
#elif (UNITY_POINTER_WIDTH == 64)
|
160
|
-
#define UNITY_PTR_TO_INT UNITY_INT64
|
161
|
-
#define UNITY_DISPLAY_STYLE_POINTER UNITY_DISPLAY_STYLE_HEX64
|
162
|
-
#elif (UNITY_POINTER_WIDTH == 16)
|
163
|
-
#define UNITY_PTR_TO_INT UNITY_INT16
|
164
|
-
#define UNITY_DISPLAY_STYLE_POINTER UNITY_DISPLAY_STYLE_HEX16
|
165
|
-
#else
|
166
|
-
#error Invalid UNITY_POINTER_WIDTH specified! (16, 32 or 64 are supported)
|
167
|
-
#endif
|
168
|
-
|
169
|
-
#ifndef UNITY_PTR_ATTRIBUTE
|
170
|
-
#define UNITY_PTR_ATTRIBUTE
|
171
|
-
#endif
|
172
|
-
|
173
|
-
#ifndef UNITY_INTERNAL_PTR
|
174
|
-
#define UNITY_INTERNAL_PTR UNITY_PTR_ATTRIBUTE const void*
|
175
|
-
#endif
|
176
|
-
|
177
|
-
/*-------------------------------------------------------
|
178
|
-
* Float Support
|
179
|
-
*-------------------------------------------------------*/
|
180
|
-
|
181
|
-
#ifdef UNITY_EXCLUDE_FLOAT
|
182
|
-
|
183
|
-
/* No Floating Point Support */
|
184
|
-
#ifndef UNITY_EXCLUDE_DOUBLE
|
185
|
-
#define UNITY_EXCLUDE_DOUBLE /* Remove double when excluding float support */
|
186
|
-
#endif
|
187
|
-
#ifndef UNITY_EXCLUDE_FLOAT_PRINT
|
188
|
-
#define UNITY_EXCLUDE_FLOAT_PRINT
|
189
|
-
#endif
|
190
|
-
|
191
|
-
#else
|
192
|
-
|
193
|
-
/* Floating Point Support */
|
194
|
-
#ifndef UNITY_FLOAT_PRECISION
|
195
|
-
#define UNITY_FLOAT_PRECISION (0.00001f)
|
196
|
-
#endif
|
197
|
-
#ifndef UNITY_FLOAT_TYPE
|
198
|
-
#define UNITY_FLOAT_TYPE float
|
199
|
-
#endif
|
200
|
-
typedef UNITY_FLOAT_TYPE UNITY_FLOAT;
|
201
|
-
|
202
|
-
/* isinf & isnan macros should be provided by math.h */
|
203
|
-
#ifndef isinf
|
204
|
-
/* The value of Inf - Inf is NaN */
|
205
|
-
#define isinf(n) (isnan((n) - (n)) && !isnan(n))
|
206
|
-
#endif
|
207
|
-
|
208
|
-
#ifndef isnan
|
209
|
-
/* NaN is the only floating point value that does NOT equal itself.
|
210
|
-
* Therefore if n != n, then it is NaN. */
|
211
|
-
#define isnan(n) ((n != n) ? 1 : 0)
|
212
|
-
#endif
|
213
|
-
|
214
|
-
#endif
|
215
|
-
|
216
|
-
/*-------------------------------------------------------
|
217
|
-
* Double Float Support
|
218
|
-
*-------------------------------------------------------*/
|
219
|
-
|
220
|
-
/* unlike float, we DON'T include by default */
|
221
|
-
#if defined(UNITY_EXCLUDE_DOUBLE) || !defined(UNITY_INCLUDE_DOUBLE)
|
222
|
-
|
223
|
-
/* No Floating Point Support */
|
224
|
-
#ifndef UNITY_EXCLUDE_DOUBLE
|
225
|
-
#define UNITY_EXCLUDE_DOUBLE
|
226
|
-
#else
|
227
|
-
#undef UNITY_INCLUDE_DOUBLE
|
228
|
-
#endif
|
229
|
-
|
230
|
-
#ifndef UNITY_EXCLUDE_FLOAT
|
231
|
-
#ifndef UNITY_DOUBLE_TYPE
|
232
|
-
#define UNITY_DOUBLE_TYPE double
|
233
|
-
#endif
|
234
|
-
typedef UNITY_FLOAT UNITY_DOUBLE;
|
235
|
-
/* For parameter in UnityPrintFloat(UNITY_DOUBLE), which aliases to double or float */
|
236
|
-
#endif
|
237
|
-
|
238
|
-
#else
|
239
|
-
|
240
|
-
/* Double Floating Point Support */
|
241
|
-
#ifndef UNITY_DOUBLE_PRECISION
|
242
|
-
#define UNITY_DOUBLE_PRECISION (1e-12)
|
243
|
-
#endif
|
244
|
-
|
245
|
-
#ifndef UNITY_DOUBLE_TYPE
|
246
|
-
#define UNITY_DOUBLE_TYPE double
|
247
|
-
#endif
|
248
|
-
typedef UNITY_DOUBLE_TYPE UNITY_DOUBLE;
|
249
|
-
|
250
|
-
#endif
|
251
|
-
|
252
|
-
/*-------------------------------------------------------
|
253
|
-
* Output Method: stdout (DEFAULT)
|
254
|
-
*-------------------------------------------------------*/
|
255
|
-
#ifndef UNITY_OUTPUT_CHAR
|
256
|
-
/* Default to using putchar, which is defined in stdio.h */
|
257
|
-
#include <stdio.h>
|
258
|
-
#define UNITY_OUTPUT_CHAR(a) (void)putchar(a)
|
259
|
-
#else
|
260
|
-
/* If defined as something else, make sure we declare it here so it's ready for use */
|
261
|
-
#ifdef UNITY_OUTPUT_CHAR_HEADER_DECLARATION
|
262
|
-
extern void UNITY_OUTPUT_CHAR_HEADER_DECLARATION;
|
263
|
-
#endif
|
264
|
-
#endif
|
265
|
-
|
266
|
-
#ifndef UNITY_OUTPUT_FLUSH
|
267
|
-
#ifdef UNITY_USE_FLUSH_STDOUT
|
268
|
-
/* We want to use the stdout flush utility */
|
269
|
-
#include <stdio.h>
|
270
|
-
#define UNITY_OUTPUT_FLUSH() (void)fflush(stdout)
|
271
|
-
#else
|
272
|
-
/* We've specified nothing, therefore flush should just be ignored */
|
273
|
-
#define UNITY_OUTPUT_FLUSH()
|
274
|
-
#endif
|
275
|
-
#else
|
276
|
-
/* If defined as something else, make sure we declare it here so it's ready for use */
|
277
|
-
#ifdef UNITY_OUTPUT_FLUSH_HEADER_DECLARATION
|
278
|
-
extern void UNITY_OUTPUT_FLUSH_HEADER_DECLARATION;
|
279
|
-
#endif
|
280
|
-
#endif
|
281
|
-
|
282
|
-
#ifndef UNITY_OUTPUT_FLUSH
|
283
|
-
#define UNITY_FLUSH_CALL()
|
284
|
-
#else
|
285
|
-
#define UNITY_FLUSH_CALL() UNITY_OUTPUT_FLUSH()
|
286
|
-
#endif
|
287
|
-
|
288
|
-
#ifndef UNITY_PRINT_EOL
|
289
|
-
#define UNITY_PRINT_EOL() UNITY_OUTPUT_CHAR('\n')
|
290
|
-
#endif
|
291
|
-
|
292
|
-
#ifndef UNITY_OUTPUT_START
|
293
|
-
#define UNITY_OUTPUT_START()
|
294
|
-
#endif
|
295
|
-
|
296
|
-
#ifndef UNITY_OUTPUT_COMPLETE
|
297
|
-
#define UNITY_OUTPUT_COMPLETE()
|
298
|
-
#endif
|
299
|
-
|
300
|
-
#ifdef UNITY_INCLUDE_EXEC_TIME
|
301
|
-
#if !defined(UNITY_EXEC_TIME_START) && \
|
302
|
-
!defined(UNITY_EXEC_TIME_STOP) && \
|
303
|
-
!defined(UNITY_PRINT_EXEC_TIME) && \
|
304
|
-
!defined(UNITY_TIME_TYPE)
|
305
|
-
/* If none any of these macros are defined then try to provide a default implementation */
|
306
|
-
|
307
|
-
#if defined(UNITY_CLOCK_MS)
|
308
|
-
/* This is a simple way to get a default implementation on platforms that support getting a millisecond counter */
|
309
|
-
#define UNITY_TIME_TYPE UNITY_UINT
|
310
|
-
#define UNITY_EXEC_TIME_START() Unity.CurrentTestStartTime = UNITY_CLOCK_MS()
|
311
|
-
#define UNITY_EXEC_TIME_STOP() Unity.CurrentTestStopTime = UNITY_CLOCK_MS()
|
312
|
-
#define UNITY_PRINT_EXEC_TIME() { \
|
313
|
-
UNITY_UINT execTimeMs = (Unity.CurrentTestStopTime - Unity.CurrentTestStartTime); \
|
314
|
-
UnityPrint(" ("); \
|
315
|
-
UnityPrintNumberUnsigned(execTimeMs); \
|
316
|
-
UnityPrint(" ms)"); \
|
317
|
-
}
|
318
|
-
#elif defined(_WIN32)
|
319
|
-
#include <time.h>
|
320
|
-
#define UNITY_TIME_TYPE clock_t
|
321
|
-
#define UNITY_GET_TIME(t) t = (clock_t)((clock() * 1000) / CLOCKS_PER_SEC)
|
322
|
-
#define UNITY_EXEC_TIME_START() UNITY_GET_TIME(Unity.CurrentTestStartTime)
|
323
|
-
#define UNITY_EXEC_TIME_STOP() UNITY_GET_TIME(Unity.CurrentTestStopTime)
|
324
|
-
#define UNITY_PRINT_EXEC_TIME() { \
|
325
|
-
UNITY_UINT execTimeMs = (Unity.CurrentTestStopTime - Unity.CurrentTestStartTime); \
|
326
|
-
UnityPrint(" ("); \
|
327
|
-
UnityPrintNumberUnsigned(execTimeMs); \
|
328
|
-
UnityPrint(" ms)"); \
|
329
|
-
}
|
330
|
-
#elif defined(__unix__)
|
331
|
-
#include <time.h>
|
332
|
-
#define UNITY_TIME_TYPE struct timespec
|
333
|
-
#define UNITY_GET_TIME(t) clock_gettime(CLOCK_MONOTONIC, &t)
|
334
|
-
#define UNITY_EXEC_TIME_START() UNITY_GET_TIME(Unity.CurrentTestStartTime)
|
335
|
-
#define UNITY_EXEC_TIME_STOP() UNITY_GET_TIME(Unity.CurrentTestStopTime)
|
336
|
-
#define UNITY_PRINT_EXEC_TIME() { \
|
337
|
-
UNITY_UINT execTimeMs = ((Unity.CurrentTestStopTime.tv_sec - Unity.CurrentTestStartTime.tv_sec) * 1000L); \
|
338
|
-
execTimeMs += ((Unity.CurrentTestStopTime.tv_nsec - Unity.CurrentTestStartTime.tv_nsec) / 1000000L); \
|
339
|
-
UnityPrint(" ("); \
|
340
|
-
UnityPrintNumberUnsigned(execTimeMs); \
|
341
|
-
UnityPrint(" ms)"); \
|
342
|
-
}
|
343
|
-
#endif
|
344
|
-
#endif
|
345
|
-
#endif
|
346
|
-
|
347
|
-
#ifndef UNITY_EXEC_TIME_START
|
348
|
-
#define UNITY_EXEC_TIME_START() do{}while(0)
|
349
|
-
#endif
|
350
|
-
|
351
|
-
#ifndef UNITY_EXEC_TIME_STOP
|
352
|
-
#define UNITY_EXEC_TIME_STOP() do{}while(0)
|
353
|
-
#endif
|
354
|
-
|
355
|
-
#ifndef UNITY_TIME_TYPE
|
356
|
-
#define UNITY_TIME_TYPE UNITY_UINT
|
357
|
-
#endif
|
358
|
-
|
359
|
-
#ifndef UNITY_PRINT_EXEC_TIME
|
360
|
-
#define UNITY_PRINT_EXEC_TIME() do{}while(0)
|
361
|
-
#endif
|
362
|
-
|
363
|
-
/*-------------------------------------------------------
|
364
|
-
* Footprint
|
365
|
-
*-------------------------------------------------------*/
|
366
|
-
|
367
|
-
#ifndef UNITY_LINE_TYPE
|
368
|
-
#define UNITY_LINE_TYPE UNITY_UINT
|
369
|
-
#endif
|
370
|
-
|
371
|
-
#ifndef UNITY_COUNTER_TYPE
|
372
|
-
#define UNITY_COUNTER_TYPE UNITY_UINT
|
373
|
-
#endif
|
374
|
-
|
375
|
-
/*-------------------------------------------------------
|
376
|
-
* Internal Structs Needed
|
377
|
-
*-------------------------------------------------------*/
|
378
|
-
|
379
|
-
typedef void (*UnityTestFunction)(void);
|
380
|
-
|
381
|
-
#define UNITY_DISPLAY_RANGE_INT (0x10)
|
382
|
-
#define UNITY_DISPLAY_RANGE_UINT (0x20)
|
383
|
-
#define UNITY_DISPLAY_RANGE_HEX (0x40)
|
384
|
-
#define UNITY_DISPLAY_RANGE_CHAR (0x80)
|
385
|
-
|
386
|
-
typedef enum
|
387
|
-
{
|
388
|
-
UNITY_DISPLAY_STYLE_INT = (UNITY_INT_WIDTH / 8) + UNITY_DISPLAY_RANGE_INT,
|
389
|
-
UNITY_DISPLAY_STYLE_INT8 = 1 + UNITY_DISPLAY_RANGE_INT,
|
390
|
-
UNITY_DISPLAY_STYLE_INT16 = 2 + UNITY_DISPLAY_RANGE_INT,
|
391
|
-
UNITY_DISPLAY_STYLE_INT32 = 4 + UNITY_DISPLAY_RANGE_INT,
|
392
|
-
#ifdef UNITY_SUPPORT_64
|
393
|
-
UNITY_DISPLAY_STYLE_INT64 = 8 + UNITY_DISPLAY_RANGE_INT,
|
394
|
-
#endif
|
395
|
-
|
396
|
-
UNITY_DISPLAY_STYLE_UINT = (UNITY_INT_WIDTH / 8) + UNITY_DISPLAY_RANGE_UINT,
|
397
|
-
UNITY_DISPLAY_STYLE_UINT8 = 1 + UNITY_DISPLAY_RANGE_UINT,
|
398
|
-
UNITY_DISPLAY_STYLE_UINT16 = 2 + UNITY_DISPLAY_RANGE_UINT,
|
399
|
-
UNITY_DISPLAY_STYLE_UINT32 = 4 + UNITY_DISPLAY_RANGE_UINT,
|
400
|
-
#ifdef UNITY_SUPPORT_64
|
401
|
-
UNITY_DISPLAY_STYLE_UINT64 = 8 + UNITY_DISPLAY_RANGE_UINT,
|
402
|
-
#endif
|
403
|
-
|
404
|
-
UNITY_DISPLAY_STYLE_HEX8 = 1 + UNITY_DISPLAY_RANGE_HEX,
|
405
|
-
UNITY_DISPLAY_STYLE_HEX16 = 2 + UNITY_DISPLAY_RANGE_HEX,
|
406
|
-
UNITY_DISPLAY_STYLE_HEX32 = 4 + UNITY_DISPLAY_RANGE_HEX,
|
407
|
-
#ifdef UNITY_SUPPORT_64
|
408
|
-
UNITY_DISPLAY_STYLE_HEX64 = 8 + UNITY_DISPLAY_RANGE_HEX,
|
409
|
-
#endif
|
410
|
-
|
411
|
-
UNITY_DISPLAY_STYLE_CHAR = 1 + UNITY_DISPLAY_RANGE_CHAR + UNITY_DISPLAY_RANGE_INT,
|
412
|
-
|
413
|
-
UNITY_DISPLAY_STYLE_UNKNOWN
|
414
|
-
} UNITY_DISPLAY_STYLE_T;
|
415
|
-
|
416
|
-
typedef enum
|
417
|
-
{
|
418
|
-
UNITY_WITHIN = 0x0,
|
419
|
-
UNITY_EQUAL_TO = 0x1,
|
420
|
-
UNITY_GREATER_THAN = 0x2,
|
421
|
-
UNITY_GREATER_OR_EQUAL = 0x2 + UNITY_EQUAL_TO,
|
422
|
-
UNITY_SMALLER_THAN = 0x4,
|
423
|
-
UNITY_SMALLER_OR_EQUAL = 0x4 + UNITY_EQUAL_TO,
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
const char*
|
453
|
-
|
454
|
-
|
455
|
-
const char*
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
UNITY_COUNTER_TYPE
|
460
|
-
UNITY_COUNTER_TYPE
|
461
|
-
UNITY_COUNTER_TYPE
|
462
|
-
UNITY_COUNTER_TYPE
|
463
|
-
|
464
|
-
|
465
|
-
UNITY_TIME_TYPE
|
466
|
-
|
467
|
-
#
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
void
|
481
|
-
void
|
482
|
-
void
|
483
|
-
|
484
|
-
|
485
|
-
*
|
486
|
-
|
487
|
-
|
488
|
-
#
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
#
|
495
|
-
#define
|
496
|
-
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
500
|
-
|
501
|
-
#
|
502
|
-
|
503
|
-
#
|
504
|
-
#
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
#ifdef
|
513
|
-
void
|
514
|
-
#endif
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
void
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
void
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
void
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
const
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
const
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
#
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
#
|
689
|
-
#
|
690
|
-
#define
|
691
|
-
#
|
692
|
-
#
|
693
|
-
#
|
694
|
-
#
|
695
|
-
|
696
|
-
|
697
|
-
#
|
698
|
-
#
|
699
|
-
#
|
700
|
-
#
|
701
|
-
|
702
|
-
|
703
|
-
#
|
704
|
-
#
|
705
|
-
#define
|
706
|
-
#
|
707
|
-
#define
|
708
|
-
#
|
709
|
-
#endif
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
#
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
#
|
719
|
-
#
|
720
|
-
|
721
|
-
|
722
|
-
#
|
723
|
-
#define
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
#ifndef
|
729
|
-
#
|
730
|
-
#
|
731
|
-
|
732
|
-
#
|
733
|
-
#
|
734
|
-
#endif
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
#
|
741
|
-
|
742
|
-
|
743
|
-
#endif
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
#
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
#define
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
#define
|
767
|
-
#define
|
768
|
-
#define
|
769
|
-
#define
|
770
|
-
#define
|
771
|
-
|
772
|
-
#define
|
773
|
-
|
774
|
-
#define
|
775
|
-
#define
|
776
|
-
#define
|
777
|
-
#define
|
778
|
-
#define
|
779
|
-
#define
|
780
|
-
#define
|
781
|
-
#define
|
782
|
-
#define
|
783
|
-
#define
|
784
|
-
#define
|
785
|
-
|
786
|
-
|
787
|
-
#define
|
788
|
-
#define
|
789
|
-
#define
|
790
|
-
#define
|
791
|
-
#define
|
792
|
-
#define
|
793
|
-
#define
|
794
|
-
#define
|
795
|
-
#define
|
796
|
-
#define
|
797
|
-
#define
|
798
|
-
|
799
|
-
|
800
|
-
#define
|
801
|
-
#define
|
802
|
-
#define
|
803
|
-
#define
|
804
|
-
#define
|
805
|
-
#define
|
806
|
-
#define
|
807
|
-
#define
|
808
|
-
#define
|
809
|
-
#define
|
810
|
-
#define
|
811
|
-
|
812
|
-
|
813
|
-
#define
|
814
|
-
#define
|
815
|
-
#define
|
816
|
-
#define
|
817
|
-
#define
|
818
|
-
#define
|
819
|
-
#define
|
820
|
-
#define
|
821
|
-
#define
|
822
|
-
#define
|
823
|
-
#define
|
824
|
-
|
825
|
-
|
826
|
-
#define
|
827
|
-
#define
|
828
|
-
#define
|
829
|
-
#define
|
830
|
-
#define
|
831
|
-
#define
|
832
|
-
#define
|
833
|
-
#define
|
834
|
-
#define
|
835
|
-
#define
|
836
|
-
#define
|
837
|
-
|
838
|
-
|
839
|
-
#define
|
840
|
-
#define
|
841
|
-
#define
|
842
|
-
#define
|
843
|
-
#define
|
844
|
-
#define
|
845
|
-
#define
|
846
|
-
#define
|
847
|
-
#define
|
848
|
-
#define
|
849
|
-
#define
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
#define
|
854
|
-
#define
|
855
|
-
#define
|
856
|
-
#define
|
857
|
-
|
858
|
-
#define
|
859
|
-
#define
|
860
|
-
#define
|
861
|
-
#define
|
862
|
-
#define
|
863
|
-
|
864
|
-
#define
|
865
|
-
#define
|
866
|
-
#define
|
867
|
-
#define
|
868
|
-
#define
|
869
|
-
#define
|
870
|
-
#define
|
871
|
-
#define
|
872
|
-
#define
|
873
|
-
|
874
|
-
#define
|
875
|
-
#define
|
876
|
-
|
877
|
-
|
878
|
-
#define
|
879
|
-
#define
|
880
|
-
#define
|
881
|
-
#define
|
882
|
-
|
883
|
-
#define
|
884
|
-
#define
|
885
|
-
#define
|
886
|
-
#define
|
887
|
-
#define
|
888
|
-
#define
|
889
|
-
|
890
|
-
#
|
891
|
-
#define
|
892
|
-
#define
|
893
|
-
#define
|
894
|
-
#define
|
895
|
-
#define
|
896
|
-
#define
|
897
|
-
#define
|
898
|
-
|
899
|
-
#define
|
900
|
-
#define
|
901
|
-
#define
|
902
|
-
#define
|
903
|
-
#define
|
904
|
-
#define
|
905
|
-
#define
|
906
|
-
#define
|
907
|
-
#define
|
908
|
-
#define
|
909
|
-
#define
|
910
|
-
#define
|
911
|
-
#define
|
912
|
-
#define
|
913
|
-
#define
|
914
|
-
|
915
|
-
#
|
916
|
-
#define
|
917
|
-
#define
|
918
|
-
#
|
919
|
-
#define
|
920
|
-
#define
|
921
|
-
#define
|
922
|
-
#define
|
923
|
-
#define
|
924
|
-
#define
|
925
|
-
#define UNITY_TEST_ASSERT_INT64_WITHIN(delta, expected, actual, line, message)
|
926
|
-
#define UNITY_TEST_ASSERT_UINT64_WITHIN(delta, expected, actual, line, message)
|
927
|
-
#define UNITY_TEST_ASSERT_HEX64_WITHIN(delta, expected, actual, line, message)
|
928
|
-
#define
|
929
|
-
#define
|
930
|
-
#define
|
931
|
-
#define
|
932
|
-
#define
|
933
|
-
#define
|
934
|
-
#define
|
935
|
-
#define
|
936
|
-
#define
|
937
|
-
#define
|
938
|
-
#define
|
939
|
-
#define
|
940
|
-
#define
|
941
|
-
#define
|
942
|
-
#define
|
943
|
-
#
|
944
|
-
|
945
|
-
#
|
946
|
-
#
|
947
|
-
#define
|
948
|
-
#define
|
949
|
-
#define
|
950
|
-
#define
|
951
|
-
#define
|
952
|
-
#define
|
953
|
-
#define
|
954
|
-
#define
|
955
|
-
#define
|
956
|
-
#define
|
957
|
-
#define
|
958
|
-
#
|
959
|
-
#define
|
960
|
-
#define
|
961
|
-
#define
|
962
|
-
#define
|
963
|
-
#define
|
964
|
-
#define
|
965
|
-
#define
|
966
|
-
#define
|
967
|
-
#define
|
968
|
-
#define
|
969
|
-
#define
|
970
|
-
#define
|
971
|
-
#endif
|
972
|
-
|
973
|
-
#ifdef
|
974
|
-
#define
|
975
|
-
#define
|
976
|
-
#define
|
977
|
-
#define
|
978
|
-
#define
|
979
|
-
#define
|
980
|
-
#define
|
981
|
-
#define
|
982
|
-
#define
|
983
|
-
#define
|
984
|
-
#define
|
985
|
-
#define
|
986
|
-
#else
|
987
|
-
#define
|
988
|
-
#define
|
989
|
-
#define
|
990
|
-
#define
|
991
|
-
#define
|
992
|
-
#define
|
993
|
-
#define
|
994
|
-
#define
|
995
|
-
#define
|
996
|
-
#define
|
997
|
-
#define
|
998
|
-
#define
|
999
|
-
#endif
|
1000
|
-
|
1001
|
-
|
1002
|
-
#
|
1
|
+
/* ==========================================
|
2
|
+
Unity Project - A Test Framework for C
|
3
|
+
Copyright (c) 2007-19 Mike Karlesky, Mark VanderVoord, Greg Williams
|
4
|
+
[Released under MIT License. Please refer to license.txt for details]
|
5
|
+
========================================== */
|
6
|
+
|
7
|
+
#ifndef UNITY_INTERNALS_H
|
8
|
+
#define UNITY_INTERNALS_H
|
9
|
+
|
10
|
+
#ifdef UNITY_INCLUDE_CONFIG_H
|
11
|
+
#include "unity_config.h"
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#ifndef UNITY_EXCLUDE_SETJMP_H
|
15
|
+
#include <setjmp.h>
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#ifndef UNITY_EXCLUDE_MATH_H
|
19
|
+
#include <math.h>
|
20
|
+
#endif
|
21
|
+
|
22
|
+
#ifndef UNITY_EXCLUDE_STDDEF_H
|
23
|
+
#include <stddef.h>
|
24
|
+
#endif
|
25
|
+
|
26
|
+
#ifdef UNITY_INCLUDE_PRINT_FORMATTED
|
27
|
+
#include <stdarg.h>
|
28
|
+
#endif
|
29
|
+
|
30
|
+
/* Unity Attempts to Auto-Detect Integer Types
|
31
|
+
* Attempt 1: UINT_MAX, ULONG_MAX in <limits.h>, or default to 32 bits
|
32
|
+
* Attempt 2: UINTPTR_MAX in <stdint.h>, or default to same size as long
|
33
|
+
* The user may override any of these derived constants:
|
34
|
+
* UNITY_INT_WIDTH, UNITY_LONG_WIDTH, UNITY_POINTER_WIDTH */
|
35
|
+
#ifndef UNITY_EXCLUDE_STDINT_H
|
36
|
+
#include <stdint.h>
|
37
|
+
#endif
|
38
|
+
|
39
|
+
#ifndef UNITY_EXCLUDE_LIMITS_H
|
40
|
+
#include <limits.h>
|
41
|
+
#endif
|
42
|
+
|
43
|
+
/*-------------------------------------------------------
|
44
|
+
* Guess Widths If Not Specified
|
45
|
+
*-------------------------------------------------------*/
|
46
|
+
|
47
|
+
/* Determine the size of an int, if not already specified.
|
48
|
+
* We cannot use sizeof(int), because it is not yet defined
|
49
|
+
* at this stage in the translation of the C program.
|
50
|
+
* Also sizeof(int) does return the size in addressable units on all platforms,
|
51
|
+
* which may not necessarily be the size in bytes.
|
52
|
+
* Therefore, infer it from UINT_MAX if possible. */
|
53
|
+
#ifndef UNITY_INT_WIDTH
|
54
|
+
#ifdef UINT_MAX
|
55
|
+
#if (UINT_MAX == 0xFFFF)
|
56
|
+
#define UNITY_INT_WIDTH (16)
|
57
|
+
#elif (UINT_MAX == 0xFFFFFFFF)
|
58
|
+
#define UNITY_INT_WIDTH (32)
|
59
|
+
#elif (UINT_MAX == 0xFFFFFFFFFFFFFFFF)
|
60
|
+
#define UNITY_INT_WIDTH (64)
|
61
|
+
#endif
|
62
|
+
#else /* Set to default */
|
63
|
+
#define UNITY_INT_WIDTH (32)
|
64
|
+
#endif /* UINT_MAX */
|
65
|
+
#endif
|
66
|
+
|
67
|
+
/* Determine the size of a long, if not already specified. */
|
68
|
+
#ifndef UNITY_LONG_WIDTH
|
69
|
+
#ifdef ULONG_MAX
|
70
|
+
#if (ULONG_MAX == 0xFFFF)
|
71
|
+
#define UNITY_LONG_WIDTH (16)
|
72
|
+
#elif (ULONG_MAX == 0xFFFFFFFF)
|
73
|
+
#define UNITY_LONG_WIDTH (32)
|
74
|
+
#elif (ULONG_MAX == 0xFFFFFFFFFFFFFFFF)
|
75
|
+
#define UNITY_LONG_WIDTH (64)
|
76
|
+
#endif
|
77
|
+
#else /* Set to default */
|
78
|
+
#define UNITY_LONG_WIDTH (32)
|
79
|
+
#endif /* ULONG_MAX */
|
80
|
+
#endif
|
81
|
+
|
82
|
+
/* Determine the size of a pointer, if not already specified. */
|
83
|
+
#ifndef UNITY_POINTER_WIDTH
|
84
|
+
#ifdef UINTPTR_MAX
|
85
|
+
#if (UINTPTR_MAX <= 0xFFFF)
|
86
|
+
#define UNITY_POINTER_WIDTH (16)
|
87
|
+
#elif (UINTPTR_MAX <= 0xFFFFFFFF)
|
88
|
+
#define UNITY_POINTER_WIDTH (32)
|
89
|
+
#elif (UINTPTR_MAX <= 0xFFFFFFFFFFFFFFFF)
|
90
|
+
#define UNITY_POINTER_WIDTH (64)
|
91
|
+
#endif
|
92
|
+
#else /* Set to default */
|
93
|
+
#define UNITY_POINTER_WIDTH UNITY_LONG_WIDTH
|
94
|
+
#endif /* UINTPTR_MAX */
|
95
|
+
#endif
|
96
|
+
|
97
|
+
/*-------------------------------------------------------
|
98
|
+
* Int Support (Define types based on detected sizes)
|
99
|
+
*-------------------------------------------------------*/
|
100
|
+
|
101
|
+
#if (UNITY_INT_WIDTH == 32)
|
102
|
+
typedef unsigned char UNITY_UINT8;
|
103
|
+
typedef unsigned short UNITY_UINT16;
|
104
|
+
typedef unsigned int UNITY_UINT32;
|
105
|
+
typedef signed char UNITY_INT8;
|
106
|
+
typedef signed short UNITY_INT16;
|
107
|
+
typedef signed int UNITY_INT32;
|
108
|
+
#elif (UNITY_INT_WIDTH == 16)
|
109
|
+
typedef unsigned char UNITY_UINT8;
|
110
|
+
typedef unsigned int UNITY_UINT16;
|
111
|
+
typedef unsigned long UNITY_UINT32;
|
112
|
+
typedef signed char UNITY_INT8;
|
113
|
+
typedef signed int UNITY_INT16;
|
114
|
+
typedef signed long UNITY_INT32;
|
115
|
+
#else
|
116
|
+
#error Invalid UNITY_INT_WIDTH specified! (16 or 32 are supported)
|
117
|
+
#endif
|
118
|
+
|
119
|
+
/*-------------------------------------------------------
|
120
|
+
* 64-bit Support
|
121
|
+
*-------------------------------------------------------*/
|
122
|
+
|
123
|
+
/* Auto-detect 64 Bit Support */
|
124
|
+
#ifndef UNITY_SUPPORT_64
|
125
|
+
#if UNITY_LONG_WIDTH == 64 || UNITY_POINTER_WIDTH == 64
|
126
|
+
#define UNITY_SUPPORT_64
|
127
|
+
#endif
|
128
|
+
#endif
|
129
|
+
|
130
|
+
/* 64-Bit Support Dependent Configuration */
|
131
|
+
#ifndef UNITY_SUPPORT_64
|
132
|
+
/* No 64-bit Support */
|
133
|
+
typedef UNITY_UINT32 UNITY_UINT;
|
134
|
+
typedef UNITY_INT32 UNITY_INT;
|
135
|
+
#define UNITY_MAX_NIBBLES (8) /* Maximum number of nibbles in a UNITY_(U)INT */
|
136
|
+
#else
|
137
|
+
/* 64-bit Support */
|
138
|
+
#if (UNITY_LONG_WIDTH == 32)
|
139
|
+
typedef unsigned long long UNITY_UINT64;
|
140
|
+
typedef signed long long UNITY_INT64;
|
141
|
+
#elif (UNITY_LONG_WIDTH == 64)
|
142
|
+
typedef unsigned long UNITY_UINT64;
|
143
|
+
typedef signed long UNITY_INT64;
|
144
|
+
#else
|
145
|
+
#error Invalid UNITY_LONG_WIDTH specified! (32 or 64 are supported)
|
146
|
+
#endif
|
147
|
+
typedef UNITY_UINT64 UNITY_UINT;
|
148
|
+
typedef UNITY_INT64 UNITY_INT;
|
149
|
+
#define UNITY_MAX_NIBBLES (16) /* Maximum number of nibbles in a UNITY_(U)INT */
|
150
|
+
#endif
|
151
|
+
|
152
|
+
/*-------------------------------------------------------
|
153
|
+
* Pointer Support
|
154
|
+
*-------------------------------------------------------*/
|
155
|
+
|
156
|
+
#if (UNITY_POINTER_WIDTH == 32)
|
157
|
+
#define UNITY_PTR_TO_INT UNITY_INT32
|
158
|
+
#define UNITY_DISPLAY_STYLE_POINTER UNITY_DISPLAY_STYLE_HEX32
|
159
|
+
#elif (UNITY_POINTER_WIDTH == 64)
|
160
|
+
#define UNITY_PTR_TO_INT UNITY_INT64
|
161
|
+
#define UNITY_DISPLAY_STYLE_POINTER UNITY_DISPLAY_STYLE_HEX64
|
162
|
+
#elif (UNITY_POINTER_WIDTH == 16)
|
163
|
+
#define UNITY_PTR_TO_INT UNITY_INT16
|
164
|
+
#define UNITY_DISPLAY_STYLE_POINTER UNITY_DISPLAY_STYLE_HEX16
|
165
|
+
#else
|
166
|
+
#error Invalid UNITY_POINTER_WIDTH specified! (16, 32 or 64 are supported)
|
167
|
+
#endif
|
168
|
+
|
169
|
+
#ifndef UNITY_PTR_ATTRIBUTE
|
170
|
+
#define UNITY_PTR_ATTRIBUTE
|
171
|
+
#endif
|
172
|
+
|
173
|
+
#ifndef UNITY_INTERNAL_PTR
|
174
|
+
#define UNITY_INTERNAL_PTR UNITY_PTR_ATTRIBUTE const void*
|
175
|
+
#endif
|
176
|
+
|
177
|
+
/*-------------------------------------------------------
|
178
|
+
* Float Support
|
179
|
+
*-------------------------------------------------------*/
|
180
|
+
|
181
|
+
#ifdef UNITY_EXCLUDE_FLOAT
|
182
|
+
|
183
|
+
/* No Floating Point Support */
|
184
|
+
#ifndef UNITY_EXCLUDE_DOUBLE
|
185
|
+
#define UNITY_EXCLUDE_DOUBLE /* Remove double when excluding float support */
|
186
|
+
#endif
|
187
|
+
#ifndef UNITY_EXCLUDE_FLOAT_PRINT
|
188
|
+
#define UNITY_EXCLUDE_FLOAT_PRINT
|
189
|
+
#endif
|
190
|
+
|
191
|
+
#else
|
192
|
+
|
193
|
+
/* Floating Point Support */
|
194
|
+
#ifndef UNITY_FLOAT_PRECISION
|
195
|
+
#define UNITY_FLOAT_PRECISION (0.00001f)
|
196
|
+
#endif
|
197
|
+
#ifndef UNITY_FLOAT_TYPE
|
198
|
+
#define UNITY_FLOAT_TYPE float
|
199
|
+
#endif
|
200
|
+
typedef UNITY_FLOAT_TYPE UNITY_FLOAT;
|
201
|
+
|
202
|
+
/* isinf & isnan macros should be provided by math.h */
|
203
|
+
#ifndef isinf
|
204
|
+
/* The value of Inf - Inf is NaN */
|
205
|
+
#define isinf(n) (isnan((n) - (n)) && !isnan(n))
|
206
|
+
#endif
|
207
|
+
|
208
|
+
#ifndef isnan
|
209
|
+
/* NaN is the only floating point value that does NOT equal itself.
|
210
|
+
* Therefore if n != n, then it is NaN. */
|
211
|
+
#define isnan(n) ((n != n) ? 1 : 0)
|
212
|
+
#endif
|
213
|
+
|
214
|
+
#endif
|
215
|
+
|
216
|
+
/*-------------------------------------------------------
|
217
|
+
* Double Float Support
|
218
|
+
*-------------------------------------------------------*/
|
219
|
+
|
220
|
+
/* unlike float, we DON'T include by default */
|
221
|
+
#if defined(UNITY_EXCLUDE_DOUBLE) || !defined(UNITY_INCLUDE_DOUBLE)
|
222
|
+
|
223
|
+
/* No Floating Point Support */
|
224
|
+
#ifndef UNITY_EXCLUDE_DOUBLE
|
225
|
+
#define UNITY_EXCLUDE_DOUBLE
|
226
|
+
#else
|
227
|
+
#undef UNITY_INCLUDE_DOUBLE
|
228
|
+
#endif
|
229
|
+
|
230
|
+
#ifndef UNITY_EXCLUDE_FLOAT
|
231
|
+
#ifndef UNITY_DOUBLE_TYPE
|
232
|
+
#define UNITY_DOUBLE_TYPE double
|
233
|
+
#endif
|
234
|
+
typedef UNITY_FLOAT UNITY_DOUBLE;
|
235
|
+
/* For parameter in UnityPrintFloat(UNITY_DOUBLE), which aliases to double or float */
|
236
|
+
#endif
|
237
|
+
|
238
|
+
#else
|
239
|
+
|
240
|
+
/* Double Floating Point Support */
|
241
|
+
#ifndef UNITY_DOUBLE_PRECISION
|
242
|
+
#define UNITY_DOUBLE_PRECISION (1e-12)
|
243
|
+
#endif
|
244
|
+
|
245
|
+
#ifndef UNITY_DOUBLE_TYPE
|
246
|
+
#define UNITY_DOUBLE_TYPE double
|
247
|
+
#endif
|
248
|
+
typedef UNITY_DOUBLE_TYPE UNITY_DOUBLE;
|
249
|
+
|
250
|
+
#endif
|
251
|
+
|
252
|
+
/*-------------------------------------------------------
|
253
|
+
* Output Method: stdout (DEFAULT)
|
254
|
+
*-------------------------------------------------------*/
|
255
|
+
#ifndef UNITY_OUTPUT_CHAR
|
256
|
+
/* Default to using putchar, which is defined in stdio.h */
|
257
|
+
#include <stdio.h>
|
258
|
+
#define UNITY_OUTPUT_CHAR(a) (void)putchar(a)
|
259
|
+
#else
|
260
|
+
/* If defined as something else, make sure we declare it here so it's ready for use */
|
261
|
+
#ifdef UNITY_OUTPUT_CHAR_HEADER_DECLARATION
|
262
|
+
extern void UNITY_OUTPUT_CHAR_HEADER_DECLARATION;
|
263
|
+
#endif
|
264
|
+
#endif
|
265
|
+
|
266
|
+
#ifndef UNITY_OUTPUT_FLUSH
|
267
|
+
#ifdef UNITY_USE_FLUSH_STDOUT
|
268
|
+
/* We want to use the stdout flush utility */
|
269
|
+
#include <stdio.h>
|
270
|
+
#define UNITY_OUTPUT_FLUSH() (void)fflush(stdout)
|
271
|
+
#else
|
272
|
+
/* We've specified nothing, therefore flush should just be ignored */
|
273
|
+
#define UNITY_OUTPUT_FLUSH()
|
274
|
+
#endif
|
275
|
+
#else
|
276
|
+
/* If defined as something else, make sure we declare it here so it's ready for use */
|
277
|
+
#ifdef UNITY_OUTPUT_FLUSH_HEADER_DECLARATION
|
278
|
+
extern void UNITY_OUTPUT_FLUSH_HEADER_DECLARATION;
|
279
|
+
#endif
|
280
|
+
#endif
|
281
|
+
|
282
|
+
#ifndef UNITY_OUTPUT_FLUSH
|
283
|
+
#define UNITY_FLUSH_CALL()
|
284
|
+
#else
|
285
|
+
#define UNITY_FLUSH_CALL() UNITY_OUTPUT_FLUSH()
|
286
|
+
#endif
|
287
|
+
|
288
|
+
#ifndef UNITY_PRINT_EOL
|
289
|
+
#define UNITY_PRINT_EOL() UNITY_OUTPUT_CHAR('\n')
|
290
|
+
#endif
|
291
|
+
|
292
|
+
#ifndef UNITY_OUTPUT_START
|
293
|
+
#define UNITY_OUTPUT_START()
|
294
|
+
#endif
|
295
|
+
|
296
|
+
#ifndef UNITY_OUTPUT_COMPLETE
|
297
|
+
#define UNITY_OUTPUT_COMPLETE()
|
298
|
+
#endif
|
299
|
+
|
300
|
+
#ifdef UNITY_INCLUDE_EXEC_TIME
|
301
|
+
#if !defined(UNITY_EXEC_TIME_START) && \
|
302
|
+
!defined(UNITY_EXEC_TIME_STOP) && \
|
303
|
+
!defined(UNITY_PRINT_EXEC_TIME) && \
|
304
|
+
!defined(UNITY_TIME_TYPE)
|
305
|
+
/* If none any of these macros are defined then try to provide a default implementation */
|
306
|
+
|
307
|
+
#if defined(UNITY_CLOCK_MS)
|
308
|
+
/* This is a simple way to get a default implementation on platforms that support getting a millisecond counter */
|
309
|
+
#define UNITY_TIME_TYPE UNITY_UINT
|
310
|
+
#define UNITY_EXEC_TIME_START() Unity.CurrentTestStartTime = UNITY_CLOCK_MS()
|
311
|
+
#define UNITY_EXEC_TIME_STOP() Unity.CurrentTestStopTime = UNITY_CLOCK_MS()
|
312
|
+
#define UNITY_PRINT_EXEC_TIME() { \
|
313
|
+
UNITY_UINT execTimeMs = (Unity.CurrentTestStopTime - Unity.CurrentTestStartTime); \
|
314
|
+
UnityPrint(" ("); \
|
315
|
+
UnityPrintNumberUnsigned(execTimeMs); \
|
316
|
+
UnityPrint(" ms)"); \
|
317
|
+
}
|
318
|
+
#elif defined(_WIN32)
|
319
|
+
#include <time.h>
|
320
|
+
#define UNITY_TIME_TYPE clock_t
|
321
|
+
#define UNITY_GET_TIME(t) t = (clock_t)((clock() * 1000) / CLOCKS_PER_SEC)
|
322
|
+
#define UNITY_EXEC_TIME_START() UNITY_GET_TIME(Unity.CurrentTestStartTime)
|
323
|
+
#define UNITY_EXEC_TIME_STOP() UNITY_GET_TIME(Unity.CurrentTestStopTime)
|
324
|
+
#define UNITY_PRINT_EXEC_TIME() { \
|
325
|
+
UNITY_UINT execTimeMs = (Unity.CurrentTestStopTime - Unity.CurrentTestStartTime); \
|
326
|
+
UnityPrint(" ("); \
|
327
|
+
UnityPrintNumberUnsigned(execTimeMs); \
|
328
|
+
UnityPrint(" ms)"); \
|
329
|
+
}
|
330
|
+
#elif defined(__unix__)
|
331
|
+
#include <time.h>
|
332
|
+
#define UNITY_TIME_TYPE struct timespec
|
333
|
+
#define UNITY_GET_TIME(t) clock_gettime(CLOCK_MONOTONIC, &t)
|
334
|
+
#define UNITY_EXEC_TIME_START() UNITY_GET_TIME(Unity.CurrentTestStartTime)
|
335
|
+
#define UNITY_EXEC_TIME_STOP() UNITY_GET_TIME(Unity.CurrentTestStopTime)
|
336
|
+
#define UNITY_PRINT_EXEC_TIME() { \
|
337
|
+
UNITY_UINT execTimeMs = ((Unity.CurrentTestStopTime.tv_sec - Unity.CurrentTestStartTime.tv_sec) * 1000L); \
|
338
|
+
execTimeMs += ((Unity.CurrentTestStopTime.tv_nsec - Unity.CurrentTestStartTime.tv_nsec) / 1000000L); \
|
339
|
+
UnityPrint(" ("); \
|
340
|
+
UnityPrintNumberUnsigned(execTimeMs); \
|
341
|
+
UnityPrint(" ms)"); \
|
342
|
+
}
|
343
|
+
#endif
|
344
|
+
#endif
|
345
|
+
#endif
|
346
|
+
|
347
|
+
#ifndef UNITY_EXEC_TIME_START
|
348
|
+
#define UNITY_EXEC_TIME_START() do{}while(0)
|
349
|
+
#endif
|
350
|
+
|
351
|
+
#ifndef UNITY_EXEC_TIME_STOP
|
352
|
+
#define UNITY_EXEC_TIME_STOP() do{}while(0)
|
353
|
+
#endif
|
354
|
+
|
355
|
+
#ifndef UNITY_TIME_TYPE
|
356
|
+
#define UNITY_TIME_TYPE UNITY_UINT
|
357
|
+
#endif
|
358
|
+
|
359
|
+
#ifndef UNITY_PRINT_EXEC_TIME
|
360
|
+
#define UNITY_PRINT_EXEC_TIME() do{}while(0)
|
361
|
+
#endif
|
362
|
+
|
363
|
+
/*-------------------------------------------------------
|
364
|
+
* Footprint
|
365
|
+
*-------------------------------------------------------*/
|
366
|
+
|
367
|
+
#ifndef UNITY_LINE_TYPE
|
368
|
+
#define UNITY_LINE_TYPE UNITY_UINT
|
369
|
+
#endif
|
370
|
+
|
371
|
+
#ifndef UNITY_COUNTER_TYPE
|
372
|
+
#define UNITY_COUNTER_TYPE UNITY_UINT
|
373
|
+
#endif
|
374
|
+
|
375
|
+
/*-------------------------------------------------------
|
376
|
+
* Internal Structs Needed
|
377
|
+
*-------------------------------------------------------*/
|
378
|
+
|
379
|
+
typedef void (*UnityTestFunction)(void);
|
380
|
+
|
381
|
+
#define UNITY_DISPLAY_RANGE_INT (0x10)
|
382
|
+
#define UNITY_DISPLAY_RANGE_UINT (0x20)
|
383
|
+
#define UNITY_DISPLAY_RANGE_HEX (0x40)
|
384
|
+
#define UNITY_DISPLAY_RANGE_CHAR (0x80)
|
385
|
+
|
386
|
+
typedef enum
|
387
|
+
{
|
388
|
+
UNITY_DISPLAY_STYLE_INT = (UNITY_INT_WIDTH / 8) + UNITY_DISPLAY_RANGE_INT,
|
389
|
+
UNITY_DISPLAY_STYLE_INT8 = 1 + UNITY_DISPLAY_RANGE_INT,
|
390
|
+
UNITY_DISPLAY_STYLE_INT16 = 2 + UNITY_DISPLAY_RANGE_INT,
|
391
|
+
UNITY_DISPLAY_STYLE_INT32 = 4 + UNITY_DISPLAY_RANGE_INT,
|
392
|
+
#ifdef UNITY_SUPPORT_64
|
393
|
+
UNITY_DISPLAY_STYLE_INT64 = 8 + UNITY_DISPLAY_RANGE_INT,
|
394
|
+
#endif
|
395
|
+
|
396
|
+
UNITY_DISPLAY_STYLE_UINT = (UNITY_INT_WIDTH / 8) + UNITY_DISPLAY_RANGE_UINT,
|
397
|
+
UNITY_DISPLAY_STYLE_UINT8 = 1 + UNITY_DISPLAY_RANGE_UINT,
|
398
|
+
UNITY_DISPLAY_STYLE_UINT16 = 2 + UNITY_DISPLAY_RANGE_UINT,
|
399
|
+
UNITY_DISPLAY_STYLE_UINT32 = 4 + UNITY_DISPLAY_RANGE_UINT,
|
400
|
+
#ifdef UNITY_SUPPORT_64
|
401
|
+
UNITY_DISPLAY_STYLE_UINT64 = 8 + UNITY_DISPLAY_RANGE_UINT,
|
402
|
+
#endif
|
403
|
+
|
404
|
+
UNITY_DISPLAY_STYLE_HEX8 = 1 + UNITY_DISPLAY_RANGE_HEX,
|
405
|
+
UNITY_DISPLAY_STYLE_HEX16 = 2 + UNITY_DISPLAY_RANGE_HEX,
|
406
|
+
UNITY_DISPLAY_STYLE_HEX32 = 4 + UNITY_DISPLAY_RANGE_HEX,
|
407
|
+
#ifdef UNITY_SUPPORT_64
|
408
|
+
UNITY_DISPLAY_STYLE_HEX64 = 8 + UNITY_DISPLAY_RANGE_HEX,
|
409
|
+
#endif
|
410
|
+
|
411
|
+
UNITY_DISPLAY_STYLE_CHAR = 1 + UNITY_DISPLAY_RANGE_CHAR + UNITY_DISPLAY_RANGE_INT,
|
412
|
+
|
413
|
+
UNITY_DISPLAY_STYLE_UNKNOWN
|
414
|
+
} UNITY_DISPLAY_STYLE_T;
|
415
|
+
|
416
|
+
typedef enum
|
417
|
+
{
|
418
|
+
UNITY_WITHIN = 0x0,
|
419
|
+
UNITY_EQUAL_TO = 0x1,
|
420
|
+
UNITY_GREATER_THAN = 0x2,
|
421
|
+
UNITY_GREATER_OR_EQUAL = 0x2 + UNITY_EQUAL_TO,
|
422
|
+
UNITY_SMALLER_THAN = 0x4,
|
423
|
+
UNITY_SMALLER_OR_EQUAL = 0x4 + UNITY_EQUAL_TO,
|
424
|
+
UNITY_NOT_EQUAL = 0x0,
|
425
|
+
UNITY_UNKNOWN
|
426
|
+
} UNITY_COMPARISON_T;
|
427
|
+
|
428
|
+
#ifndef UNITY_EXCLUDE_FLOAT
|
429
|
+
typedef enum UNITY_FLOAT_TRAIT
|
430
|
+
{
|
431
|
+
UNITY_FLOAT_IS_NOT_INF = 0,
|
432
|
+
UNITY_FLOAT_IS_INF,
|
433
|
+
UNITY_FLOAT_IS_NOT_NEG_INF,
|
434
|
+
UNITY_FLOAT_IS_NEG_INF,
|
435
|
+
UNITY_FLOAT_IS_NOT_NAN,
|
436
|
+
UNITY_FLOAT_IS_NAN,
|
437
|
+
UNITY_FLOAT_IS_NOT_DET,
|
438
|
+
UNITY_FLOAT_IS_DET,
|
439
|
+
UNITY_FLOAT_INVALID_TRAIT
|
440
|
+
} UNITY_FLOAT_TRAIT_T;
|
441
|
+
#endif
|
442
|
+
|
443
|
+
typedef enum
|
444
|
+
{
|
445
|
+
UNITY_ARRAY_TO_VAL = 0,
|
446
|
+
UNITY_ARRAY_TO_ARRAY,
|
447
|
+
UNITY_ARRAY_UNKNOWN
|
448
|
+
} UNITY_FLAGS_T;
|
449
|
+
|
450
|
+
struct UNITY_STORAGE_T
|
451
|
+
{
|
452
|
+
const char* TestFile;
|
453
|
+
const char* CurrentTestName;
|
454
|
+
#ifndef UNITY_EXCLUDE_DETAILS
|
455
|
+
const char* CurrentDetail1;
|
456
|
+
const char* CurrentDetail2;
|
457
|
+
#endif
|
458
|
+
UNITY_LINE_TYPE CurrentTestLineNumber;
|
459
|
+
UNITY_COUNTER_TYPE NumberOfTests;
|
460
|
+
UNITY_COUNTER_TYPE TestFailures;
|
461
|
+
UNITY_COUNTER_TYPE TestIgnores;
|
462
|
+
UNITY_COUNTER_TYPE CurrentTestFailed;
|
463
|
+
UNITY_COUNTER_TYPE CurrentTestIgnored;
|
464
|
+
#ifdef UNITY_INCLUDE_EXEC_TIME
|
465
|
+
UNITY_TIME_TYPE CurrentTestStartTime;
|
466
|
+
UNITY_TIME_TYPE CurrentTestStopTime;
|
467
|
+
#endif
|
468
|
+
#ifndef UNITY_EXCLUDE_SETJMP_H
|
469
|
+
jmp_buf AbortFrame;
|
470
|
+
#endif
|
471
|
+
};
|
472
|
+
|
473
|
+
extern struct UNITY_STORAGE_T Unity;
|
474
|
+
|
475
|
+
/*-------------------------------------------------------
|
476
|
+
* Test Suite Management
|
477
|
+
*-------------------------------------------------------*/
|
478
|
+
|
479
|
+
void UnityBegin(const char* filename);
|
480
|
+
int UnityEnd(void);
|
481
|
+
void UnitySetTestFile(const char* filename);
|
482
|
+
void UnityConcludeTest(void);
|
483
|
+
|
484
|
+
#ifndef RUN_TEST
|
485
|
+
void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int FuncLineNum);
|
486
|
+
#else
|
487
|
+
#define UNITY_SKIP_DEFAULT_RUNNER
|
488
|
+
#endif
|
489
|
+
|
490
|
+
/*-------------------------------------------------------
|
491
|
+
* Details Support
|
492
|
+
*-------------------------------------------------------*/
|
493
|
+
|
494
|
+
#ifdef UNITY_EXCLUDE_DETAILS
|
495
|
+
#define UNITY_CLR_DETAILS()
|
496
|
+
#define UNITY_SET_DETAIL(d1)
|
497
|
+
#define UNITY_SET_DETAILS(d1,d2)
|
498
|
+
#else
|
499
|
+
#define UNITY_CLR_DETAILS() { Unity.CurrentDetail1 = 0; Unity.CurrentDetail2 = 0; }
|
500
|
+
#define UNITY_SET_DETAIL(d1) { Unity.CurrentDetail1 = (d1); Unity.CurrentDetail2 = 0; }
|
501
|
+
#define UNITY_SET_DETAILS(d1,d2) { Unity.CurrentDetail1 = (d1); Unity.CurrentDetail2 = (d2); }
|
502
|
+
|
503
|
+
#ifndef UNITY_DETAIL1_NAME
|
504
|
+
#define UNITY_DETAIL1_NAME "Function"
|
505
|
+
#endif
|
506
|
+
|
507
|
+
#ifndef UNITY_DETAIL2_NAME
|
508
|
+
#define UNITY_DETAIL2_NAME "Argument"
|
509
|
+
#endif
|
510
|
+
#endif
|
511
|
+
|
512
|
+
#ifdef UNITY_PRINT_TEST_CONTEXT
|
513
|
+
void UNITY_PRINT_TEST_CONTEXT(void);
|
514
|
+
#endif
|
515
|
+
|
516
|
+
/*-------------------------------------------------------
|
517
|
+
* Test Output
|
518
|
+
*-------------------------------------------------------*/
|
519
|
+
|
520
|
+
void UnityPrint(const char* string);
|
521
|
+
|
522
|
+
#ifdef UNITY_INCLUDE_PRINT_FORMATTED
|
523
|
+
void UnityPrintF(const UNITY_LINE_TYPE line, const char* format, ...);
|
524
|
+
#endif
|
525
|
+
|
526
|
+
void UnityPrintLen(const char* string, const UNITY_UINT32 length);
|
527
|
+
void UnityPrintMask(const UNITY_UINT mask, const UNITY_UINT number);
|
528
|
+
void UnityPrintNumberByStyle(const UNITY_INT number, const UNITY_DISPLAY_STYLE_T style);
|
529
|
+
void UnityPrintNumber(const UNITY_INT number_to_print);
|
530
|
+
void UnityPrintNumberUnsigned(const UNITY_UINT number);
|
531
|
+
void UnityPrintNumberHex(const UNITY_UINT number, const char nibbles_to_print);
|
532
|
+
|
533
|
+
#ifndef UNITY_EXCLUDE_FLOAT_PRINT
|
534
|
+
void UnityPrintFloat(const UNITY_DOUBLE input_number);
|
535
|
+
#endif
|
536
|
+
|
537
|
+
/*-------------------------------------------------------
|
538
|
+
* Test Assertion Functions
|
539
|
+
*-------------------------------------------------------
|
540
|
+
* Use the macros below this section instead of calling
|
541
|
+
* these directly. The macros have a consistent naming
|
542
|
+
* convention and will pull in file and line information
|
543
|
+
* for you. */
|
544
|
+
|
545
|
+
void UnityAssertEqualNumber(const UNITY_INT expected,
|
546
|
+
const UNITY_INT actual,
|
547
|
+
const char* msg,
|
548
|
+
const UNITY_LINE_TYPE lineNumber,
|
549
|
+
const UNITY_DISPLAY_STYLE_T style);
|
550
|
+
|
551
|
+
void UnityAssertGreaterOrLessOrEqualNumber(const UNITY_INT threshold,
|
552
|
+
const UNITY_INT actual,
|
553
|
+
const UNITY_COMPARISON_T compare,
|
554
|
+
const char *msg,
|
555
|
+
const UNITY_LINE_TYPE lineNumber,
|
556
|
+
const UNITY_DISPLAY_STYLE_T style);
|
557
|
+
|
558
|
+
void UnityAssertEqualIntArray(UNITY_INTERNAL_PTR expected,
|
559
|
+
UNITY_INTERNAL_PTR actual,
|
560
|
+
const UNITY_UINT32 num_elements,
|
561
|
+
const char* msg,
|
562
|
+
const UNITY_LINE_TYPE lineNumber,
|
563
|
+
const UNITY_DISPLAY_STYLE_T style,
|
564
|
+
const UNITY_FLAGS_T flags);
|
565
|
+
|
566
|
+
void UnityAssertBits(const UNITY_INT mask,
|
567
|
+
const UNITY_INT expected,
|
568
|
+
const UNITY_INT actual,
|
569
|
+
const char* msg,
|
570
|
+
const UNITY_LINE_TYPE lineNumber);
|
571
|
+
|
572
|
+
void UnityAssertEqualString(const char* expected,
|
573
|
+
const char* actual,
|
574
|
+
const char* msg,
|
575
|
+
const UNITY_LINE_TYPE lineNumber);
|
576
|
+
|
577
|
+
void UnityAssertEqualStringLen(const char* expected,
|
578
|
+
const char* actual,
|
579
|
+
const UNITY_UINT32 length,
|
580
|
+
const char* msg,
|
581
|
+
const UNITY_LINE_TYPE lineNumber);
|
582
|
+
|
583
|
+
void UnityAssertEqualStringArray( UNITY_INTERNAL_PTR expected,
|
584
|
+
const char** actual,
|
585
|
+
const UNITY_UINT32 num_elements,
|
586
|
+
const char* msg,
|
587
|
+
const UNITY_LINE_TYPE lineNumber,
|
588
|
+
const UNITY_FLAGS_T flags);
|
589
|
+
|
590
|
+
void UnityAssertEqualMemory( UNITY_INTERNAL_PTR expected,
|
591
|
+
UNITY_INTERNAL_PTR actual,
|
592
|
+
const UNITY_UINT32 length,
|
593
|
+
const UNITY_UINT32 num_elements,
|
594
|
+
const char* msg,
|
595
|
+
const UNITY_LINE_TYPE lineNumber,
|
596
|
+
const UNITY_FLAGS_T flags);
|
597
|
+
|
598
|
+
void UnityAssertNumbersWithin(const UNITY_UINT delta,
|
599
|
+
const UNITY_INT expected,
|
600
|
+
const UNITY_INT actual,
|
601
|
+
const char* msg,
|
602
|
+
const UNITY_LINE_TYPE lineNumber,
|
603
|
+
const UNITY_DISPLAY_STYLE_T style);
|
604
|
+
|
605
|
+
void UnityAssertNumbersArrayWithin(const UNITY_UINT delta,
|
606
|
+
UNITY_INTERNAL_PTR expected,
|
607
|
+
UNITY_INTERNAL_PTR actual,
|
608
|
+
const UNITY_UINT32 num_elements,
|
609
|
+
const char* msg,
|
610
|
+
const UNITY_LINE_TYPE lineNumber,
|
611
|
+
const UNITY_DISPLAY_STYLE_T style,
|
612
|
+
const UNITY_FLAGS_T flags);
|
613
|
+
|
614
|
+
void UnityFail(const char* message, const UNITY_LINE_TYPE line);
|
615
|
+
void UnityIgnore(const char* message, const UNITY_LINE_TYPE line);
|
616
|
+
void UnityMessage(const char* message, const UNITY_LINE_TYPE line);
|
617
|
+
|
618
|
+
#ifndef UNITY_EXCLUDE_FLOAT
|
619
|
+
void UnityAssertFloatsWithin(const UNITY_FLOAT delta,
|
620
|
+
const UNITY_FLOAT expected,
|
621
|
+
const UNITY_FLOAT actual,
|
622
|
+
const char* msg,
|
623
|
+
const UNITY_LINE_TYPE lineNumber);
|
624
|
+
|
625
|
+
void UnityAssertEqualFloatArray(UNITY_PTR_ATTRIBUTE const UNITY_FLOAT* expected,
|
626
|
+
UNITY_PTR_ATTRIBUTE const UNITY_FLOAT* actual,
|
627
|
+
const UNITY_UINT32 num_elements,
|
628
|
+
const char* msg,
|
629
|
+
const UNITY_LINE_TYPE lineNumber,
|
630
|
+
const UNITY_FLAGS_T flags);
|
631
|
+
|
632
|
+
void UnityAssertFloatSpecial(const UNITY_FLOAT actual,
|
633
|
+
const char* msg,
|
634
|
+
const UNITY_LINE_TYPE lineNumber,
|
635
|
+
const UNITY_FLOAT_TRAIT_T style);
|
636
|
+
#endif
|
637
|
+
|
638
|
+
#ifndef UNITY_EXCLUDE_DOUBLE
|
639
|
+
void UnityAssertDoublesWithin(const UNITY_DOUBLE delta,
|
640
|
+
const UNITY_DOUBLE expected,
|
641
|
+
const UNITY_DOUBLE actual,
|
642
|
+
const char* msg,
|
643
|
+
const UNITY_LINE_TYPE lineNumber);
|
644
|
+
|
645
|
+
void UnityAssertEqualDoubleArray(UNITY_PTR_ATTRIBUTE const UNITY_DOUBLE* expected,
|
646
|
+
UNITY_PTR_ATTRIBUTE const UNITY_DOUBLE* actual,
|
647
|
+
const UNITY_UINT32 num_elements,
|
648
|
+
const char* msg,
|
649
|
+
const UNITY_LINE_TYPE lineNumber,
|
650
|
+
const UNITY_FLAGS_T flags);
|
651
|
+
|
652
|
+
void UnityAssertDoubleSpecial(const UNITY_DOUBLE actual,
|
653
|
+
const char* msg,
|
654
|
+
const UNITY_LINE_TYPE lineNumber,
|
655
|
+
const UNITY_FLOAT_TRAIT_T style);
|
656
|
+
#endif
|
657
|
+
|
658
|
+
/*-------------------------------------------------------
|
659
|
+
* Helpers
|
660
|
+
*-------------------------------------------------------*/
|
661
|
+
|
662
|
+
UNITY_INTERNAL_PTR UnityNumToPtr(const UNITY_INT num, const UNITY_UINT8 size);
|
663
|
+
#ifndef UNITY_EXCLUDE_FLOAT
|
664
|
+
UNITY_INTERNAL_PTR UnityFloatToPtr(const float num);
|
665
|
+
#endif
|
666
|
+
#ifndef UNITY_EXCLUDE_DOUBLE
|
667
|
+
UNITY_INTERNAL_PTR UnityDoubleToPtr(const double num);
|
668
|
+
#endif
|
669
|
+
|
670
|
+
/*-------------------------------------------------------
|
671
|
+
* Error Strings We Might Need
|
672
|
+
*-------------------------------------------------------*/
|
673
|
+
|
674
|
+
extern const char UnityStrOk[];
|
675
|
+
extern const char UnityStrPass[];
|
676
|
+
extern const char UnityStrFail[];
|
677
|
+
extern const char UnityStrIgnore[];
|
678
|
+
|
679
|
+
extern const char UnityStrErrFloat[];
|
680
|
+
extern const char UnityStrErrDouble[];
|
681
|
+
extern const char UnityStrErr64[];
|
682
|
+
extern const char UnityStrErrShorthand[];
|
683
|
+
|
684
|
+
/*-------------------------------------------------------
|
685
|
+
* Test Running Macros
|
686
|
+
*-------------------------------------------------------*/
|
687
|
+
|
688
|
+
#ifndef UNITY_EXCLUDE_SETJMP_H
|
689
|
+
#define TEST_PROTECT() (setjmp(Unity.AbortFrame) == 0)
|
690
|
+
#define TEST_ABORT() longjmp(Unity.AbortFrame, 1)
|
691
|
+
#else
|
692
|
+
#define TEST_PROTECT() 1
|
693
|
+
#define TEST_ABORT() return
|
694
|
+
#endif
|
695
|
+
|
696
|
+
/* This tricky series of macros gives us an optional line argument to treat it as RUN_TEST(func, num=__LINE__) */
|
697
|
+
#ifndef RUN_TEST
|
698
|
+
#ifdef __STDC_VERSION__
|
699
|
+
#if __STDC_VERSION__ >= 199901L
|
700
|
+
#define UNITY_SUPPORT_VARIADIC_MACROS
|
701
|
+
#endif
|
702
|
+
#endif
|
703
|
+
#ifdef UNITY_SUPPORT_VARIADIC_MACROS
|
704
|
+
#define RUN_TEST(...) UnityDefaultTestRun(RUN_TEST_FIRST(__VA_ARGS__), RUN_TEST_SECOND(__VA_ARGS__))
|
705
|
+
#define RUN_TEST_FIRST(...) RUN_TEST_FIRST_HELPER(__VA_ARGS__, throwaway)
|
706
|
+
#define RUN_TEST_FIRST_HELPER(first, ...) (first), #first
|
707
|
+
#define RUN_TEST_SECOND(...) RUN_TEST_SECOND_HELPER(__VA_ARGS__, __LINE__, throwaway)
|
708
|
+
#define RUN_TEST_SECOND_HELPER(first, second, ...) (second)
|
709
|
+
#endif
|
710
|
+
#endif
|
711
|
+
|
712
|
+
/* If we can't do the tricky version, we'll just have to require them to always include the line number */
|
713
|
+
#ifndef RUN_TEST
|
714
|
+
#ifdef CMOCK
|
715
|
+
#define RUN_TEST(func, num) UnityDefaultTestRun(func, #func, num)
|
716
|
+
#else
|
717
|
+
#define RUN_TEST(func) UnityDefaultTestRun(func, #func, __LINE__)
|
718
|
+
#endif
|
719
|
+
#endif
|
720
|
+
|
721
|
+
#define TEST_LINE_NUM (Unity.CurrentTestLineNumber)
|
722
|
+
#define TEST_IS_IGNORED (Unity.CurrentTestIgnored)
|
723
|
+
#define UNITY_NEW_TEST(a) \
|
724
|
+
Unity.CurrentTestName = (a); \
|
725
|
+
Unity.CurrentTestLineNumber = (UNITY_LINE_TYPE)(__LINE__); \
|
726
|
+
Unity.NumberOfTests++;
|
727
|
+
|
728
|
+
#ifndef UNITY_BEGIN
|
729
|
+
#define UNITY_BEGIN() UnityBegin(__FILE__)
|
730
|
+
#endif
|
731
|
+
|
732
|
+
#ifndef UNITY_END
|
733
|
+
#define UNITY_END() UnityEnd()
|
734
|
+
#endif
|
735
|
+
|
736
|
+
#ifndef UNITY_SHORTHAND_AS_INT
|
737
|
+
#ifndef UNITY_SHORTHAND_AS_MEM
|
738
|
+
#ifndef UNITY_SHORTHAND_AS_NONE
|
739
|
+
#ifndef UNITY_SHORTHAND_AS_RAW
|
740
|
+
#define UNITY_SHORTHAND_AS_OLD
|
741
|
+
#endif
|
742
|
+
#endif
|
743
|
+
#endif
|
744
|
+
#endif
|
745
|
+
|
746
|
+
/*-----------------------------------------------
|
747
|
+
* Command Line Argument Support
|
748
|
+
*-----------------------------------------------*/
|
749
|
+
|
750
|
+
#ifdef UNITY_USE_COMMAND_LINE_ARGS
|
751
|
+
int UnityParseOptions(int argc, char** argv);
|
752
|
+
int UnityTestMatches(void);
|
753
|
+
#endif
|
754
|
+
|
755
|
+
/*-------------------------------------------------------
|
756
|
+
* Basic Fail and Ignore
|
757
|
+
*-------------------------------------------------------*/
|
758
|
+
|
759
|
+
#define UNITY_TEST_FAIL(line, message) UnityFail( (message), (UNITY_LINE_TYPE)(line))
|
760
|
+
#define UNITY_TEST_IGNORE(line, message) UnityIgnore( (message), (UNITY_LINE_TYPE)(line))
|
761
|
+
|
762
|
+
/*-------------------------------------------------------
|
763
|
+
* Test Asserts
|
764
|
+
*-------------------------------------------------------*/
|
765
|
+
|
766
|
+
#define UNITY_TEST_ASSERT(condition, line, message) do {if (condition) {} else {UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), (message));}} while(0)
|
767
|
+
#define UNITY_TEST_ASSERT_NULL(pointer, line, message) UNITY_TEST_ASSERT(((pointer) == NULL), (UNITY_LINE_TYPE)(line), (message))
|
768
|
+
#define UNITY_TEST_ASSERT_NOT_NULL(pointer, line, message) UNITY_TEST_ASSERT(((pointer) != NULL), (UNITY_LINE_TYPE)(line), (message))
|
769
|
+
#define UNITY_TEST_ASSERT_EMPTY(pointer, line, message) UNITY_TEST_ASSERT(((pointer[0]) == 0), (UNITY_LINE_TYPE)(line), (message))
|
770
|
+
#define UNITY_TEST_ASSERT_NOT_EMPTY(pointer, line, message) UNITY_TEST_ASSERT(((pointer[0]) != 0), (UNITY_LINE_TYPE)(line), (message))
|
771
|
+
|
772
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT)
|
773
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT8(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(UNITY_INT8 )(expected), (UNITY_INT)(UNITY_INT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8)
|
774
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT16(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(UNITY_INT16)(expected), (UNITY_INT)(UNITY_INT16)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16)
|
775
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT32(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(UNITY_INT32)(expected), (UNITY_INT)(UNITY_INT32)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32)
|
776
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT)
|
777
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT8(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(UNITY_UINT8 )(expected), (UNITY_INT)(UNITY_UINT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8)
|
778
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT16(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(UNITY_UINT16)(expected), (UNITY_INT)(UNITY_UINT16)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16)
|
779
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT32(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(UNITY_UINT32)(expected), (UNITY_INT)(UNITY_UINT32)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32)
|
780
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX8(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(UNITY_INT8 )(expected), (UNITY_INT)(UNITY_INT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8)
|
781
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX16(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(UNITY_INT16)(expected), (UNITY_INT)(UNITY_INT16)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16)
|
782
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX32(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(UNITY_INT32)(expected), (UNITY_INT)(UNITY_INT32)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32)
|
783
|
+
#define UNITY_TEST_ASSERT_EQUAL_CHAR(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(UNITY_INT8 )(expected), (UNITY_INT)(UNITY_INT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR)
|
784
|
+
#define UNITY_TEST_ASSERT_BITS(mask, expected, actual, line, message) UnityAssertBits((UNITY_INT)(mask), (UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line))
|
785
|
+
|
786
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_INT(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT)
|
787
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_INT8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT8 )(threshold), (UNITY_INT)(UNITY_INT8 )(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8)
|
788
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_INT16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT16)(threshold), (UNITY_INT)(UNITY_INT16)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16)
|
789
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_INT32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT32)(threshold), (UNITY_INT)(UNITY_INT32)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32)
|
790
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_UINT(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT)
|
791
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_UINT8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT8 )(threshold), (UNITY_INT)(UNITY_UINT8 )(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8)
|
792
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_UINT16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT16)(threshold), (UNITY_INT)(UNITY_UINT16)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16)
|
793
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_UINT32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT32)(threshold), (UNITY_INT)(UNITY_UINT32)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32)
|
794
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_HEX8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT8 )(threshold), (UNITY_INT)(UNITY_UINT8 )(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8)
|
795
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_HEX16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT16)(threshold), (UNITY_INT)(UNITY_UINT16)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16)
|
796
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_HEX32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT32)(threshold), (UNITY_INT)(UNITY_UINT32)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32)
|
797
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_CHAR(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT8 )(threshold), (UNITY_INT)(UNITY_INT8 )(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR)
|
798
|
+
|
799
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_INT(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT)
|
800
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_INT8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT8 )(threshold), (UNITY_INT)(UNITY_INT8 )(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8)
|
801
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_INT16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT16)(threshold), (UNITY_INT)(UNITY_INT16)(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16)
|
802
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_INT32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT32)(threshold), (UNITY_INT)(UNITY_INT32)(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32)
|
803
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_UINT(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT)
|
804
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_UINT8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT8 )(threshold), (UNITY_INT)(UNITY_UINT8 )(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8)
|
805
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_UINT16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT16)(threshold), (UNITY_INT)(UNITY_UINT16)(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16)
|
806
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_UINT32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT32)(threshold), (UNITY_INT)(UNITY_UINT32)(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32)
|
807
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_HEX8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT8 )(threshold), (UNITY_INT)(UNITY_UINT8 )(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8)
|
808
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_HEX16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT16)(threshold), (UNITY_INT)(UNITY_UINT16)(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16)
|
809
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_HEX32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT32)(threshold), (UNITY_INT)(UNITY_UINT32)(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32)
|
810
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_CHAR(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT8 )(threshold), (UNITY_INT)(UNITY_INT8 )(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR)
|
811
|
+
|
812
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_INT(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT)
|
813
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_INT8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT8 )(threshold), (UNITY_INT)(UNITY_INT8 )(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8)
|
814
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_INT16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT16)(threshold), (UNITY_INT)(UNITY_INT16)(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16)
|
815
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_INT32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT32)(threshold), (UNITY_INT)(UNITY_INT32)(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32)
|
816
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_UINT(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT)
|
817
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_UINT8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT8 )(threshold), (UNITY_INT)(UNITY_UINT8 )(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8)
|
818
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_UINT16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT16)(threshold), (UNITY_INT)(UNITY_UINT16)(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16)
|
819
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_UINT32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT32)(threshold), (UNITY_INT)(UNITY_UINT32)(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32)
|
820
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_HEX8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT8 )(threshold), (UNITY_INT)(UNITY_UINT8 )(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8)
|
821
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_HEX16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT16)(threshold), (UNITY_INT)(UNITY_UINT16)(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16)
|
822
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_HEX32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT32)(threshold), (UNITY_INT)(UNITY_UINT32)(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32)
|
823
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_CHAR(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT8 )(threshold), (UNITY_INT)(UNITY_INT8 )(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR)
|
824
|
+
|
825
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT) (threshold), (UNITY_INT) (actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT)
|
826
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT8 ) (threshold), (UNITY_INT)(UNITY_INT8 ) (actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8)
|
827
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT16) (threshold), (UNITY_INT)(UNITY_INT16) (actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16)
|
828
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT32) (threshold), (UNITY_INT)(UNITY_INT32) (actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32)
|
829
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT) (threshold), (UNITY_INT) (actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT)
|
830
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT8 )(threshold), (UNITY_INT)(UNITY_UINT8 )(actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8)
|
831
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT16)(threshold), (UNITY_INT)(UNITY_UINT16)(actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16)
|
832
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT32)(threshold), (UNITY_INT)(UNITY_UINT32)(actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32)
|
833
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_HEX8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT8 )(threshold), (UNITY_INT)(UNITY_UINT8 )(actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8)
|
834
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_HEX16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT16)(threshold), (UNITY_INT)(UNITY_UINT16)(actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16)
|
835
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_HEX32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT32)(threshold), (UNITY_INT)(UNITY_UINT32)(actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32)
|
836
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_CHAR(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT8 ) (threshold), (UNITY_INT)(UNITY_INT8 ) (actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR)
|
837
|
+
|
838
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT) (threshold), (UNITY_INT) (actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT)
|
839
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT8 )(threshold), (UNITY_INT)(UNITY_INT8 ) (actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8)
|
840
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT16)(threshold), (UNITY_INT)(UNITY_INT16) (actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16)
|
841
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT32)(threshold), (UNITY_INT)(UNITY_INT32) (actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32)
|
842
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT) (threshold), (UNITY_INT) (actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT)
|
843
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT8 )(threshold), (UNITY_INT)(UNITY_UINT8 )(actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8)
|
844
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT16)(threshold), (UNITY_INT)(UNITY_UINT16)(actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16)
|
845
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT32)(threshold), (UNITY_INT)(UNITY_UINT32)(actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32)
|
846
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEX8(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT8 )(threshold), (UNITY_INT)(UNITY_UINT8 )(actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8)
|
847
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEX16(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT16)(threshold), (UNITY_INT)(UNITY_UINT16)(actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16)
|
848
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEX32(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_UINT32)(threshold), (UNITY_INT)(UNITY_UINT32)(actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32)
|
849
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_CHAR(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(UNITY_INT8 )(threshold), (UNITY_INT)(UNITY_INT8 ) (actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR)
|
850
|
+
|
851
|
+
#define UNITY_TEST_ASSERT_INT_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin( (delta), (UNITY_INT) (expected), (UNITY_INT) (actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT)
|
852
|
+
#define UNITY_TEST_ASSERT_INT8_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((UNITY_UINT8 )(delta), (UNITY_INT)(UNITY_INT8 ) (expected), (UNITY_INT)(UNITY_INT8 ) (actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8)
|
853
|
+
#define UNITY_TEST_ASSERT_INT16_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((UNITY_UINT16)(delta), (UNITY_INT)(UNITY_INT16) (expected), (UNITY_INT)(UNITY_INT16) (actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16)
|
854
|
+
#define UNITY_TEST_ASSERT_INT32_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((UNITY_UINT32)(delta), (UNITY_INT)(UNITY_INT32) (expected), (UNITY_INT)(UNITY_INT32) (actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32)
|
855
|
+
#define UNITY_TEST_ASSERT_UINT_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin( (delta), (UNITY_INT) (expected), (UNITY_INT) (actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT)
|
856
|
+
#define UNITY_TEST_ASSERT_UINT8_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((UNITY_UINT8 )(delta), (UNITY_INT)(UNITY_UINT)(UNITY_UINT8 )(expected), (UNITY_INT)(UNITY_UINT)(UNITY_UINT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8)
|
857
|
+
#define UNITY_TEST_ASSERT_UINT16_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((UNITY_UINT16)(delta), (UNITY_INT)(UNITY_UINT)(UNITY_UINT16)(expected), (UNITY_INT)(UNITY_UINT)(UNITY_UINT16)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16)
|
858
|
+
#define UNITY_TEST_ASSERT_UINT32_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((UNITY_UINT32)(delta), (UNITY_INT)(UNITY_UINT)(UNITY_UINT32)(expected), (UNITY_INT)(UNITY_UINT)(UNITY_UINT32)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32)
|
859
|
+
#define UNITY_TEST_ASSERT_HEX8_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((UNITY_UINT8 )(delta), (UNITY_INT)(UNITY_UINT)(UNITY_UINT8 )(expected), (UNITY_INT)(UNITY_UINT)(UNITY_UINT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8)
|
860
|
+
#define UNITY_TEST_ASSERT_HEX16_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((UNITY_UINT16)(delta), (UNITY_INT)(UNITY_UINT)(UNITY_UINT16)(expected), (UNITY_INT)(UNITY_UINT)(UNITY_UINT16)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16)
|
861
|
+
#define UNITY_TEST_ASSERT_HEX32_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((UNITY_UINT32)(delta), (UNITY_INT)(UNITY_UINT)(UNITY_UINT32)(expected), (UNITY_INT)(UNITY_UINT)(UNITY_UINT32)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32)
|
862
|
+
#define UNITY_TEST_ASSERT_CHAR_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((UNITY_UINT8 )(delta), (UNITY_INT)(UNITY_INT8 ) (expected), (UNITY_INT)(UNITY_INT8 ) (actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR)
|
863
|
+
|
864
|
+
#define UNITY_TEST_ASSERT_INT_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin( (delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT, UNITY_ARRAY_TO_ARRAY)
|
865
|
+
#define UNITY_TEST_ASSERT_INT8_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT8 )(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8, UNITY_ARRAY_TO_ARRAY)
|
866
|
+
#define UNITY_TEST_ASSERT_INT16_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT16)(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16, UNITY_ARRAY_TO_ARRAY)
|
867
|
+
#define UNITY_TEST_ASSERT_INT32_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT32)(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32, UNITY_ARRAY_TO_ARRAY)
|
868
|
+
#define UNITY_TEST_ASSERT_UINT_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin( (delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT, UNITY_ARRAY_TO_ARRAY)
|
869
|
+
#define UNITY_TEST_ASSERT_UINT8_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin( (UNITY_UINT16)(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8, UNITY_ARRAY_TO_ARRAY)
|
870
|
+
#define UNITY_TEST_ASSERT_UINT16_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT16)(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16, UNITY_ARRAY_TO_ARRAY)
|
871
|
+
#define UNITY_TEST_ASSERT_UINT32_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT32)(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32, UNITY_ARRAY_TO_ARRAY)
|
872
|
+
#define UNITY_TEST_ASSERT_HEX8_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT8 )(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8, UNITY_ARRAY_TO_ARRAY)
|
873
|
+
#define UNITY_TEST_ASSERT_HEX16_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT16)(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16, UNITY_ARRAY_TO_ARRAY)
|
874
|
+
#define UNITY_TEST_ASSERT_HEX32_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT32)(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32, UNITY_ARRAY_TO_ARRAY)
|
875
|
+
#define UNITY_TEST_ASSERT_CHAR_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT8 )(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR, UNITY_ARRAY_TO_ARRAY)
|
876
|
+
|
877
|
+
|
878
|
+
#define UNITY_TEST_ASSERT_EQUAL_PTR(expected, actual, line, message) UnityAssertEqualNumber((UNITY_PTR_TO_INT)(expected), (UNITY_PTR_TO_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_POINTER)
|
879
|
+
#define UNITY_TEST_ASSERT_EQUAL_STRING(expected, actual, line, message) UnityAssertEqualString((const char*)(expected), (const char*)(actual), (message), (UNITY_LINE_TYPE)(line))
|
880
|
+
#define UNITY_TEST_ASSERT_EQUAL_STRING_LEN(expected, actual, len, line, message) UnityAssertEqualStringLen((const char*)(expected), (const char*)(actual), (UNITY_UINT32)(len), (message), (UNITY_LINE_TYPE)(line))
|
881
|
+
#define UNITY_TEST_ASSERT_EQUAL_MEMORY(expected, actual, len, line, message) UnityAssertEqualMemory((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(len), 1, (message), (UNITY_LINE_TYPE)(line), UNITY_ARRAY_TO_ARRAY)
|
882
|
+
|
883
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT, UNITY_ARRAY_TO_ARRAY)
|
884
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8, UNITY_ARRAY_TO_ARRAY)
|
885
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16, UNITY_ARRAY_TO_ARRAY)
|
886
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32, UNITY_ARRAY_TO_ARRAY)
|
887
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT, UNITY_ARRAY_TO_ARRAY)
|
888
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8, UNITY_ARRAY_TO_ARRAY)
|
889
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16, UNITY_ARRAY_TO_ARRAY)
|
890
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32, UNITY_ARRAY_TO_ARRAY)
|
891
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8, UNITY_ARRAY_TO_ARRAY)
|
892
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX16_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16, UNITY_ARRAY_TO_ARRAY)
|
893
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32, UNITY_ARRAY_TO_ARRAY)
|
894
|
+
#define UNITY_TEST_ASSERT_EQUAL_PTR_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_POINTER, UNITY_ARRAY_TO_ARRAY)
|
895
|
+
#define UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualStringArray((UNITY_INTERNAL_PTR)(expected), (const char**)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_ARRAY_TO_ARRAY)
|
896
|
+
#define UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY(expected, actual, len, num_elements, line, message) UnityAssertEqualMemory((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(len), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_ARRAY_TO_ARRAY)
|
897
|
+
#define UNITY_TEST_ASSERT_EQUAL_CHAR_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR, UNITY_ARRAY_TO_ARRAY)
|
898
|
+
|
899
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_INT(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT) (expected), (UNITY_INT_WIDTH / 8)), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT, UNITY_ARRAY_TO_VAL)
|
900
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_INT8(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT8 )(expected), 1), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8, UNITY_ARRAY_TO_VAL)
|
901
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_INT16(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT16 )(expected), 2), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16, UNITY_ARRAY_TO_VAL)
|
902
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_INT32(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT32 )(expected), 4), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32, UNITY_ARRAY_TO_VAL)
|
903
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_UINT(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT) (expected), (UNITY_INT_WIDTH / 8)), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT, UNITY_ARRAY_TO_VAL)
|
904
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_UINT8(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_UINT8 )(expected), 1), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8, UNITY_ARRAY_TO_VAL)
|
905
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_UINT16(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_UINT16)(expected), 2), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16, UNITY_ARRAY_TO_VAL)
|
906
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_UINT32(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_UINT32)(expected), 4), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32, UNITY_ARRAY_TO_VAL)
|
907
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_HEX8(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT8 )(expected), 1), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8, UNITY_ARRAY_TO_VAL)
|
908
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_HEX16(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT16 )(expected), 2), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16, UNITY_ARRAY_TO_VAL)
|
909
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_HEX32(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT32 )(expected), 4), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32, UNITY_ARRAY_TO_VAL)
|
910
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_PTR(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_PTR_TO_INT) (expected), (UNITY_POINTER_WIDTH / 8)), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_POINTER, UNITY_ARRAY_TO_VAL)
|
911
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_STRING(expected, actual, num_elements, line, message) UnityAssertEqualStringArray((UNITY_INTERNAL_PTR)(expected), (const char**)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_ARRAY_TO_VAL)
|
912
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_MEMORY(expected, actual, len, num_elements, line, message) UnityAssertEqualMemory((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(len), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_ARRAY_TO_VAL)
|
913
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_CHAR(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT8 )(expected), 1), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR, UNITY_ARRAY_TO_VAL)
|
914
|
+
|
915
|
+
#ifdef UNITY_SUPPORT_64
|
916
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT64(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64)
|
917
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT64(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64)
|
918
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX64(expected, actual, line, message) UnityAssertEqualNumber((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64)
|
919
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64, UNITY_ARRAY_TO_ARRAY)
|
920
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64, UNITY_ARRAY_TO_ARRAY)
|
921
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64, UNITY_ARRAY_TO_ARRAY)
|
922
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_INT64(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT64)(expected), 8), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64, UNITY_ARRAY_TO_VAL)
|
923
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_UINT64(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_UINT64)(expected), 8), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64, UNITY_ARRAY_TO_VAL)
|
924
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_HEX64(expected, actual, num_elements, line, message) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT64)(expected), 8), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64, UNITY_ARRAY_TO_VAL)
|
925
|
+
#define UNITY_TEST_ASSERT_INT64_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((delta), (UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64)
|
926
|
+
#define UNITY_TEST_ASSERT_UINT64_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((delta), (UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64)
|
927
|
+
#define UNITY_TEST_ASSERT_HEX64_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((delta), (UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64)
|
928
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_INT64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64)
|
929
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_UINT64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64)
|
930
|
+
#define UNITY_TEST_ASSERT_NOT_EQUAL_HEX64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64)
|
931
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_INT64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64)
|
932
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_UINT64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64)
|
933
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_HEX64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_GREATER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64)
|
934
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64)
|
935
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64)
|
936
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_HEX64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_GREATER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64)
|
937
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_INT64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64)
|
938
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_UINT64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64)
|
939
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_HEX64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_SMALLER_THAN, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64)
|
940
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64)
|
941
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64)
|
942
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEX64(threshold, actual, line, message) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_SMALLER_OR_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64)
|
943
|
+
#define UNITY_TEST_ASSERT_INT64_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT64)(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64, UNITY_ARRAY_TO_ARRAY)
|
944
|
+
#define UNITY_TEST_ASSERT_UINT64_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT64)(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64, UNITY_ARRAY_TO_ARRAY)
|
945
|
+
#define UNITY_TEST_ASSERT_HEX64_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UnityAssertNumbersArrayWithin((UNITY_UINT64)(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64, UNITY_ARRAY_TO_ARRAY)
|
946
|
+
#else
|
947
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT64(expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
948
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT64(expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
949
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX64(expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
950
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
951
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
952
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
953
|
+
#define UNITY_TEST_ASSERT_INT64_WITHIN(delta, expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
954
|
+
#define UNITY_TEST_ASSERT_UINT64_WITHIN(delta, expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
955
|
+
#define UNITY_TEST_ASSERT_HEX64_WITHIN(delta, expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
956
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_INT64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
957
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_UINT64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
958
|
+
#define UNITY_TEST_ASSERT_GREATER_THAN_HEX64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
959
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
960
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
961
|
+
#define UNITY_TEST_ASSERT_GREATER_OR_EQUAL_HEX64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
962
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_INT64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
963
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_UINT64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
964
|
+
#define UNITY_TEST_ASSERT_SMALLER_THAN_HEX64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
965
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
966
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
967
|
+
#define UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEX64(threshold, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
968
|
+
#define UNITY_TEST_ASSERT_INT64_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
969
|
+
#define UNITY_TEST_ASSERT_UINT64_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
970
|
+
#define UNITY_TEST_ASSERT_HEX64_ARRAY_WITHIN(delta, expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErr64)
|
971
|
+
#endif
|
972
|
+
|
973
|
+
#ifdef UNITY_EXCLUDE_FLOAT
|
974
|
+
#define UNITY_TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
975
|
+
#define UNITY_TEST_ASSERT_EQUAL_FLOAT(expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
976
|
+
#define UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
977
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_FLOAT(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
978
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
979
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
980
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NAN(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
981
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
982
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
983
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
984
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
985
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrFloat)
|
986
|
+
#else
|
987
|
+
#define UNITY_TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual, line, message) UnityAssertFloatsWithin((UNITY_FLOAT)(delta), (UNITY_FLOAT)(expected), (UNITY_FLOAT)(actual), (message), (UNITY_LINE_TYPE)(line))
|
988
|
+
#define UNITY_TEST_ASSERT_EQUAL_FLOAT(expected, actual, line, message) UNITY_TEST_ASSERT_FLOAT_WITHIN((UNITY_FLOAT)(expected) * (UNITY_FLOAT)UNITY_FLOAT_PRECISION, (UNITY_FLOAT)(expected), (UNITY_FLOAT)(actual), (UNITY_LINE_TYPE)(line), (message))
|
989
|
+
#define UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualFloatArray((UNITY_FLOAT*)(expected), (UNITY_FLOAT*)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_ARRAY_TO_ARRAY)
|
990
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_FLOAT(expected, actual, num_elements, line, message) UnityAssertEqualFloatArray(UnityFloatToPtr(expected), (UNITY_FLOAT*)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_ARRAY_TO_VAL)
|
991
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_INF(actual, line, message) UnityAssertFloatSpecial((UNITY_FLOAT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_INF)
|
992
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF(actual, line, message) UnityAssertFloatSpecial((UNITY_FLOAT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NEG_INF)
|
993
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NAN(actual, line, message) UnityAssertFloatSpecial((UNITY_FLOAT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NAN)
|
994
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE(actual, line, message) UnityAssertFloatSpecial((UNITY_FLOAT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_DET)
|
995
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF(actual, line, message) UnityAssertFloatSpecial((UNITY_FLOAT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NOT_INF)
|
996
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF(actual, line, message) UnityAssertFloatSpecial((UNITY_FLOAT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NOT_NEG_INF)
|
997
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN(actual, line, message) UnityAssertFloatSpecial((UNITY_FLOAT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NOT_NAN)
|
998
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE(actual, line, message) UnityAssertFloatSpecial((UNITY_FLOAT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NOT_DET)
|
999
|
+
#endif
|
1000
|
+
|
1001
|
+
#ifdef UNITY_EXCLUDE_DOUBLE
|
1002
|
+
#define UNITY_TEST_ASSERT_DOUBLE_WITHIN(delta, expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1003
|
+
#define UNITY_TEST_ASSERT_EQUAL_DOUBLE(expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1004
|
+
#define UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1005
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_DOUBLE(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1006
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1007
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1008
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NAN(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1009
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1010
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1011
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1012
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1013
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)(line), UnityStrErrDouble)
|
1014
|
+
#else
|
1015
|
+
#define UNITY_TEST_ASSERT_DOUBLE_WITHIN(delta, expected, actual, line, message) UnityAssertDoublesWithin((UNITY_DOUBLE)(delta), (UNITY_DOUBLE)(expected), (UNITY_DOUBLE)(actual), (message), (UNITY_LINE_TYPE)(line))
|
1016
|
+
#define UNITY_TEST_ASSERT_EQUAL_DOUBLE(expected, actual, line, message) UNITY_TEST_ASSERT_DOUBLE_WITHIN((UNITY_DOUBLE)(expected) * (UNITY_DOUBLE)UNITY_DOUBLE_PRECISION, (UNITY_DOUBLE)(expected), (UNITY_DOUBLE)(actual), (UNITY_LINE_TYPE)(line), (message))
|
1017
|
+
#define UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualDoubleArray((UNITY_DOUBLE*)(expected), (UNITY_DOUBLE*)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_ARRAY_TO_ARRAY)
|
1018
|
+
#define UNITY_TEST_ASSERT_EACH_EQUAL_DOUBLE(expected, actual, num_elements, line, message) UnityAssertEqualDoubleArray(UnityDoubleToPtr(expected), (UNITY_DOUBLE*)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_ARRAY_TO_VAL)
|
1019
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_INF(actual, line, message) UnityAssertDoubleSpecial((UNITY_DOUBLE)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_INF)
|
1020
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF(actual, line, message) UnityAssertDoubleSpecial((UNITY_DOUBLE)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NEG_INF)
|
1021
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NAN(actual, line, message) UnityAssertDoubleSpecial((UNITY_DOUBLE)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NAN)
|
1022
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE(actual, line, message) UnityAssertDoubleSpecial((UNITY_DOUBLE)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_DET)
|
1023
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF(actual, line, message) UnityAssertDoubleSpecial((UNITY_DOUBLE)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NOT_INF)
|
1024
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF(actual, line, message) UnityAssertDoubleSpecial((UNITY_DOUBLE)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NOT_NEG_INF)
|
1025
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN(actual, line, message) UnityAssertDoubleSpecial((UNITY_DOUBLE)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NOT_NAN)
|
1026
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual, line, message) UnityAssertDoubleSpecial((UNITY_DOUBLE)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_FLOAT_IS_NOT_DET)
|
1027
|
+
#endif
|
1028
|
+
|
1029
|
+
/* End of UNITY_INTERNALS_H */
|
1030
|
+
#endif
|