ceedling 0.31.1 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/GIT_COMMIT_SHA +1 -0
- data/Gemfile +19 -11
- data/Gemfile.lock +31 -24
- data/README.md +716 -75
- data/Rakefile +15 -0
- data/assets/ceedling +6 -0
- data/assets/default_gitignore +7 -5
- data/assets/example_file.c +11 -0
- data/assets/example_file.h +9 -0
- data/assets/example_file_call.c +7 -0
- data/assets/example_file_call.h +7 -0
- data/assets/project.yml +402 -0
- data/assets/test_example_file.c +9 -2
- data/assets/test_example_file_boom.c +9 -2
- data/assets/test_example_file_crash.c +25 -0
- data/assets/test_example_file_success.c +9 -2
- data/assets/test_example_file_unity_printf.c +8 -1
- data/assets/test_example_file_verbose.c +8 -1
- data/assets/test_example_file_with_mock.c +8 -1
- data/assets/test_example_with_parameterized_tests.c +12 -3
- data/assets/tests_with_defines/src/adc_hardware.c +8 -1
- data/assets/tests_with_defines/src/adc_hardware.h +7 -0
- data/assets/tests_with_defines/src/adc_hardware_configurator.c +8 -1
- data/assets/tests_with_defines/src/adc_hardware_configurator.h +8 -1
- data/assets/tests_with_defines/test/test_adc_hardware.c +7 -0
- data/assets/tests_with_defines/test/test_adc_hardware_special.c +7 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareA.c +17 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareA.h +13 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareB.c +14 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareB.h +13 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareC.c +14 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareC.h +13 -0
- data/assets/tests_with_preprocessing/src/adc_hardware_configuratorA.h +13 -0
- data/assets/tests_with_preprocessing/src/adc_hardware_configuratorB.h +15 -0
- data/assets/tests_with_preprocessing/src/adc_hardware_configuratorC.h +15 -0
- data/assets/tests_with_preprocessing/test/test_adc_hardwareA.c +41 -0
- data/assets/tests_with_preprocessing/test/test_adc_hardwareB.c +25 -0
- data/assets/tests_with_preprocessing/test/test_adc_hardwareC.c +29 -0
- data/assets/uncovered_example_file.c +7 -0
- data/bin/actions_wrapper.rb +50 -0
- data/bin/app_cfg.rb +134 -0
- data/bin/ceedling +139 -329
- data/bin/cli.rb +542 -0
- data/bin/cli_handler.rb +480 -0
- data/bin/cli_helper.rb +512 -0
- data/bin/configinator.rb +111 -0
- data/bin/mixinator.rb +136 -0
- data/bin/mixins.rb +12 -0
- data/bin/objects.yml +80 -0
- data/bin/path_validator.rb +54 -0
- data/bin/projectinator.rb +244 -0
- data/bin/versionator.rb +81 -0
- data/ceedling.gemspec +20 -9
- data/config/test_environment.rb +6 -2
- data/docs/BreakingChanges.md +260 -0
- data/docs/CODE_OF_CONDUCT.md +138 -0
- data/docs/CONTRIBUTING.md +240 -0
- data/docs/CeedlingPacket.md +4999 -1614
- data/docs/CeedlingPullRequestChecklist.md +24 -0
- data/docs/CeedlingUpgrade.md +1 -1
- data/docs/Changelog.md +493 -0
- data/docs/PluginDevelopmentGuide.md +764 -0
- data/docs/ReleaseNotes.md +353 -0
- data/docs/SECURITY.md +41 -0
- data/examples/temp_sensor/README.md +18 -0
- data/examples/temp_sensor/mixin/add_gcov.yml +51 -0
- data/examples/temp_sensor/mixin/add_unity_helper.yml +26 -0
- data/examples/temp_sensor/project.yml +315 -28
- data/examples/temp_sensor/src/AdcConductor.c +7 -0
- data/examples/temp_sensor/src/AdcConductor.h +7 -0
- data/examples/temp_sensor/src/AdcHardware.c +7 -0
- data/examples/temp_sensor/src/AdcHardware.h +7 -0
- data/examples/temp_sensor/src/AdcHardwareConfigurator.c +7 -0
- data/examples/temp_sensor/src/AdcHardwareConfigurator.h +7 -0
- data/examples/temp_sensor/src/AdcModel.c +7 -0
- data/examples/temp_sensor/src/AdcModel.h +7 -0
- data/examples/temp_sensor/src/AdcTemperatureSensor.c +7 -0
- data/examples/temp_sensor/src/AdcTemperatureSensor.h +7 -0
- data/examples/temp_sensor/src/Executor.c +7 -0
- data/examples/temp_sensor/src/Executor.h +7 -0
- data/examples/temp_sensor/src/IntrinsicsWrapper.c +7 -0
- data/examples/temp_sensor/src/IntrinsicsWrapper.h +7 -0
- data/examples/temp_sensor/src/Main.c +7 -0
- data/examples/temp_sensor/src/Main.h +7 -0
- data/examples/temp_sensor/src/Model.c +7 -0
- data/examples/temp_sensor/src/Model.h +7 -0
- data/examples/temp_sensor/src/ModelConfig.h +7 -0
- data/examples/temp_sensor/src/TaskScheduler.c +7 -0
- data/examples/temp_sensor/src/TaskScheduler.h +7 -0
- data/examples/temp_sensor/src/TemperatureCalculator.c +12 -1
- data/examples/temp_sensor/src/TemperatureCalculator.h +7 -0
- data/examples/temp_sensor/src/TemperatureFilter.c +7 -0
- data/examples/temp_sensor/src/TemperatureFilter.h +7 -0
- data/examples/temp_sensor/src/TimerConductor.c +7 -0
- data/examples/temp_sensor/src/TimerConductor.h +7 -0
- data/examples/temp_sensor/src/TimerConfigurator.c +7 -0
- data/examples/temp_sensor/src/TimerConfigurator.h +7 -0
- data/examples/temp_sensor/src/TimerHardware.c +7 -0
- data/examples/temp_sensor/src/TimerHardware.h +7 -0
- data/examples/temp_sensor/src/TimerInterruptConfigurator.c +7 -0
- data/examples/temp_sensor/src/TimerInterruptConfigurator.h +7 -0
- data/examples/temp_sensor/src/TimerInterruptHandler.c +7 -0
- data/examples/temp_sensor/src/TimerInterruptHandler.h +7 -0
- data/examples/temp_sensor/src/TimerModel.c +7 -0
- data/examples/temp_sensor/src/TimerModel.h +7 -0
- data/examples/temp_sensor/src/Types.h +7 -0
- data/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c +7 -0
- data/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +7 -0
- data/examples/temp_sensor/src/UsartConductor.c +7 -0
- data/examples/temp_sensor/src/UsartConductor.h +7 -0
- data/examples/temp_sensor/src/UsartConfigurator.c +7 -0
- data/examples/temp_sensor/src/UsartConfigurator.h +7 -0
- data/examples/temp_sensor/src/UsartHardware.c +7 -0
- data/examples/temp_sensor/src/UsartHardware.h +7 -0
- data/examples/temp_sensor/src/UsartModel.c +7 -0
- data/examples/temp_sensor/src/UsartModel.h +7 -0
- data/examples/temp_sensor/src/UsartPutChar.c +7 -0
- data/examples/temp_sensor/src/UsartPutChar.h +7 -0
- data/examples/temp_sensor/src/UsartTransmitBufferStatus.c +7 -0
- data/examples/temp_sensor/src/UsartTransmitBufferStatus.h +7 -0
- data/examples/temp_sensor/test/TestExecutor.c +8 -1
- data/examples/temp_sensor/test/TestMain.c +7 -0
- data/examples/temp_sensor/test/TestModel.c +7 -0
- data/examples/temp_sensor/test/TestTaskScheduler.c +37 -30
- data/examples/temp_sensor/test/TestTemperatureCalculator.c +8 -1
- data/examples/temp_sensor/test/TestTemperatureFilter.c +7 -0
- data/examples/temp_sensor/test/TestTimerConductor.c +7 -0
- data/examples/temp_sensor/test/TestTimerHardware.c +7 -0
- data/examples/temp_sensor/test/TestTimerIntegrated.c +53 -0
- data/examples/temp_sensor/test/TestTimerModel.c +7 -0
- data/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c +12 -5
- data/examples/temp_sensor/test/TestUsartConductor.c +7 -0
- data/examples/temp_sensor/test/TestUsartHardware.c +7 -0
- data/examples/temp_sensor/test/TestUsartIntegrated.c +63 -0
- data/examples/temp_sensor/test/TestUsartModel.c +8 -1
- data/examples/temp_sensor/test/{TestAdcConductor.c → adc/TestAdcConductor.c} +7 -0
- data/examples/temp_sensor/test/{TestAdcHardware.c → adc/TestAdcHardware.c} +8 -1
- data/examples/temp_sensor/test/{TestAdcModel.c → adc/TestAdcModel.c} +9 -2
- data/examples/temp_sensor/test/support/UnityHelper.c +11 -4
- data/examples/temp_sensor/test/support/UnityHelper.h +11 -6
- data/lib/ceedling/application.rb +26 -0
- data/lib/ceedling/backtrace.gdb +5 -0
- data/lib/ceedling/build_batchinator.rb +113 -0
- data/lib/ceedling/cacheinator.rb +6 -0
- data/lib/ceedling/cacheinator_helper.rb +6 -0
- data/lib/ceedling/config_matchinator.rb +192 -0
- data/lib/ceedling/config_walkinator.rb +35 -0
- data/lib/ceedling/configurator.rb +544 -191
- data/lib/ceedling/configurator_builder.rb +262 -179
- data/lib/ceedling/configurator_plugins.rb +71 -37
- data/lib/ceedling/configurator_setup.rb +726 -55
- data/lib/ceedling/configurator_validator.rb +152 -142
- data/lib/ceedling/constants.rb +97 -36
- data/lib/ceedling/defaults.rb +231 -225
- data/lib/ceedling/defineinator.rb +90 -0
- data/lib/ceedling/dependinator.rb +9 -75
- data/lib/ceedling/encodinator.rb +26 -0
- data/lib/ceedling/erb_wrapper.rb +8 -1
- data/lib/ceedling/exceptions.rb +47 -0
- data/lib/ceedling/file_finder.rb +136 -102
- data/lib/ceedling/file_finder_helper.rb +93 -33
- data/lib/ceedling/file_path_collection_utils.rb +137 -0
- data/lib/ceedling/file_path_utils.rb +72 -84
- data/lib/ceedling/file_system_wrapper.rb +6 -0
- data/lib/ceedling/file_wrapper.rb +42 -3
- data/lib/ceedling/flaginator.rb +43 -52
- data/lib/ceedling/generator.rb +283 -104
- data/lib/ceedling/generator_helper.rb +63 -25
- data/lib/ceedling/generator_mocks.rb +41 -0
- data/lib/ceedling/generator_test_results.rb +200 -30
- data/lib/ceedling/generator_test_results_backtrace.rb +215 -0
- data/lib/ceedling/generator_test_results_sanity_checker.rb +13 -8
- data/lib/ceedling/generator_test_runner.rb +62 -36
- data/lib/ceedling/include_pathinator.rb +83 -0
- data/lib/ceedling/loginator.rb +314 -19
- data/lib/ceedling/makefile.rb +6 -0
- data/lib/ceedling/objects.yml +120 -81
- data/lib/ceedling/parsing_parcels.rb +77 -0
- data/lib/ceedling/plugin.rb +14 -64
- data/lib/ceedling/plugin_manager.rb +45 -19
- data/lib/ceedling/plugin_manager_helper.rb +8 -2
- data/lib/ceedling/plugin_reportinator.rb +93 -30
- data/lib/ceedling/plugin_reportinator_helper.rb +60 -27
- data/lib/ceedling/preprocessinator.rb +213 -30
- data/lib/ceedling/preprocessinator_extractor.rb +238 -36
- data/lib/ceedling/preprocessinator_file_handler.rb +210 -15
- data/lib/ceedling/preprocessinator_includes_handler.rb +353 -160
- data/lib/ceedling/rake_utils.rb +6 -0
- data/lib/ceedling/rake_wrapper.rb +7 -0
- data/lib/ceedling/rakefile.rb +125 -65
- data/lib/ceedling/release_invoker.rb +11 -41
- data/lib/ceedling/release_invoker_helper.rb +6 -13
- data/lib/ceedling/reportinator.rb +99 -1
- data/lib/ceedling/rules_release.rake +45 -37
- data/lib/ceedling/rules_tests.rake +48 -59
- data/lib/ceedling/setupinator.rb +181 -35
- data/lib/ceedling/stream_wrapper.rb +38 -15
- data/lib/ceedling/system_utils.rb +8 -2
- data/lib/ceedling/system_wrapper.rb +83 -13
- data/lib/ceedling/task_invoker.rb +15 -67
- data/lib/ceedling/tasks_base.rake +15 -92
- data/lib/ceedling/tasks_filesystem.rake +35 -49
- data/lib/ceedling/tasks_release.rake +25 -12
- data/lib/ceedling/tasks_tests.rake +31 -22
- data/lib/ceedling/test_context_extractor.rb +379 -0
- data/lib/ceedling/test_invoker.rb +452 -111
- data/lib/ceedling/test_invoker_helper.rb +332 -17
- data/lib/ceedling/test_runner_manager.rb +47 -0
- data/lib/ceedling/tool_executor.rb +92 -88
- data/lib/ceedling/tool_executor_helper.rb +49 -106
- data/lib/ceedling/tool_validator.rb +149 -0
- data/lib/ceedling/verbosinator.rb +15 -3
- data/lib/ceedling/yaml_wrapper.rb +21 -1
- data/lib/ceedling.rb +12 -97
- data/lib/version.rb +24 -0
- data/license.txt +20 -27
- data/plugins/beep/README.md +124 -13
- data/plugins/beep/config/defaults.yml +12 -0
- data/plugins/beep/config/defaults_beep.rb +67 -0
- data/plugins/beep/lib/beep.rb +71 -26
- data/plugins/bullseye/README.md +9 -4
- data/plugins/bullseye/bullseye.rake +43 -36
- data/plugins/bullseye/config/defaults.yml +55 -46
- data/plugins/bullseye/lib/bullseye.rb +25 -16
- data/plugins/command_hooks/README.md +230 -42
- data/plugins/command_hooks/lib/command_hooks.rb +198 -59
- data/plugins/compile_commands_json_db/README.md +40 -0
- data/plugins/compile_commands_json_db/lib/compile_commands_json_db.rb +51 -0
- data/plugins/dependencies/README.md +113 -46
- data/plugins/dependencies/Rakefile +188 -0
- data/plugins/dependencies/config/defaults.yml +74 -1
- data/plugins/dependencies/dependencies.rake +28 -18
- data/plugins/dependencies/example/boss/project.yml +231 -0
- data/plugins/dependencies/example/boss/src/boss.c +80 -0
- data/plugins/dependencies/example/boss/src/boss.h +16 -0
- data/plugins/dependencies/example/boss/src/main.c +45 -0
- data/plugins/dependencies/example/boss/test/test_boss.c +118 -0
- data/plugins/dependencies/example/supervisor/project.yml +165 -0
- data/plugins/dependencies/example/supervisor/src/supervisor.c +45 -0
- data/plugins/dependencies/example/supervisor/src/supervisor.h +14 -0
- data/plugins/dependencies/example/supervisor/test/test_supervisor.c +58 -0
- data/plugins/dependencies/example/version.tar.gzip +0 -0
- data/plugins/dependencies/example/workerbees.zip +0 -0
- data/plugins/dependencies/lib/dependencies.rb +372 -78
- data/plugins/{fake_function_framework → fff}/README.md +9 -17
- data/plugins/fff/Rakefile +26 -0
- data/plugins/fff/config/fff.yml +13 -0
- data/plugins/fff/examples/fff_example/project.yml +145 -0
- data/plugins/fff/examples/fff_example/src/bar.c +8 -0
- data/plugins/{fake_function_framework → fff}/examples/fff_example/src/bar.h +7 -0
- data/plugins/fff/examples/fff_example/src/custom_types.h +13 -0
- data/plugins/fff/examples/fff_example/src/display.c +14 -0
- data/plugins/{fake_function_framework → fff}/examples/fff_example/src/display.h +7 -0
- data/plugins/{fake_function_framework → fff}/examples/fff_example/src/event_processor.c +7 -0
- data/plugins/{fake_function_framework → fff}/examples/fff_example/src/event_processor.h +7 -0
- data/plugins/fff/examples/fff_example/src/foo.c +23 -0
- data/plugins/fff/examples/fff_example/src/foo.h +15 -0
- data/plugins/fff/examples/fff_example/src/subfolder/zzz.c +8 -0
- data/plugins/fff/examples/fff_example/src/subfolder/zzz.h +13 -0
- data/plugins/{fake_function_framework → fff}/examples/fff_example/test/test_event_processor.c +24 -19
- data/plugins/{fake_function_framework → fff}/examples/fff_example/test/test_foo.c +7 -0
- data/plugins/{fake_function_framework/lib/fake_function_framework.rb → fff/lib/fff.rb} +22 -19
- data/plugins/{fake_function_framework → fff}/lib/fff_mock_generator.rb +9 -0
- data/plugins/{fake_function_framework → fff}/spec/fff_mock_header_generator_spec.rb +7 -0
- data/plugins/{fake_function_framework → fff}/spec/fff_mock_source_generator_spec.rb +7 -0
- data/plugins/{fake_function_framework → fff}/spec/header_generator.rb +7 -0
- data/plugins/{fake_function_framework → fff}/spec/spec_helper.rb +7 -0
- data/plugins/{fake_function_framework → fff}/src/fff_unity_helper.h +7 -0
- data/plugins/fff/vendor/fff/LICENSE +25 -0
- data/plugins/fff/vendor/fff/Makefile +10 -0
- data/plugins/fff/vendor/fff/README.md +454 -0
- data/plugins/fff/vendor/fff/buildandtest +15 -0
- data/plugins/fff/vendor/fff/examples/Makefile +7 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/Makefile +64 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/driver.c +32 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/driver.h +21 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/driver.test.cpp +58 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/driver.test.fff.cpp +70 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/hardware_abstraction.h +25 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/registers.h +23 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/DISPLAY.h +27 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/Kata.txt +25 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/Makefile +67 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/SYSTEM.h +31 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/UI.c +56 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/UI.h +22 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/UI_test_ansic.c +191 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/UI_test_cpp.cpp +144 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/test_suite_template.c +42 -0
- data/plugins/fff/vendor/fff/fakegen.rb +428 -0
- data/plugins/fff/vendor/fff/fff.h +5122 -0
- data/plugins/fff/vendor/fff/gtest/Makefile +22 -0
- data/plugins/fff/vendor/fff/gtest/gtest-all.cc +9118 -0
- data/plugins/fff/vendor/fff/gtest/gtest-main.cc +6 -0
- data/plugins/fff/vendor/fff/gtest/gtest.h +19547 -0
- data/plugins/fff/vendor/fff/test/Makefile +81 -0
- data/plugins/fff/vendor/fff/test/c_test_framework.h +25 -0
- data/plugins/fff/vendor/fff/test/fff_test_c.c +116 -0
- data/plugins/fff/vendor/fff/test/fff_test_cpp.cpp +53 -0
- data/plugins/fff/vendor/fff/test/fff_test_global_c.c +84 -0
- data/plugins/fff/vendor/fff/test/fff_test_global_cpp.cpp +31 -0
- data/plugins/fff/vendor/fff/test/global_fakes.c +21 -0
- data/plugins/fff/vendor/fff/test/global_fakes.h +47 -0
- data/plugins/fff/vendor/fff/test/test_cases.include +276 -0
- data/plugins/gcov/README.md +631 -171
- data/plugins/gcov/config/defaults.yml +30 -0
- data/plugins/gcov/config/defaults_gcov.rb +96 -105
- data/plugins/gcov/gcov.rake +43 -152
- data/plugins/gcov/lib/gcov.rb +234 -88
- data/plugins/gcov/lib/gcov_constants.rb +25 -10
- data/plugins/gcov/lib/gcovr_reportinator.rb +245 -151
- data/plugins/gcov/lib/reportgenerator_reportinator.rb +93 -68
- data/plugins/gcov/lib/reportinator_helper.rb +23 -8
- data/plugins/module_generator/README.md +163 -15
- data/plugins/module_generator/Rakefile +232 -0
- data/plugins/module_generator/assets/stubby1.h +13 -0
- data/plugins/module_generator/assets/stubby2.h +15 -0
- data/plugins/module_generator/config/module_generator.yml +12 -3
- data/plugins/module_generator/example/project.yml +174 -0
- data/plugins/module_generator/lib/module_generator.rb +63 -21
- data/plugins/module_generator/module_generator.rake +7 -0
- data/plugins/report_build_warnings_log/README.md +40 -0
- data/plugins/report_build_warnings_log/config/defaults.yml +12 -0
- data/plugins/report_build_warnings_log/lib/report_build_warnings_log.rb +143 -0
- data/plugins/report_tests_gtestlike_stdout/README.md +96 -0
- data/plugins/{stdout_gtestlike_tests_report → report_tests_gtestlike_stdout}/assets/template.erb +6 -7
- data/plugins/report_tests_gtestlike_stdout/config/report_tests_gtestlike_stdout.yml +11 -0
- data/plugins/report_tests_gtestlike_stdout/lib/report_tests_gtestlike_stdout.rb +69 -0
- data/plugins/report_tests_ide_stdout/README.md +62 -0
- data/plugins/report_tests_ide_stdout/config/report_tests_ide_stdout.yml +11 -0
- data/plugins/report_tests_ide_stdout/lib/report_tests_ide_stdout.rb +72 -0
- data/plugins/report_tests_log_factory/README.md +446 -0
- data/plugins/report_tests_log_factory/config/defaults.yml +11 -0
- data/plugins/report_tests_log_factory/lib/cppunit_tests_reporter.rb +100 -0
- data/plugins/report_tests_log_factory/lib/html_tests_reporter.rb +181 -0
- data/plugins/report_tests_log_factory/lib/json_tests_reporter.rb +72 -0
- data/plugins/report_tests_log_factory/lib/junit_tests_reporter.rb +197 -0
- data/plugins/report_tests_log_factory/lib/report_tests_log_factory.rb +135 -0
- data/plugins/report_tests_log_factory/lib/tests_reporter.rb +70 -0
- data/plugins/report_tests_log_factory/sample_html_report.png +0 -0
- data/plugins/report_tests_pretty_stdout/README.md +54 -0
- data/plugins/{stdout_pretty_tests_report → report_tests_pretty_stdout}/assets/template.erb +13 -9
- data/plugins/report_tests_pretty_stdout/config/report_tests_pretty_stdout.yml +11 -0
- data/plugins/report_tests_pretty_stdout/lib/report_tests_pretty_stdout.rb +73 -0
- data/plugins/report_tests_raw_output_log/README.md +50 -0
- data/plugins/report_tests_raw_output_log/lib/report_tests_raw_output_log.rb +129 -0
- data/plugins/report_tests_teamcity_stdout/README.md +94 -0
- data/plugins/report_tests_teamcity_stdout/config/defaults.yml +12 -0
- data/plugins/report_tests_teamcity_stdout/config/report_tests_teamcity_stdout.yml +11 -0
- data/plugins/report_tests_teamcity_stdout/lib/report_tests_teamcity_stdout.rb +163 -0
- data/spec/config_walkinator_spec.rb +62 -0
- data/spec/configurator_builder_spec.rb +9 -0
- data/spec/configurator_helper_spec.rb +7 -0
- data/spec/configurator_spec.rb +8 -0
- data/spec/file_finder_helper_spec.rb +30 -10
- data/spec/gcov/gcov_deployment_spec.rb +82 -20
- data/spec/gcov/gcov_test_cases_spec.rb +211 -64
- data/spec/generator_test_results_sanity_checker_spec.rb +26 -10
- data/spec/generator_test_results_spec.rb +44 -20
- data/spec/manual/stress_test.rb +31 -0
- data/spec/parsing_parcels_spec.rb +66 -0
- data/spec/preprocessinator_extractor_spec.rb +379 -52
- data/spec/preprocessinator_includes_handler_spec.rb +268 -262
- data/spec/reportinator_spec.rb +7 -0
- data/spec/spec_helper.rb +8 -3
- data/spec/spec_system_helper.rb +504 -185
- data/spec/support/other_target.yml +7 -0
- data/spec/support/target.yml +7 -0
- data/spec/support/test_example.fail +3 -2
- data/spec/support/test_example.pass +3 -2
- data/spec/support/test_example_empty.pass +3 -2
- data/spec/support/test_example_ignore.pass +3 -2
- data/spec/support/test_example_mangled.pass +3 -2
- data/spec/support/test_example_with_time.pass +3 -2
- data/spec/system/deployment_as_gem_spec.rb +76 -0
- data/spec/system/deployment_as_vendor_spec.rb +123 -0
- data/spec/system/example_temp_sensor_spec.rb +264 -0
- data/spec/system/upgrade_as_vendor_spec.rb +68 -0
- data/spec/system_utils_spec.rb +15 -6
- data/spec/test_context_extractor_spec.rb +328 -0
- data/spec/tool_executor_helper_spec.rb +116 -207
- data/spec/uncategorized_specs_spec.rb +15 -0
- data/vendor/c_exception/README.md +1 -12
- data/vendor/c_exception/docs/CException.md +4 -47
- data/vendor/c_exception/docs/CODE_OF_CONDUCT.md +138 -0
- data/vendor/c_exception/docs/CONTRIBUTING.md +238 -0
- data/vendor/c_exception/lib/CException.c +13 -0
- data/vendor/c_exception/lib/CException.h +8 -1
- data/vendor/c_exception/license.txt +22 -0
- data/vendor/c_exception/project.yml +232 -6
- data/vendor/c_exception/test/TestException.c +10 -3
- data/vendor/c_exception/test/support/CExceptionConfig.h +7 -0
- data/vendor/cmock/Gemfile +0 -7
- data/vendor/cmock/LICENSE.txt +3 -1
- data/vendor/cmock/README.md +27 -11
- data/vendor/cmock/cmock.gemspec +34 -0
- data/vendor/cmock/config/production_environment.rb +7 -6
- data/vendor/cmock/config/test_environment.rb +7 -6
- data/vendor/cmock/docs/CMockChangeLog.md +166 -0
- data/vendor/cmock/docs/CMockKnownIssues.md +13 -0
- data/vendor/cmock/docs/CMock_ArgumentValidation.md +274 -0
- data/vendor/cmock/docs/CMock_Summary.md +43 -8
- data/vendor/cmock/docs/CODE_OF_CONDUCT.md +138 -0
- data/vendor/cmock/docs/CONTRIBUTING.md +238 -0
- data/vendor/cmock/examples/make_example/Makefile +1 -1
- data/vendor/cmock/examples/make_example/src/foo.c +7 -0
- data/vendor/cmock/examples/make_example/src/foo.h +7 -0
- data/vendor/cmock/examples/make_example/src/main.c +7 -0
- data/vendor/cmock/examples/make_example/test/test_foo.c +8 -1
- data/vendor/cmock/examples/make_example/test/test_main.c +7 -0
- data/vendor/cmock/examples/temp_sensor/rakefile.rb +8 -1
- data/vendor/cmock/examples/temp_sensor/rakefile_helper.rb +33 -21
- data/vendor/cmock/examples/temp_sensor/src/AT91SAM7X256.h +20 -12
- data/vendor/cmock/examples/temp_sensor/src/AdcConductor.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcConductor.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcHardware.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcHardware.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcModel.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcModel.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcTemperatureSensor.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcTemperatureSensor.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/Executor.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/Executor.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/IntrinsicsWrapper.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/IntrinsicsWrapper.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/Main.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/Main.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/Model.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/Model.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/ModelConfig.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TaskScheduler.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TaskScheduler.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TemperatureCalculator.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TemperatureCalculator.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TemperatureFilter.c +15 -5
- data/vendor/cmock/examples/temp_sensor/src/TemperatureFilter.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerConductor.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerConductor.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerConfigurator.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerConfigurator.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerHardware.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerHardware.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptConfigurator.c +8 -1
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptConfigurator.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptHandler.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptHandler.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerModel.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerModel.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/Types.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartConductor.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartConductor.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartConfigurator.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartConfigurator.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartHardware.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartHardware.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartModel.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartModel.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartPutChar.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartPutChar.h +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.c +7 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.h +7 -0
- data/vendor/cmock/examples/temp_sensor/targets/gcc.yml +97 -0
- data/vendor/cmock/examples/temp_sensor/targets/iar_v4.yml +143 -0
- data/vendor/cmock/examples/temp_sensor/targets/iar_v5.yml +132 -0
- data/vendor/cmock/examples/temp_sensor/test/TestAdcConductor.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestAdcHardware.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestAdcHardwareConfigurator.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestAdcModel.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestAdcTemperatureSensor.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestExecutor.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestMain.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestModel.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTaskScheduler.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTemperatureCalculator.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTemperatureFilter.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTimerConductor.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTimerConfigurator.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTimerHardware.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTimerInterruptConfigurator.c +9 -2
- data/vendor/cmock/examples/temp_sensor/test/TestTimerInterruptHandler.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTimerModel.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartConductor.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartConfigurator.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartHardware.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartModel.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartPutChar.c +7 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartTransmitBufferStatus.c +7 -0
- data/vendor/cmock/lib/cmock.rb +27 -11
- data/vendor/cmock/lib/cmock_config.rb +22 -12
- data/vendor/cmock/lib/cmock_file_writer.rb +10 -9
- data/vendor/cmock/lib/cmock_generator.rb +29 -18
- data/vendor/cmock/lib/cmock_generator_plugin_array.rb +15 -10
- data/vendor/cmock/lib/cmock_generator_plugin_callback.rb +7 -7
- data/vendor/cmock/lib/cmock_generator_plugin_cexception.rb +7 -7
- data/vendor/cmock/lib/cmock_generator_plugin_expect.rb +14 -9
- data/vendor/cmock/lib/cmock_generator_plugin_expect_any_args.rb +11 -9
- data/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +10 -8
- data/vendor/cmock/lib/cmock_generator_plugin_ignore_arg.rb +7 -0
- data/vendor/cmock/lib/cmock_generator_plugin_ignore_stateless.rb +10 -8
- data/vendor/cmock/lib/cmock_generator_plugin_return_thru_ptr.rb +31 -8
- data/vendor/cmock/lib/cmock_generator_utils.rb +11 -10
- data/vendor/cmock/lib/cmock_header_parser.rb +43 -37
- data/vendor/cmock/lib/cmock_plugin_manager.rb +8 -7
- data/vendor/cmock/lib/cmock_unityhelper_parser.rb +13 -8
- data/vendor/cmock/lib/cmock_version.rb +29 -0
- data/vendor/cmock/scripts/create_makefile.rb +13 -6
- data/vendor/cmock/scripts/create_mock.rb +7 -0
- data/vendor/cmock/scripts/create_runner.rb +7 -0
- data/vendor/cmock/scripts/test_summary.rb +7 -0
- data/vendor/cmock/src/cmock.c +24 -2
- data/vendor/cmock/src/cmock.h +9 -2
- data/vendor/cmock/src/cmock_internals.h +7 -0
- data/vendor/cmock/test/c/TestCMockC.c +8 -1
- data/vendor/cmock/test/c/TestCMockC.yml +7 -0
- data/vendor/cmock/test/c/TestCMockCDynamic.c +7 -0
- data/vendor/cmock/test/c/TestCMockCDynamic.yml +7 -0
- data/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +7 -0
- data/vendor/cmock/test/c/TestCMockC_Runner.c +7 -0
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X-EK.h +7 -0
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256_inc.h +7 -0
- data/vendor/cmock/test/iar/iar_v4/incIAR/ioat91sam7x256.h +7 -0
- data/vendor/cmock/test/iar/iar_v4/srcIAR/Cstartup_SAM7.c +7 -0
- data/vendor/cmock/test/iar/iar_v5/incIAR/AT91SAM7X-EK.h +7 -0
- data/vendor/cmock/test/iar/iar_v5/incIAR/AT91SAM7X256_inc.h +7 -0
- data/vendor/cmock/test/iar/iar_v5/incIAR/project.h +7 -0
- data/vendor/cmock/test/iar/iar_v5/srcIAR/Cstartup_SAM7.c +7 -0
- data/vendor/cmock/test/rakefile +6 -3
- data/vendor/cmock/test/rakefile_helper.rb +25 -11
- data/vendor/cmock/test/system/systest_generator.rb +6 -5
- data/vendor/cmock/test/system/test_compilation/callingconv.h +7 -0
- data/vendor/cmock/test/system/test_compilation/config.yml +7 -0
- data/vendor/cmock/test/system/test_compilation/const.h +7 -0
- data/vendor/cmock/test/system/test_compilation/inline.h +7 -0
- data/vendor/cmock/test/system/test_compilation/osek.h +8 -1
- data/vendor/cmock/test/system/test_compilation/parsing.h +12 -2
- data/vendor/cmock/test/system/test_interactions/all_plugins_but_other_limits.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/all_plugins_coexist.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/array_and_pointer_handling.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/basic_expect_and_return.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/const_primitives_handling.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/doesnt_leave_details_behind.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/enforce_strict_ordering.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/expect_and_return_custom_types.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/expect_and_return_treat_as.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/expect_and_throw.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/expect_any_args.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/fancy_pointer_handling.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/function_pointer_handling.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/ignore_and_return.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/ignore_and_return_stateless.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/ignore_strict_mock_calling.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_1.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_2.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/out_of_memory.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/parsing_challenges.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/return_thru_ptr_and_expect_any_args.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/return_thru_ptr_ignore_arg.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/skeleton.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/skeleton_update.yml +8 -1
- data/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return_with_plugins.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/stubs_with_callbacks.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/unity_64bit_support.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/unity_ignores.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/unity_void_pointer_compare.yml +7 -0
- data/vendor/cmock/test/system/test_interactions/wrong_expect_and_return.yml +149 -0
- data/vendor/cmock/test/targets/clang_strict.yml +7 -0
- data/vendor/cmock/test/targets/gcc.yml +7 -0
- data/vendor/cmock/test/targets/gcc_64.yml +7 -0
- data/vendor/cmock/test/targets/gcc_tiny.yml +7 -0
- data/vendor/cmock/test/targets/iar_arm_v4.yml +7 -0
- data/vendor/cmock/test/targets/iar_arm_v5.yml +7 -0
- data/vendor/cmock/test/test_helper.rb +6 -5
- data/vendor/cmock/test/unit/cmock_config_test.rb +6 -5
- data/vendor/cmock/test/unit/cmock_config_test.yml +7 -0
- data/vendor/cmock/test/unit/cmock_file_writer_test.rb +6 -5
- data/vendor/cmock/test/unit/cmock_generator_main_test.rb +29 -17
- data/vendor/cmock/test/unit/cmock_generator_plugin_array_test.rb +12 -8
- data/vendor/cmock/test/unit/cmock_generator_plugin_callback_test.rb +6 -5
- data/vendor/cmock/test/unit/cmock_generator_plugin_cexception_test.rb +6 -5
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_a_test.rb +12 -8
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_any_args_test.rb +11 -7
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_b_test.rb +12 -8
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_arg_test.rb +6 -5
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_stateless_test.rb +13 -8
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +13 -8
- data/vendor/cmock/test/unit/cmock_generator_plugin_return_thru_ptr_test.rb +87 -14
- data/vendor/cmock/test/unit/cmock_generator_utils_test.rb +6 -5
- data/vendor/cmock/test/unit/cmock_header_parser_test.rb +54 -17
- data/vendor/cmock/test/unit/cmock_plugin_manager_test.rb +6 -5
- data/vendor/cmock/test/unit/cmock_unityhelper_parser_test.rb +6 -5
- data/vendor/cmock/vendor/c_exception/README.md +4 -17
- data/vendor/cmock/vendor/c_exception/docs/CException.md +5 -48
- data/vendor/cmock/vendor/c_exception/docs/CODE_OF_CONDUCT.md +138 -0
- data/vendor/cmock/vendor/c_exception/docs/CONTRIBUTING.md +238 -0
- data/vendor/cmock/vendor/c_exception/lib/CException.c +13 -0
- data/vendor/cmock/vendor/c_exception/lib/CException.h +8 -1
- data/vendor/cmock/vendor/c_exception/lib/meson.build +2 -2
- data/vendor/cmock/vendor/c_exception/license.txt +22 -0
- data/vendor/cmock/vendor/c_exception/meson.build +2 -36
- data/vendor/cmock/vendor/c_exception/project.yml +232 -6
- data/vendor/cmock/vendor/c_exception/test/TestException.c +10 -3
- data/vendor/cmock/vendor/c_exception/test/support/CExceptionConfig.h +7 -0
- data/vendor/cmock/vendor/unity/CMakeLists.txt +46 -33
- data/vendor/cmock/vendor/unity/LICENSE.txt +1 -1
- data/vendor/cmock/vendor/unity/README.md +33 -5
- data/vendor/cmock/vendor/unity/auto/__init__.py +7 -0
- data/vendor/cmock/vendor/unity/auto/colour_prompt.rb +6 -5
- data/vendor/cmock/vendor/unity/auto/colour_reporter.rb +7 -6
- data/vendor/cmock/vendor/unity/auto/extract_version.py +22 -0
- data/vendor/cmock/vendor/unity/auto/generate_config.yml +7 -0
- data/vendor/cmock/vendor/unity/auto/generate_module.rb +32 -27
- data/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +71 -35
- data/vendor/cmock/vendor/unity/auto/parse_output.rb +90 -22
- data/vendor/cmock/vendor/unity/auto/run_test.erb +2 -2
- data/vendor/cmock/vendor/unity/auto/{unity_to_junit.py → stylize_as_junit.py} +54 -39
- data/vendor/cmock/vendor/unity/auto/stylize_as_junit.rb +8 -6
- data/vendor/cmock/vendor/unity/auto/test_file_filter.rb +11 -8
- data/vendor/cmock/vendor/unity/auto/type_sanitizer.rb +8 -1
- data/vendor/cmock/vendor/unity/auto/unity_test_summary.py +7 -6
- data/vendor/cmock/vendor/unity/auto/unity_test_summary.rb +13 -8
- data/vendor/cmock/vendor/unity/auto/yaml_helper.rb +23 -0
- data/vendor/cmock/vendor/unity/docs/CODE_OF_CONDUCT.md +138 -0
- data/vendor/cmock/vendor/unity/docs/CONTRIBUTING.md +238 -0
- data/vendor/cmock/vendor/unity/docs/MesonGeneratorRunner.md +18 -0
- data/vendor/cmock/vendor/unity/docs/UnityAssertionsReference.md +133 -60
- data/vendor/cmock/vendor/unity/docs/UnityChangeLog.md +110 -0
- data/vendor/cmock/vendor/unity/docs/UnityConfigurationGuide.md +151 -2
- data/vendor/cmock/vendor/unity/docs/UnityHelperScriptsGuide.md +289 -1
- data/vendor/cmock/vendor/unity/docs/UnityKnownIssues.md +13 -0
- data/vendor/cmock/vendor/unity/examples/example_1/makefile +6 -5
- data/vendor/cmock/vendor/unity/examples/example_1/meson.build +48 -0
- data/vendor/cmock/vendor/unity/examples/example_1/readme.txt +8 -1
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.h +6 -0
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.h +6 -0
- data/vendor/cmock/vendor/unity/examples/example_1/subprojects/unity.wrap +3 -0
- data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode2.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_2/makefile +6 -5
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.h +6 -0
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.h +6 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode.c +7 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode2.c +7 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +7 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +7 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/all_tests.c +7 -0
- data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.c +7 -0
- data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.h +7 -0
- data/vendor/cmock/vendor/unity/examples/example_3/rakefile.rb +7 -0
- data/vendor/cmock/vendor/unity/examples/example_3/rakefile_helper.rb +26 -21
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.h +6 -0
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.h +6 -0
- data/vendor/cmock/vendor/unity/examples/example_3/target_gcc_32.yml +7 -0
- data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode2.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_4/meson.build +2 -2
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode.h +6 -0
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode2.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode2.h +6 -0
- data/vendor/cmock/vendor/unity/examples/example_4/subprojects/unity.wrap +3 -1
- data/vendor/cmock/vendor/unity/examples/example_4/test/TestProductionCode.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_4/test/TestProductionCode2.c +6 -0
- data/vendor/cmock/vendor/unity/examples/example_4/test/test_runners/meson.build +3 -3
- data/vendor/cmock/vendor/unity/examples/unity_config.h +8 -1
- data/vendor/cmock/vendor/unity/extras/bdd/readme.md +40 -0
- data/vendor/cmock/vendor/unity/extras/bdd/src/unity_bdd.h +44 -0
- data/vendor/cmock/vendor/unity/extras/bdd/test/meson.build +9 -0
- data/vendor/cmock/vendor/unity/extras/bdd/test/test_bdd.c +129 -0
- data/vendor/cmock/vendor/unity/extras/fixture/readme.md +1 -1
- data/vendor/cmock/vendor/unity/extras/fixture/src/meson.build +10 -0
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +6 -6
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.h +18 -7
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +6 -6
- data/vendor/cmock/vendor/unity/extras/fixture/test/main/AllTests.c +6 -6
- data/vendor/cmock/vendor/unity/extras/fixture/test/template_fixture_tests.c +6 -6
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +6 -6
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +6 -6
- data/vendor/cmock/vendor/unity/extras/memory/src/meson.build +9 -0
- data/vendor/cmock/vendor/unity/extras/memory/src/unity_memory.c +6 -5
- data/vendor/cmock/vendor/unity/extras/memory/src/unity_memory.h +6 -5
- data/vendor/cmock/vendor/unity/extras/memory/test/Makefile +7 -0
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_memory_Test.c +6 -5
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_memory_TestRunner.c +6 -5
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_output_Spy.c +6 -5
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_output_Spy.h +6 -5
- data/vendor/cmock/vendor/unity/library.json +25 -0
- data/vendor/cmock/vendor/unity/meson.build +71 -5
- data/vendor/cmock/vendor/unity/meson_options.txt +3 -0
- data/vendor/cmock/vendor/unity/platformio-build.py +24 -0
- data/vendor/cmock/vendor/unity/src/meson.build +11 -5
- data/vendor/cmock/vendor/unity/src/unity.c +534 -143
- data/vendor/cmock/vendor/unity/src/unity.h +50 -13
- data/vendor/cmock/vendor/unity/src/unity_internals.h +188 -58
- data/vendor/cmock/vendor/unity/test/Makefile +7 -0
- data/vendor/cmock/vendor/unity/test/rakefile +6 -5
- data/vendor/cmock/vendor/unity/test/rakefile_helper.rb +9 -8
- data/vendor/cmock/vendor/unity/test/spec/generate_module_existing_file_spec.rb +6 -0
- data/vendor/cmock/vendor/unity/test/targets/ansi.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/clang_file.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/clang_strict.yml +8 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_32.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_64.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_auto_limits.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_auto_stdint.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_manual_math.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/hitech_picc18.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v4.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5_3.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_cortexm3_v5.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_msp430.yml +7 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_sh2a_v6.yml +7 -0
- data/vendor/cmock/vendor/unity/test/testdata/CException.h +7 -0
- data/vendor/cmock/vendor/unity/test/testdata/Defs.h +8 -0
- data/vendor/cmock/vendor/unity/test/testdata/cmock.h +7 -0
- data/vendor/cmock/vendor/unity/test/testdata/mockMock.h +7 -0
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGenerator.c +18 -3
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +8 -5
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +7 -4
- data/vendor/cmock/vendor/unity/test/tests/self_assessment_utils.h +12 -5
- data/vendor/cmock/vendor/unity/test/tests/test_generate_test_runner.rb +107 -26
- data/vendor/cmock/vendor/unity/test/tests/test_unity_arrays.c +73 -6
- data/vendor/cmock/vendor/unity/test/tests/test_unity_core.c +12 -8
- data/vendor/cmock/vendor/unity/test/tests/test_unity_doubles.c +517 -5
- data/vendor/cmock/vendor/unity/test/tests/test_unity_floats.c +516 -5
- data/vendor/cmock/vendor/unity/test/tests/test_unity_integers.c +21 -5
- data/vendor/cmock/vendor/unity/test/tests/test_unity_integers_64.c +16 -6
- data/vendor/cmock/vendor/unity/test/tests/test_unity_memory.c +6 -5
- data/vendor/cmock/vendor/unity/test/tests/test_unity_parameterized.c +146 -8
- data/vendor/cmock/vendor/unity/test/tests/test_unity_parameterizedDemo.c +28 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_strings.c +6 -5
- data/vendor/cmock/vendor/unity/test/tests/types_for_test.h +21 -0
- data/vendor/diy/LICENSE.txt +7 -0
- data/vendor/diy/README.rdoc +21 -39
- data/vendor/diy/lib/diy/factory.rb +8 -0
- data/vendor/diy/lib/diy.rb +8 -0
- data/vendor/diy/sample_code/car.rb +8 -0
- data/vendor/diy/sample_code/chassis.rb +8 -0
- data/vendor/diy/sample_code/diy_example.rb +8 -0
- data/vendor/diy/sample_code/engine.rb +8 -0
- data/vendor/diy/sample_code/objects.yml +8 -0
- data/vendor/diy/test/constructor.rb +8 -0
- data/vendor/diy/test/diy_test.rb +8 -0
- data/vendor/diy/test/factory_test.rb +8 -0
- data/vendor/diy/test/files/broken_construction.yml +8 -0
- data/vendor/diy/test/files/cat/cat.rb +8 -0
- data/vendor/diy/test/files/cat/extra_conflict.yml +8 -0
- data/vendor/diy/test/files/cat/heritage.rb +8 -0
- data/vendor/diy/test/files/cat/needs_input.yml +8 -0
- data/vendor/diy/test/files/cat/the_cat_lineage.rb +8 -0
- data/vendor/diy/test/files/dog/dog_model.rb +8 -0
- data/vendor/diy/test/files/dog/dog_presenter.rb +8 -0
- data/vendor/diy/test/files/dog/dog_view.rb +8 -0
- data/vendor/diy/test/files/dog/file_resolver.rb +8 -0
- data/vendor/diy/test/files/dog/other_thing.rb +8 -0
- data/vendor/diy/test/files/dog/simple.yml +8 -0
- data/vendor/diy/test/files/donkey/foo/bar/qux.rb +8 -0
- data/vendor/diy/test/files/donkey/foo.rb +8 -0
- data/vendor/diy/test/files/factory/beef.rb +8 -0
- data/vendor/diy/test/files/factory/dog.rb +8 -0
- data/vendor/diy/test/files/factory/factory.yml +8 -0
- data/vendor/diy/test/files/factory/farm/llama.rb +8 -0
- data/vendor/diy/test/files/factory/farm/pork.rb +8 -0
- data/vendor/diy/test/files/factory/kitten.rb +8 -0
- data/vendor/diy/test/files/fud/objects.yml +8 -0
- data/vendor/diy/test/files/fud/toy.rb +8 -0
- data/vendor/diy/test/files/functions/attached_things_builder.rb +8 -0
- data/vendor/diy/test/files/functions/invalid_method.yml +8 -0
- data/vendor/diy/test/files/functions/method_extractor.rb +8 -0
- data/vendor/diy/test/files/functions/nonsingleton_objects.yml +8 -0
- data/vendor/diy/test/files/functions/objects.yml +8 -0
- data/vendor/diy/test/files/functions/thing.rb +8 -0
- data/vendor/diy/test/files/functions/thing_builder.rb +8 -0
- data/vendor/diy/test/files/functions/things_builder.rb +8 -0
- data/vendor/diy/test/files/gnu/objects.yml +8 -0
- data/vendor/diy/test/files/gnu/thinger.rb +8 -0
- data/vendor/diy/test/files/goat/base.rb +8 -0
- data/vendor/diy/test/files/goat/can.rb +8 -0
- data/vendor/diy/test/files/goat/goat.rb +8 -0
- data/vendor/diy/test/files/goat/objects.yml +8 -0
- data/vendor/diy/test/files/goat/paper.rb +8 -0
- data/vendor/diy/test/files/goat/plane.rb +8 -0
- data/vendor/diy/test/files/goat/shirt.rb +8 -0
- data/vendor/diy/test/files/goat/wings.rb +8 -0
- data/vendor/diy/test/files/horse/holder_thing.rb +8 -0
- data/vendor/diy/test/files/horse/objects.yml +8 -0
- data/vendor/diy/test/files/namespace/animal/bird.rb +8 -0
- data/vendor/diy/test/files/namespace/animal/cat.rb +8 -0
- data/vendor/diy/test/files/namespace/animal/reptile/hardshell/turtle.rb +8 -0
- data/vendor/diy/test/files/namespace/animal/reptile/lizard.rb +8 -0
- data/vendor/diy/test/files/namespace/bad_module_specified.yml +8 -0
- data/vendor/diy/test/files/namespace/class_name_combine.yml +8 -0
- data/vendor/diy/test/files/namespace/no_module_specified.yml +8 -0
- data/vendor/diy/test/files/namespace/objects.yml +8 -0
- data/vendor/diy/test/files/namespace/road.rb +8 -0
- data/vendor/diy/test/files/namespace/sky.rb +8 -0
- data/vendor/diy/test/files/namespace/subcontext.yml +8 -0
- data/vendor/diy/test/files/non_singleton/air.rb +8 -0
- data/vendor/diy/test/files/non_singleton/fat_cat.rb +8 -0
- data/vendor/diy/test/files/non_singleton/objects.yml +8 -0
- data/vendor/diy/test/files/non_singleton/pig.rb +8 -0
- data/vendor/diy/test/files/non_singleton/thread_spinner.rb +8 -0
- data/vendor/diy/test/files/non_singleton/tick.rb +8 -0
- data/vendor/diy/test/files/non_singleton/yard.rb +8 -0
- data/vendor/diy/test/files/yak/core_model.rb +8 -0
- data/vendor/diy/test/files/yak/core_presenter.rb +8 -0
- data/vendor/diy/test/files/yak/core_view.rb +8 -0
- data/vendor/diy/test/files/yak/data_source.rb +8 -0
- data/vendor/diy/test/files/yak/fringe_model.rb +8 -0
- data/vendor/diy/test/files/yak/fringe_presenter.rb +8 -0
- data/vendor/diy/test/files/yak/fringe_view.rb +8 -0
- data/vendor/diy/test/files/yak/giant_squid.rb +8 -0
- data/vendor/diy/test/files/yak/krill.rb +8 -0
- data/vendor/diy/test/files/yak/my_objects.yml +8 -0
- data/vendor/diy/test/files/yak/sub_sub_context_test.yml +8 -0
- data/vendor/diy/test/test_helper.rb +8 -0
- data/vendor/unity/CMakeLists.txt +46 -33
- data/vendor/unity/LICENSE.txt +1 -1
- data/vendor/unity/README.md +33 -5
- data/vendor/unity/auto/__init__.py +7 -0
- data/vendor/unity/auto/colour_prompt.rb +6 -5
- data/vendor/unity/auto/colour_reporter.rb +7 -6
- data/vendor/unity/auto/extract_version.py +22 -0
- data/vendor/unity/auto/generate_config.yml +7 -0
- data/vendor/unity/auto/generate_module.rb +32 -27
- data/vendor/unity/auto/generate_test_runner.rb +71 -35
- data/vendor/unity/auto/parse_output.rb +90 -22
- data/vendor/unity/auto/run_test.erb +2 -2
- data/vendor/unity/auto/{unity_to_junit.py → stylize_as_junit.py} +54 -39
- data/vendor/unity/auto/stylize_as_junit.rb +8 -6
- data/vendor/unity/auto/test_file_filter.rb +11 -8
- data/vendor/unity/auto/type_sanitizer.rb +8 -1
- data/vendor/unity/auto/unity_test_summary.py +7 -6
- data/vendor/unity/auto/unity_test_summary.rb +13 -8
- data/vendor/unity/auto/yaml_helper.rb +23 -0
- data/vendor/unity/docs/CODE_OF_CONDUCT.md +138 -0
- data/vendor/unity/docs/CONTRIBUTING.md +238 -0
- data/vendor/unity/docs/MesonGeneratorRunner.md +18 -0
- data/vendor/unity/docs/UnityAssertionsReference.md +133 -60
- data/vendor/unity/docs/UnityChangeLog.md +110 -0
- data/vendor/unity/docs/UnityConfigurationGuide.md +151 -2
- data/vendor/unity/docs/UnityHelperScriptsGuide.md +289 -1
- data/vendor/unity/docs/UnityKnownIssues.md +13 -0
- data/vendor/unity/examples/example_1/makefile +6 -5
- data/vendor/unity/examples/example_1/meson.build +48 -0
- data/vendor/unity/examples/example_1/readme.txt +8 -1
- data/vendor/unity/examples/example_1/src/ProductionCode.c +6 -0
- data/vendor/unity/examples/example_1/src/ProductionCode.h +6 -0
- data/vendor/unity/examples/example_1/src/ProductionCode2.c +6 -0
- data/vendor/unity/examples/example_1/src/ProductionCode2.h +6 -0
- data/vendor/unity/examples/example_1/subprojects/unity.wrap +3 -0
- data/vendor/unity/examples/example_1/test/TestProductionCode.c +6 -0
- data/vendor/unity/examples/example_1/test/TestProductionCode2.c +6 -0
- data/vendor/unity/examples/example_2/makefile +6 -5
- data/vendor/unity/examples/example_2/src/ProductionCode.c +6 -0
- data/vendor/unity/examples/example_2/src/ProductionCode.h +6 -0
- data/vendor/unity/examples/example_2/src/ProductionCode2.c +6 -0
- data/vendor/unity/examples/example_2/src/ProductionCode2.h +6 -0
- data/vendor/unity/examples/example_2/test/TestProductionCode.c +7 -0
- data/vendor/unity/examples/example_2/test/TestProductionCode2.c +7 -0
- data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +7 -0
- data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +7 -0
- data/vendor/unity/examples/example_2/test/test_runners/all_tests.c +7 -0
- data/vendor/unity/examples/example_3/helper/UnityHelper.c +7 -0
- data/vendor/unity/examples/example_3/helper/UnityHelper.h +7 -0
- data/vendor/unity/examples/example_3/rakefile.rb +7 -0
- data/vendor/unity/examples/example_3/rakefile_helper.rb +26 -21
- data/vendor/unity/examples/example_3/src/ProductionCode.c +6 -0
- data/vendor/unity/examples/example_3/src/ProductionCode.h +6 -0
- data/vendor/unity/examples/example_3/src/ProductionCode2.c +6 -0
- data/vendor/unity/examples/example_3/src/ProductionCode2.h +6 -0
- data/vendor/unity/examples/example_3/target_gcc_32.yml +7 -0
- data/vendor/unity/examples/example_3/test/TestProductionCode.c +6 -0
- data/vendor/unity/examples/example_3/test/TestProductionCode2.c +6 -0
- data/vendor/unity/examples/example_4/meson.build +2 -2
- data/vendor/unity/examples/example_4/src/ProductionCode.c +6 -0
- data/vendor/unity/examples/example_4/src/ProductionCode.h +6 -0
- data/vendor/unity/examples/example_4/src/ProductionCode2.c +6 -0
- data/vendor/unity/examples/example_4/src/ProductionCode2.h +6 -0
- data/vendor/unity/examples/example_4/subprojects/unity.wrap +3 -1
- data/vendor/unity/examples/example_4/test/TestProductionCode.c +6 -0
- data/vendor/unity/examples/example_4/test/TestProductionCode2.c +6 -0
- data/vendor/unity/examples/example_4/test/test_runners/meson.build +3 -3
- data/vendor/unity/examples/unity_config.h +8 -1
- data/vendor/unity/extras/bdd/readme.md +40 -0
- data/vendor/unity/extras/bdd/src/unity_bdd.h +44 -0
- data/vendor/unity/extras/bdd/test/meson.build +9 -0
- data/vendor/unity/extras/bdd/test/test_bdd.c +129 -0
- data/vendor/unity/extras/fixture/readme.md +1 -1
- data/vendor/unity/extras/fixture/src/meson.build +10 -0
- data/vendor/unity/extras/fixture/src/unity_fixture.c +6 -6
- data/vendor/unity/extras/fixture/src/unity_fixture.h +18 -7
- data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +6 -6
- data/vendor/unity/extras/fixture/test/main/AllTests.c +6 -6
- data/vendor/unity/extras/fixture/test/template_fixture_tests.c +6 -6
- data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +6 -6
- data/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +6 -6
- data/vendor/unity/extras/memory/src/meson.build +9 -0
- data/vendor/unity/extras/memory/src/unity_memory.c +6 -5
- data/vendor/unity/extras/memory/src/unity_memory.h +6 -5
- data/vendor/unity/extras/memory/test/Makefile +7 -0
- data/vendor/unity/extras/memory/test/unity_memory_Test.c +6 -5
- data/vendor/unity/extras/memory/test/unity_memory_TestRunner.c +6 -5
- data/vendor/unity/extras/memory/test/unity_output_Spy.c +6 -5
- data/vendor/unity/extras/memory/test/unity_output_Spy.h +6 -5
- data/vendor/unity/library.json +25 -0
- data/vendor/unity/meson.build +71 -5
- data/vendor/unity/meson_options.txt +3 -0
- data/vendor/unity/platformio-build.py +24 -0
- data/vendor/unity/src/meson.build +11 -5
- data/vendor/unity/src/unity.c +534 -143
- data/vendor/unity/src/unity.h +50 -13
- data/vendor/unity/src/unity_internals.h +188 -58
- data/vendor/unity/test/Makefile +7 -0
- data/vendor/unity/test/rakefile +6 -5
- data/vendor/unity/test/rakefile_helper.rb +9 -8
- data/vendor/unity/test/spec/generate_module_existing_file_spec.rb +6 -0
- data/vendor/unity/test/targets/ansi.yml +7 -0
- data/vendor/unity/test/targets/clang_file.yml +7 -0
- data/vendor/unity/test/targets/clang_strict.yml +8 -0
- data/vendor/unity/test/targets/gcc_32.yml +7 -0
- data/vendor/unity/test/targets/gcc_64.yml +7 -0
- data/vendor/unity/test/targets/gcc_auto_limits.yml +7 -0
- data/vendor/unity/test/targets/gcc_auto_stdint.yml +7 -0
- data/vendor/unity/test/targets/gcc_manual_math.yml +7 -0
- data/vendor/unity/test/targets/hitech_picc18.yml +7 -0
- data/vendor/unity/test/targets/iar_arm_v4.yml +7 -0
- data/vendor/unity/test/targets/iar_arm_v5.yml +7 -0
- data/vendor/unity/test/targets/iar_arm_v5_3.yml +7 -0
- data/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +7 -0
- data/vendor/unity/test/targets/iar_cortexm3_v5.yml +7 -0
- data/vendor/unity/test/targets/iar_msp430.yml +7 -0
- data/vendor/unity/test/targets/iar_sh2a_v6.yml +7 -0
- data/vendor/unity/test/testdata/CException.h +7 -0
- data/vendor/unity/test/testdata/Defs.h +8 -0
- data/vendor/unity/test/testdata/cmock.h +7 -0
- data/vendor/unity/test/testdata/mockMock.h +7 -0
- data/vendor/unity/test/testdata/testRunnerGenerator.c +18 -3
- data/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +8 -5
- data/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +7 -4
- data/vendor/unity/test/tests/self_assessment_utils.h +12 -5
- data/vendor/unity/test/tests/test_generate_test_runner.rb +107 -26
- data/vendor/unity/test/tests/test_unity_arrays.c +73 -6
- data/vendor/unity/test/tests/test_unity_core.c +12 -8
- data/vendor/unity/test/tests/test_unity_doubles.c +517 -5
- data/vendor/unity/test/tests/test_unity_floats.c +516 -5
- data/vendor/unity/test/tests/test_unity_integers.c +21 -5
- data/vendor/unity/test/tests/test_unity_integers_64.c +16 -6
- data/vendor/unity/test/tests/test_unity_memory.c +6 -5
- data/vendor/unity/test/tests/test_unity_parameterized.c +146 -8
- data/vendor/unity/test/tests/test_unity_parameterizedDemo.c +28 -0
- data/vendor/unity/test/tests/test_unity_strings.c +6 -5
- data/vendor/unity/test/tests/types_for_test.h +21 -0
- metadata +315 -570
- data/assets/auto_link_deep_dependencies/src/a.c +0 -7
- data/assets/auto_link_deep_dependencies/src/b.c +0 -7
- data/assets/auto_link_deep_dependencies/src/c.c +0 -8
- data/assets/auto_link_deep_dependencies/src/internal_inc/a.h +0 -6
- data/assets/auto_link_deep_dependencies/src/internal_inc/b.h +0 -6
- data/assets/auto_link_deep_dependencies/src/internal_inc/c.h +0 -6
- data/assets/auto_link_deep_dependencies/src/internal_inc/never_compiled.h +0 -6
- data/assets/auto_link_deep_dependencies/src/never_compiled.c +0 -6
- data/assets/auto_link_deep_dependencies/test/test_a.c +0 -11
- data/assets/auto_link_deep_dependencies/test/test_b.c +0 -11
- data/assets/auto_link_deep_dependencies/test/test_c.c +0 -11
- data/assets/project_as_gem.yml +0 -101
- data/assets/project_with_guts.yml +0 -102
- data/assets/project_with_guts_gcov.yml +0 -102
- data/ceedling.sublime-project +0 -28
- data/ceedling.sublime-workspace +0 -452
- data/docs/Ceedling Powerful Plugins.pdf +0 -0
- data/examples/blinky/project.yml +0 -101
- data/examples/blinky/rakefile.rb +0 -30
- data/examples/blinky/src/BlinkTask.c +0 -21
- data/examples/blinky/src/BlinkTask.h +0 -6
- data/examples/blinky/src/Configure.c +0 -36
- data/examples/blinky/src/Configure.h +0 -6
- data/examples/blinky/src/main.c +0 -51
- data/examples/blinky/src/main.h +0 -9
- data/examples/blinky/test/support/stub_interrupt.h +0 -347
- data/examples/blinky/test/support/stub_io.h +0 -421
- data/examples/blinky/test/support/stub_iom328p.h +0 -883
- data/examples/blinky/test/support/stub_sfr_defs.h +0 -269
- data/examples/blinky/test/test_BlinkTask.c +0 -42
- data/examples/blinky/test/test_Configure.c +0 -29
- data/examples/blinky/test/test_main.c +0 -60
- data/examples/temp_sensor/build/test/cache/AdcConductor.h +0 -20
- data/examples/temp_sensor/build/test/cache/AdcHardware.h +0 -16
- data/examples/temp_sensor/build/test/cache/AdcHardwareConfigurator.h +0 -14
- data/examples/temp_sensor/build/test/cache/AdcModel.h +0 -20
- data/examples/temp_sensor/build/test/cache/AdcTemperatureSensor.h +0 -14
- data/examples/temp_sensor/build/test/cache/Executor.h +0 -12
- data/examples/temp_sensor/build/test/cache/IntrinsicsWrapper.h +0 -9
- data/examples/temp_sensor/build/test/cache/Model.h +0 -10
- data/examples/temp_sensor/build/test/cache/TaskScheduler.h +0 -16
- data/examples/temp_sensor/build/test/cache/TemperatureCalculator.h +0 -10
- data/examples/temp_sensor/build/test/cache/TemperatureFilter.h +0 -14
- data/examples/temp_sensor/build/test/cache/TestAdcConductor.c +0 -169
- data/examples/temp_sensor/build/test/cache/TestAdcHardware.c +0 -82
- data/examples/temp_sensor/build/test/cache/TestAdcModel.c +0 -59
- data/examples/temp_sensor/build/test/cache/TestExecutor.c +0 -63
- data/examples/temp_sensor/build/test/cache/TestMain.c +0 -43
- data/examples/temp_sensor/build/test/cache/TestModel.c +0 -34
- data/examples/temp_sensor/build/test/cache/TestTaskScheduler.c +0 -204
- data/examples/temp_sensor/build/test/cache/TestTemperatureCalculator.c +0 -70
- data/examples/temp_sensor/build/test/cache/TestTemperatureFilter.c +0 -154
- data/examples/temp_sensor/build/test/cache/TestTimerConductor.c +0 -57
- data/examples/temp_sensor/build/test/cache/TestTimerHardware.c +0 -47
- data/examples/temp_sensor/build/test/cache/TestTimerModel.c +0 -31
- data/examples/temp_sensor/build/test/cache/TestUsartBaudRateRegisterCalculator.c +0 -38
- data/examples/temp_sensor/build/test/cache/TestUsartConductor.c +0 -73
- data/examples/temp_sensor/build/test/cache/TestUsartHardware.c +0 -66
- data/examples/temp_sensor/build/test/cache/TestUsartModel.c +0 -73
- data/examples/temp_sensor/build/test/cache/TimerConductor.h +0 -12
- data/examples/temp_sensor/build/test/cache/TimerConfigurator.h +0 -24
- data/examples/temp_sensor/build/test/cache/TimerHardware.h +0 -10
- data/examples/temp_sensor/build/test/cache/TimerInterruptHandler.h +0 -14
- data/examples/temp_sensor/build/test/cache/TimerModel.h +0 -10
- data/examples/temp_sensor/build/test/cache/UsartBaudRateRegisterCalculator.h +0 -10
- data/examples/temp_sensor/build/test/cache/UsartConductor.h +0 -9
- data/examples/temp_sensor/build/test/cache/UsartConfigurator.h +0 -20
- data/examples/temp_sensor/build/test/cache/UsartHardware.h +0 -12
- data/examples/temp_sensor/build/test/cache/UsartModel.h +0 -14
- data/examples/temp_sensor/build/test/cache/UsartPutChar.h +0 -10
- data/examples/temp_sensor/build/test/cache/defines_dependency.yml +0 -77
- data/examples/temp_sensor/build/test/cache/input.yml +0 -310
- data/examples/temp_sensor/build/test/dependencies/AdcConductor.d +0 -2
- data/examples/temp_sensor/build/test/dependencies/AdcHardware.d +0 -3
- data/examples/temp_sensor/build/test/dependencies/AdcModel.d +0 -3
- data/examples/temp_sensor/build/test/dependencies/Executor.d +0 -3
- data/examples/temp_sensor/build/test/dependencies/Main.d +0 -11
- data/examples/temp_sensor/build/test/dependencies/MockAdcConductor.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/MockAdcHardware.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/MockAdcHardwareConfigurator.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/MockAdcModel.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/MockAdcTemperatureSensor.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/MockExecutor.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/MockIntrinsicsWrapper.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/MockModel.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/MockTaskScheduler.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/MockTemperatureCalculator.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/MockTemperatureFilter.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/MockTimerConductor.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/MockTimerConfigurator.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/MockTimerHardware.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/MockTimerInterruptHandler.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/MockTimerModel.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/MockUsartBaudRateRegisterCalculator.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/MockUsartConductor.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/MockUsartConfigurator.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/MockUsartHardware.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/MockUsartModel.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/MockUsartPutChar.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/Model.d +0 -2
- data/examples/temp_sensor/build/test/dependencies/TaskScheduler.d +0 -2
- data/examples/temp_sensor/build/test/dependencies/TemperatureCalculator.d +0 -2
- data/examples/temp_sensor/build/test/dependencies/TemperatureFilter.d +0 -2
- data/examples/temp_sensor/build/test/dependencies/TestAdcConductor.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/TestAdcConductor_runner.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/TestAdcHardware.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/TestAdcHardware_runner.d +0 -9
- data/examples/temp_sensor/build/test/dependencies/TestAdcModel.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/TestAdcModel_runner.d +0 -10
- data/examples/temp_sensor/build/test/dependencies/TestExecutor.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/TestExecutor_runner.d +0 -11
- data/examples/temp_sensor/build/test/dependencies/TestMain.d +0 -4
- data/examples/temp_sensor/build/test/dependencies/TestMain_runner.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/TestModel.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/TestModel_runner.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/TestTaskScheduler.d +0 -4
- data/examples/temp_sensor/build/test/dependencies/TestTaskScheduler_runner.d +0 -4
- data/examples/temp_sensor/build/test/dependencies/TestTemperatureCalculator.d +0 -5
- data/examples/temp_sensor/build/test/dependencies/TestTemperatureCalculator_runner.d +0 -4
- data/examples/temp_sensor/build/test/dependencies/TestTemperatureFilter.d +0 -4
- data/examples/temp_sensor/build/test/dependencies/TestTemperatureFilter_runner.d +0 -4
- data/examples/temp_sensor/build/test/dependencies/TestTimerConductor.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/TestTimerConductor_runner.d +0 -10
- data/examples/temp_sensor/build/test/dependencies/TestTimerHardware.d +0 -5
- data/examples/temp_sensor/build/test/dependencies/TestTimerHardware_runner.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/TestTimerModel.d +0 -5
- data/examples/temp_sensor/build/test/dependencies/TestTimerModel_runner.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/TestUsartBaudRateRegisterCalculator.d +0 -5
- data/examples/temp_sensor/build/test/dependencies/TestUsartBaudRateRegisterCalculator_runner.d +0 -4
- data/examples/temp_sensor/build/test/dependencies/TestUsartConductor.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/TestUsartConductor_runner.d +0 -9
- data/examples/temp_sensor/build/test/dependencies/TestUsartHardware.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/TestUsartHardware_runner.d +0 -8
- data/examples/temp_sensor/build/test/dependencies/TestUsartModel.d +0 -7
- data/examples/temp_sensor/build/test/dependencies/TestUsartModel_runner.d +0 -9
- data/examples/temp_sensor/build/test/dependencies/TimerConductor.d +0 -3
- data/examples/temp_sensor/build/test/dependencies/TimerHardware.d +0 -2
- data/examples/temp_sensor/build/test/dependencies/TimerModel.d +0 -2
- data/examples/temp_sensor/build/test/dependencies/UnityHelper.d +0 -4
- data/examples/temp_sensor/build/test/dependencies/UsartBaudRateRegisterCalculator.d +0 -3
- data/examples/temp_sensor/build/test/dependencies/UsartConductor.d +0 -3
- data/examples/temp_sensor/build/test/dependencies/UsartHardware.d +0 -2
- data/examples/temp_sensor/build/test/dependencies/UsartModel.d +0 -3
- data/examples/temp_sensor/build/test/dependencies/cmock.d +0 -6
- data/examples/temp_sensor/build/test/dependencies/unity.d +0 -4
- data/examples/temp_sensor/build/test/mocks/MockAdcConductor.c +0 -391
- data/examples/temp_sensor/build/test/mocks/MockAdcConductor.h +0 -64
- data/examples/temp_sensor/build/test/mocks/MockAdcHardware.c +0 -313
- data/examples/temp_sensor/build/test/mocks/MockAdcHardware.h +0 -58
- data/examples/temp_sensor/build/test/mocks/MockAdcHardwareConfigurator.c +0 -218
- data/examples/temp_sensor/build/test/mocks/MockAdcHardwareConfigurator.h +0 -52
- data/examples/temp_sensor/build/test/mocks/MockAdcModel.c +0 -453
- data/examples/temp_sensor/build/test/mocks/MockAdcModel.h +0 -64
- data/examples/temp_sensor/build/test/mocks/MockAdcTemperatureSensor.c +0 -252
- data/examples/temp_sensor/build/test/mocks/MockAdcTemperatureSensor.h +0 -52
- data/examples/temp_sensor/build/test/mocks/MockExecutor.c +0 -174
- data/examples/temp_sensor/build/test/mocks/MockExecutor.h +0 -46
- data/examples/temp_sensor/build/test/mocks/MockIntrinsicsWrapper.c +0 -157
- data/examples/temp_sensor/build/test/mocks/MockIntrinsicsWrapper.h +0 -46
- data/examples/temp_sensor/build/test/mocks/MockModel.c +0 -96
- data/examples/temp_sensor/build/test/mocks/MockModel.h +0 -40
- data/examples/temp_sensor/build/test/mocks/MockTaskScheduler.c +0 -326
- data/examples/temp_sensor/build/test/mocks/MockTaskScheduler.h +0 -58
- data/examples/temp_sensor/build/test/mocks/MockTemperatureCalculator.c +0 -126
- data/examples/temp_sensor/build/test/mocks/MockTemperatureCalculator.h +0 -40
- data/examples/temp_sensor/build/test/mocks/MockTemperatureFilter.c +0 -248
- data/examples/temp_sensor/build/test/mocks/MockTemperatureFilter.h +0 -52
- data/examples/temp_sensor/build/test/mocks/MockTimerConductor.c +0 -157
- data/examples/temp_sensor/build/test/mocks/MockTimerConductor.h +0 -46
- data/examples/temp_sensor/build/test/mocks/MockTimerConfigurator.c +0 -523
- data/examples/temp_sensor/build/test/mocks/MockTimerConfigurator.h +0 -82
- data/examples/temp_sensor/build/test/mocks/MockTimerHardware.c +0 -96
- data/examples/temp_sensor/build/test/mocks/MockTimerHardware.h +0 -40
- data/examples/temp_sensor/build/test/mocks/MockTimerInterruptHandler.c +0 -248
- data/examples/temp_sensor/build/test/mocks/MockTimerInterruptHandler.h +0 -52
- data/examples/temp_sensor/build/test/mocks/MockTimerModel.c +0 -109
- data/examples/temp_sensor/build/test/mocks/MockTimerModel.h +0 -40
- data/examples/temp_sensor/build/test/mocks/MockUsartBaudRateRegisterCalculator.c +0 -133
- data/examples/temp_sensor/build/test/mocks/MockUsartBaudRateRegisterCalculator.h +0 -40
- data/examples/temp_sensor/build/test/mocks/MockUsartConductor.c +0 -157
- data/examples/temp_sensor/build/test/mocks/MockUsartConductor.h +0 -46
- data/examples/temp_sensor/build/test/mocks/MockUsartConfigurator.c +0 -414
- data/examples/temp_sensor/build/test/mocks/MockUsartConfigurator.h +0 -70
- data/examples/temp_sensor/build/test/mocks/MockUsartHardware.c +0 -183
- data/examples/temp_sensor/build/test/mocks/MockUsartHardware.h +0 -46
- data/examples/temp_sensor/build/test/mocks/MockUsartModel.c +0 -269
- data/examples/temp_sensor/build/test/mocks/MockUsartModel.h +0 -52
- data/examples/temp_sensor/build/test/mocks/MockUsartPutChar.c +0 -109
- data/examples/temp_sensor/build/test/mocks/MockUsartPutChar.h +0 -40
- data/examples/temp_sensor/build/test/out/TestAdcConductor.out +0 -0
- data/examples/temp_sensor/build/test/out/TestAdcHardware.out +0 -0
- data/examples/temp_sensor/build/test/out/TestAdcModel.out +0 -0
- data/examples/temp_sensor/build/test/out/TestExecutor.out +0 -0
- data/examples/temp_sensor/build/test/out/TestMain.out +0 -0
- data/examples/temp_sensor/build/test/out/TestModel.out +0 -0
- data/examples/temp_sensor/build/test/out/TestTaskScheduler.out +0 -0
- data/examples/temp_sensor/build/test/out/TestTemperatureCalculator.out +0 -0
- data/examples/temp_sensor/build/test/out/TestTemperatureFilter.out +0 -0
- data/examples/temp_sensor/build/test/out/TestTimerConductor.out +0 -0
- data/examples/temp_sensor/build/test/out/TestTimerHardware.out +0 -0
- data/examples/temp_sensor/build/test/out/TestTimerModel.out +0 -0
- data/examples/temp_sensor/build/test/out/TestUsartBaudRateRegisterCalculator.out +0 -0
- data/examples/temp_sensor/build/test/out/TestUsartConductor.out +0 -0
- data/examples/temp_sensor/build/test/out/TestUsartHardware.out +0 -0
- data/examples/temp_sensor/build/test/out/TestUsartModel.out +0 -0
- data/examples/temp_sensor/build/test/out/c/AdcConductor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/AdcHardware.o +0 -0
- data/examples/temp_sensor/build/test/out/c/AdcModel.o +0 -0
- data/examples/temp_sensor/build/test/out/c/Executor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/Main.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockAdcConductor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockAdcHardware.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockAdcHardwareConfigurator.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockAdcModel.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockAdcTemperatureSensor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockExecutor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockIntrinsicsWrapper.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockModel.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockTaskScheduler.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockTemperatureCalculator.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockTemperatureFilter.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockTimerConductor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockTimerConfigurator.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockTimerHardware.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockTimerInterruptHandler.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockTimerModel.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockUsartBaudRateRegisterCalculator.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockUsartConductor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockUsartConfigurator.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockUsartHardware.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockUsartModel.o +0 -0
- data/examples/temp_sensor/build/test/out/c/MockUsartPutChar.o +0 -0
- data/examples/temp_sensor/build/test/out/c/Model.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TaskScheduler.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TemperatureCalculator.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TemperatureFilter.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestAdcConductor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestAdcConductor_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestAdcHardware.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestAdcHardware_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestAdcModel.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestAdcModel_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestExecutor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestExecutor_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestMain.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestMain_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestModel.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestModel_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTaskScheduler.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTaskScheduler_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTemperatureCalculator.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTemperatureCalculator_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTemperatureFilter.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTemperatureFilter_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTimerConductor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTimerConductor_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTimerHardware.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTimerHardware_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTimerModel.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestTimerModel_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestUsartBaudRateRegisterCalculator.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestUsartBaudRateRegisterCalculator_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestUsartConductor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestUsartConductor_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestUsartHardware.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestUsartHardware_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestUsartModel.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TestUsartModel_runner.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TimerConductor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TimerHardware.o +0 -0
- data/examples/temp_sensor/build/test/out/c/TimerModel.o +0 -0
- data/examples/temp_sensor/build/test/out/c/UnityHelper.o +0 -0
- data/examples/temp_sensor/build/test/out/c/UsartBaudRateRegisterCalculator.o +0 -0
- data/examples/temp_sensor/build/test/out/c/UsartConductor.o +0 -0
- data/examples/temp_sensor/build/test/out/c/UsartHardware.o +0 -0
- data/examples/temp_sensor/build/test/out/c/UsartModel.o +0 -0
- data/examples/temp_sensor/build/test/out/c/cmock.o +0 -0
- data/examples/temp_sensor/build/test/out/c/unity.o +0 -0
- data/examples/temp_sensor/build/test/preprocess/files/AdcConductor.h +0 -20
- data/examples/temp_sensor/build/test/preprocess/files/AdcHardware.h +0 -16
- data/examples/temp_sensor/build/test/preprocess/files/AdcHardwareConfigurator.h +0 -14
- data/examples/temp_sensor/build/test/preprocess/files/AdcModel.h +0 -20
- data/examples/temp_sensor/build/test/preprocess/files/AdcTemperatureSensor.h +0 -14
- data/examples/temp_sensor/build/test/preprocess/files/Executor.h +0 -12
- data/examples/temp_sensor/build/test/preprocess/files/IntrinsicsWrapper.h +0 -9
- data/examples/temp_sensor/build/test/preprocess/files/Model.h +0 -10
- data/examples/temp_sensor/build/test/preprocess/files/TaskScheduler.h +0 -16
- data/examples/temp_sensor/build/test/preprocess/files/TemperatureCalculator.h +0 -10
- data/examples/temp_sensor/build/test/preprocess/files/TemperatureFilter.h +0 -14
- data/examples/temp_sensor/build/test/preprocess/files/TestAdcConductor.c +0 -169
- data/examples/temp_sensor/build/test/preprocess/files/TestAdcHardware.c +0 -82
- data/examples/temp_sensor/build/test/preprocess/files/TestAdcModel.c +0 -59
- data/examples/temp_sensor/build/test/preprocess/files/TestExecutor.c +0 -63
- data/examples/temp_sensor/build/test/preprocess/files/TestMain.c +0 -43
- data/examples/temp_sensor/build/test/preprocess/files/TestModel.c +0 -34
- data/examples/temp_sensor/build/test/preprocess/files/TestTaskScheduler.c +0 -204
- data/examples/temp_sensor/build/test/preprocess/files/TestTemperatureCalculator.c +0 -70
- data/examples/temp_sensor/build/test/preprocess/files/TestTemperatureFilter.c +0 -154
- data/examples/temp_sensor/build/test/preprocess/files/TestTimerConductor.c +0 -57
- data/examples/temp_sensor/build/test/preprocess/files/TestTimerHardware.c +0 -47
- data/examples/temp_sensor/build/test/preprocess/files/TestTimerModel.c +0 -31
- data/examples/temp_sensor/build/test/preprocess/files/TestUsartBaudRateRegisterCalculator.c +0 -38
- data/examples/temp_sensor/build/test/preprocess/files/TestUsartConductor.c +0 -73
- data/examples/temp_sensor/build/test/preprocess/files/TestUsartHardware.c +0 -66
- data/examples/temp_sensor/build/test/preprocess/files/TestUsartModel.c +0 -73
- data/examples/temp_sensor/build/test/preprocess/files/TimerConductor.h +0 -12
- data/examples/temp_sensor/build/test/preprocess/files/TimerConfigurator.h +0 -24
- data/examples/temp_sensor/build/test/preprocess/files/TimerHardware.h +0 -10
- data/examples/temp_sensor/build/test/preprocess/files/TimerInterruptHandler.h +0 -14
- data/examples/temp_sensor/build/test/preprocess/files/TimerModel.h +0 -10
- data/examples/temp_sensor/build/test/preprocess/files/UsartBaudRateRegisterCalculator.h +0 -10
- data/examples/temp_sensor/build/test/preprocess/files/UsartConductor.h +0 -9
- data/examples/temp_sensor/build/test/preprocess/files/UsartConfigurator.h +0 -20
- data/examples/temp_sensor/build/test/preprocess/files/UsartHardware.h +0 -12
- data/examples/temp_sensor/build/test/preprocess/files/UsartModel.h +0 -14
- data/examples/temp_sensor/build/test/preprocess/files/UsartPutChar.h +0 -10
- data/examples/temp_sensor/build/test/preprocess/includes/AdcConductor.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/AdcHardware.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/AdcHardwareConfigurator.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/AdcModel.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/AdcTemperatureSensor.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/Executor.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/IntrinsicsWrapper.h +0 -1
- data/examples/temp_sensor/build/test/preprocess/includes/Model.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/TaskScheduler.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/TemperatureCalculator.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/TemperatureFilter.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/TestAdcConductor.c +0 -7
- data/examples/temp_sensor/build/test/preprocess/includes/TestAdcHardware.c +0 -6
- data/examples/temp_sensor/build/test/preprocess/includes/TestAdcModel.c +0 -7
- data/examples/temp_sensor/build/test/preprocess/includes/TestExecutor.c +0 -9
- data/examples/temp_sensor/build/test/preprocess/includes/TestMain.c +0 -5
- data/examples/temp_sensor/build/test/preprocess/includes/TestModel.c +0 -6
- data/examples/temp_sensor/build/test/preprocess/includes/TestTaskScheduler.c +0 -4
- data/examples/temp_sensor/build/test/preprocess/includes/TestTemperatureCalculator.c +0 -4
- data/examples/temp_sensor/build/test/preprocess/includes/TestTemperatureFilter.c +0 -4
- data/examples/temp_sensor/build/test/preprocess/includes/TestTimerConductor.c +0 -7
- data/examples/temp_sensor/build/test/preprocess/includes/TestTimerHardware.c +0 -5
- data/examples/temp_sensor/build/test/preprocess/includes/TestTimerModel.c +0 -5
- data/examples/temp_sensor/build/test/preprocess/includes/TestUsartBaudRateRegisterCalculator.c +0 -4
- data/examples/temp_sensor/build/test/preprocess/includes/TestUsartConductor.c +0 -7
- data/examples/temp_sensor/build/test/preprocess/includes/TestUsartHardware.c +0 -6
- data/examples/temp_sensor/build/test/preprocess/includes/TestUsartModel.c +0 -7
- data/examples/temp_sensor/build/test/preprocess/includes/TimerConductor.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/TimerConfigurator.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/TimerHardware.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/TimerInterruptHandler.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/TimerModel.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/UsartBaudRateRegisterCalculator.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/UsartConductor.h +0 -1
- data/examples/temp_sensor/build/test/preprocess/includes/UsartConfigurator.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/UsartHardware.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/UsartModel.h +0 -2
- data/examples/temp_sensor/build/test/preprocess/includes/UsartPutChar.h +0 -2
- data/examples/temp_sensor/build/test/results/TestAdcConductor.pass +0 -46
- data/examples/temp_sensor/build/test/results/TestAdcHardware.pass +0 -30
- data/examples/temp_sensor/build/test/results/TestAdcModel.pass +0 -26
- data/examples/temp_sensor/build/test/results/TestExecutor.pass +0 -22
- data/examples/temp_sensor/build/test/results/TestMain.pass +0 -18
- data/examples/temp_sensor/build/test/results/TestModel.pass +0 -18
- data/examples/temp_sensor/build/test/results/TestTaskScheduler.pass +0 -46
- data/examples/temp_sensor/build/test/results/TestTemperatureCalculator.pass +0 -22
- data/examples/temp_sensor/build/test/results/TestTemperatureFilter.pass +0 -30
- data/examples/temp_sensor/build/test/results/TestTimerConductor.pass +0 -22
- data/examples/temp_sensor/build/test/results/TestTimerHardware.pass +0 -18
- data/examples/temp_sensor/build/test/results/TestTimerModel.pass +0 -18
- data/examples/temp_sensor/build/test/results/TestUsartBaudRateRegisterCalculator.pass +0 -18
- data/examples/temp_sensor/build/test/results/TestUsartConductor.pass +0 -26
- data/examples/temp_sensor/build/test/results/TestUsartHardware.pass +0 -22
- data/examples/temp_sensor/build/test/results/TestUsartModel.pass +0 -30
- data/examples/temp_sensor/build/test/runners/TestAdcConductor_runner.c +0 -105
- data/examples/temp_sensor/build/test/runners/TestAdcHardware_runner.c +0 -97
- data/examples/temp_sensor/build/test/runners/TestAdcModel_runner.c +0 -99
- data/examples/temp_sensor/build/test/runners/TestExecutor_runner.c +0 -105
- data/examples/temp_sensor/build/test/runners/TestMain_runner.c +0 -87
- data/examples/temp_sensor/build/test/runners/TestModel_runner.c +0 -91
- data/examples/temp_sensor/build/test/runners/TestTaskScheduler_runner.c +0 -95
- data/examples/temp_sensor/build/test/runners/TestTemperatureCalculator_runner.c +0 -83
- data/examples/temp_sensor/build/test/runners/TestTemperatureFilter_runner.c +0 -87
- data/examples/temp_sensor/build/test/runners/TestTimerConductor_runner.c +0 -97
- data/examples/temp_sensor/build/test/runners/TestTimerHardware_runner.c +0 -87
- data/examples/temp_sensor/build/test/runners/TestTimerModel_runner.c +0 -87
- data/examples/temp_sensor/build/test/runners/TestUsartBaudRateRegisterCalculator_runner.c +0 -81
- data/examples/temp_sensor/build/test/runners/TestUsartConductor_runner.c +0 -99
- data/examples/temp_sensor/build/test/runners/TestUsartHardware_runner.c +0 -93
- data/examples/temp_sensor/build/test/runners/TestUsartModel_runner.c +0 -97
- data/lib/ceedling/build_invoker_utils.rb +0 -39
- data/lib/ceedling/cmock_builder.rb +0 -15
- data/lib/ceedling/file_system_utils.rb +0 -69
- data/lib/ceedling/par_map.rb +0 -19
- data/lib/ceedling/plugin_builder.rb +0 -53
- data/lib/ceedling/preprocessinator_helper.rb +0 -50
- data/lib/ceedling/project_config_manager.rb +0 -52
- data/lib/ceedling/project_file_loader.rb +0 -99
- data/lib/ceedling/rules_cmock.rake +0 -9
- data/lib/ceedling/rules_preprocess.rake +0 -26
- data/lib/ceedling/rules_release_deep_dependencies.rake +0 -15
- data/lib/ceedling/rules_tests_deep_dependencies.rake +0 -15
- data/lib/ceedling/streaminator.rb +0 -40
- data/lib/ceedling/streaminator_helper.rb +0 -15
- data/lib/ceedling/target_loader.rb +0 -38
- data/lib/ceedling/tasks_release_deep_dependencies.rake +0 -9
- data/lib/ceedling/tasks_tests_deep_dependencies.rake +0 -9
- data/lib/ceedling/tasks_vendor.rake +0 -35
- data/lib/ceedling/test_includes_extractor.rb +0 -111
- data/lib/ceedling/version.rb +0 -54
- data/out.fail +0 -24
- data/plugins/colour_report/README.md +0 -20
- data/plugins/colour_report/lib/colour_report.rb +0 -16
- data/plugins/compile_commands_json/README.md +0 -29
- data/plugins/compile_commands_json/lib/compile_commands_json.rb +0 -35
- data/plugins/fake_function_framework/Rakefile +0 -19
- data/plugins/fake_function_framework/examples/fff_example/project.yml +0 -71
- data/plugins/fake_function_framework/examples/fff_example/rakefile.rb +0 -7
- data/plugins/fake_function_framework/examples/fff_example/src/bar.c +0 -1
- data/plugins/fake_function_framework/examples/fff_example/src/custom_types.h +0 -6
- data/plugins/fake_function_framework/examples/fff_example/src/display.c +0 -7
- data/plugins/fake_function_framework/examples/fff_example/src/foo.c +0 -16
- data/plugins/fake_function_framework/examples/fff_example/src/foo.h +0 -8
- data/plugins/fake_function_framework/examples/fff_example/src/subfolder/zzz.c +0 -1
- data/plugins/fake_function_framework/examples/fff_example/src/subfolder/zzz.h +0 -6
- data/plugins/gcov/assets/template.erb +0 -15
- data/plugins/json_tests_report/README.md +0 -36
- data/plugins/json_tests_report/lib/json_tests_report.rb +0 -83
- data/plugins/junit_tests_report/README.md +0 -36
- data/plugins/junit_tests_report/lib/junit_tests_report.rb +0 -134
- data/plugins/raw_output_report/README.md +0 -19
- data/plugins/raw_output_report/lib/raw_output_report.rb +0 -41
- data/plugins/stdout_gtestlike_tests_report/README.md +0 -19
- data/plugins/stdout_gtestlike_tests_report/assets/template.erb copy +0 -59
- data/plugins/stdout_gtestlike_tests_report/config/stdout_gtestlike_tests_report.yml +0 -4
- data/plugins/stdout_gtestlike_tests_report/lib/stdout_gtestlike_tests_report.rb +0 -43
- data/plugins/stdout_ide_tests_report/README.md +0 -18
- data/plugins/stdout_ide_tests_report/config/stdout_ide_tests_report.yml +0 -4
- data/plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb +0 -44
- data/plugins/stdout_pretty_tests_report/README.md +0 -20
- data/plugins/stdout_pretty_tests_report/config/stdout_pretty_tests_report.yml +0 -4
- data/plugins/stdout_pretty_tests_report/lib/stdout_pretty_tests_report.rb +0 -47
- data/plugins/subprojects/README.md +0 -63
- data/plugins/subprojects/config/defaults.yml +0 -33
- data/plugins/subprojects/lib/subprojects.rb +0 -92
- data/plugins/subprojects/subprojects.rake +0 -78
- data/plugins/teamcity_tests_report/README.md +0 -18
- data/plugins/teamcity_tests_report/config/teamcity_tests_report.yml +0 -4
- data/plugins/teamcity_tests_report/lib/teamcity_tests_report.rb +0 -57
- data/plugins/warnings_report/README.md +0 -19
- data/plugins/warnings_report/lib/warnings_report.rb +0 -69
- data/plugins/xml_tests_report/README.md +0 -36
- data/plugins/xml_tests_report/lib/xml_tests_report.rb +0 -110
- data/spec/build_invoker_utils_spec.rb +0 -54
- data/spec/ceedling_spec.rb +0 -154
- data/spec/par_map_spec.rb +0 -57
- data/spec/system/deployment_spec.rb +0 -256
- data/spec/target_loader_spec.rb +0 -30
- data/spec/uncatagorized_specs_spec.rb +0 -8
- data/vendor/behaviors/Manifest.txt +0 -9
- data/vendor/behaviors/Rakefile +0 -19
- data/vendor/behaviors/lib/behaviors/reporttask.rb +0 -158
- data/vendor/behaviors/lib/behaviors.rb +0 -76
- data/vendor/behaviors/test/behaviors_tasks_test.rb +0 -73
- data/vendor/behaviors/test/behaviors_test.rb +0 -50
- data/vendor/behaviors/test/tasks_test/Rakefile +0 -19
- data/vendor/behaviors/test/tasks_test/lib/user.rb +0 -2
- data/vendor/behaviors/test/tasks_test/test/user_test.rb +0 -17
- data/vendor/c_exception/Gemfile +0 -4
- data/vendor/c_exception/Gemfile.lock +0 -12
- data/vendor/cmock/examples/temp_sensor/gcc.yml +0 -44
- data/vendor/cmock/examples/temp_sensor/iar_v4.yml +0 -92
- data/vendor/cmock/examples/temp_sensor/iar_v5.yml +0 -81
- data/vendor/cmock/vendor/c_exception/Gemfile +0 -4
- data/vendor/cmock/vendor/c_exception/Gemfile.lock +0 -12
- data/vendor/hardmock/CHANGES +0 -78
- data/vendor/hardmock/LICENSE +0 -7
- data/vendor/hardmock/README +0 -70
- data/vendor/hardmock/Rakefile +0 -8
- data/vendor/hardmock/config/environment.rb +0 -12
- data/vendor/hardmock/lib/assert_error.rb +0 -23
- data/vendor/hardmock/lib/extend_test_unit.rb +0 -14
- data/vendor/hardmock/lib/hardmock/errors.rb +0 -22
- data/vendor/hardmock/lib/hardmock/expectation.rb +0 -229
- data/vendor/hardmock/lib/hardmock/expectation_builder.rb +0 -9
- data/vendor/hardmock/lib/hardmock/expector.rb +0 -26
- data/vendor/hardmock/lib/hardmock/method_cleanout.rb +0 -33
- data/vendor/hardmock/lib/hardmock/mock.rb +0 -180
- data/vendor/hardmock/lib/hardmock/mock_control.rb +0 -53
- data/vendor/hardmock/lib/hardmock/stubbing.rb +0 -210
- data/vendor/hardmock/lib/hardmock/trapper.rb +0 -31
- data/vendor/hardmock/lib/hardmock/utils.rb +0 -9
- data/vendor/hardmock/lib/hardmock.rb +0 -86
- data/vendor/hardmock/lib/test_unit_before_after.rb +0 -169
- data/vendor/hardmock/rake_tasks/rdoc.rake +0 -19
- data/vendor/hardmock/rake_tasks/rdoc_options.rb +0 -4
- data/vendor/hardmock/rake_tasks/test.rake +0 -22
- data/vendor/hardmock/test/functional/assert_error_test.rb +0 -52
- data/vendor/hardmock/test/functional/auto_verify_test.rb +0 -178
- data/vendor/hardmock/test/functional/direct_mock_usage_test.rb +0 -396
- data/vendor/hardmock/test/functional/hardmock_test.rb +0 -434
- data/vendor/hardmock/test/functional/stubbing_test.rb +0 -479
- data/vendor/hardmock/test/test_helper.rb +0 -43
- data/vendor/hardmock/test/unit/expectation_builder_test.rb +0 -19
- data/vendor/hardmock/test/unit/expectation_test.rb +0 -372
- data/vendor/hardmock/test/unit/expector_test.rb +0 -57
- data/vendor/hardmock/test/unit/method_cleanout_test.rb +0 -36
- data/vendor/hardmock/test/unit/mock_control_test.rb +0 -175
- data/vendor/hardmock/test/unit/mock_test.rb +0 -279
- data/vendor/hardmock/test/unit/test_unit_before_after_test.rb +0 -452
- data/vendor/hardmock/test/unit/trapper_test.rb +0 -62
- data/vendor/hardmock/test/unit/verify_error_test.rb +0 -40
@@ -121,6 +121,12 @@ _Example:_
|
|
121
121
|
#define UNITY_POINTER_WIDTH 64 // Set UNITY_POINTER_WIDTH to 64-bit
|
122
122
|
```
|
123
123
|
|
124
|
+
#### `UNITY_COMPARE_PTRS_ON_ZERO_ARRAY`
|
125
|
+
|
126
|
+
Define this to make all array assertions compare pointers instead of contents when a length of zero is specified. When not enabled,
|
127
|
+
defining a length of zero will always result in a failure and a message warning the user that they have tried to compare empty
|
128
|
+
arrays.
|
129
|
+
|
124
130
|
#### `UNITY_SUPPORT_64`
|
125
131
|
|
126
132
|
Unity will automatically include 64-bit support if it auto-detects it, or if your `int`, `long`, or pointer widths are greater than 32-bits.
|
@@ -216,6 +222,17 @@ _Example:_
|
|
216
222
|
#define UNITY_FLOAT_PRECISION 0.001f
|
217
223
|
```
|
218
224
|
|
225
|
+
#### `UNITY_IS_NAN` and `UNITY_IS_INF`
|
226
|
+
|
227
|
+
If your toolchain defines `isnan` and `isinf` in `math.h` as macros, nothing needs to be done. If your toolchain doesn't define these, Unity
|
228
|
+
will create these macros itself. You may override either or both of these defines to specify how you want to evaluate if a number is NaN or Infinity.
|
229
|
+
|
230
|
+
_Example:_
|
231
|
+
|
232
|
+
```C
|
233
|
+
#define UNITY_IS_NAN(n) ((n != n) ? 1 : 0)
|
234
|
+
```
|
235
|
+
|
219
236
|
### Miscellaneous
|
220
237
|
|
221
238
|
#### `UNITY_EXCLUDE_STDDEF_H`
|
@@ -234,7 +251,7 @@ _Example:_
|
|
234
251
|
Unity provides a simple (and very basic) printf-like string output implementation, which is able to print a string modified by the following format string modifiers:
|
235
252
|
|
236
253
|
- __%d__ - signed value (decimal)
|
237
|
-
- __%i__ - same as __%
|
254
|
+
- __%i__ - same as __%d__
|
238
255
|
- __%u__ - unsigned value (decimal)
|
239
256
|
- __%f__ - float/Double (if float support is activated)
|
240
257
|
- __%g__ - same as __%f__
|
@@ -246,6 +263,15 @@ Unity provides a simple (and very basic) printf-like string output implementatio
|
|
246
263
|
- __%s__ - a string (e.g. "string")
|
247
264
|
- __%%__ - The "%" symbol (escaped)
|
248
265
|
|
266
|
+
Length specifiers are also supported. If you are using long long types, make sure UNITY_SUPPORT_64 is true to ensure they are printed correctly.
|
267
|
+
|
268
|
+
- __%ld__ - signed long value (decimal)
|
269
|
+
- __%lld__ - signed long long value (decimal)
|
270
|
+
- __%lu__ - unsigned long value (decimal)
|
271
|
+
- __%llu__ - unsigned long long value (decimal)
|
272
|
+
- __%lx__ - unsigned long value (hexadecimal)
|
273
|
+
- __%llx__ - unsigned long long value (hexadecimal)
|
274
|
+
|
249
275
|
_Example:_
|
250
276
|
|
251
277
|
```C
|
@@ -261,7 +287,8 @@ TEST_PRINTF("Pointer %p\n", &a);
|
|
261
287
|
TEST_PRINTF("Character %c\n", 'F');
|
262
288
|
TEST_PRINTF("String %s\n", "My string");
|
263
289
|
TEST_PRINTF("Percent %%\n");
|
264
|
-
TEST_PRINTF("
|
290
|
+
TEST_PRINTF("Unsigned long long %llu\n", 922337203685477580);
|
291
|
+
TEST_PRINTF("Color Red \033[41mFAIL\033[0m\n");
|
265
292
|
TEST_PRINTF("\n");
|
266
293
|
TEST_PRINTF("Multiple (%d) (%i) (%u) (%x)\n", -100, 0, 200, 0x12345);
|
267
294
|
```
|
@@ -383,6 +410,68 @@ _Example:_
|
|
383
410
|
#define UNITY_EXCLUDE_SETJMP
|
384
411
|
```
|
385
412
|
|
413
|
+
#### `UNITY_TEST_PROTECT`
|
414
|
+
|
415
|
+
#### `UNITY_TEST_ABORT`
|
416
|
+
|
417
|
+
Unity handles test failures via `setjmp`/`longjmp` pair by default. As mentioned above, you can disable this with `UNITY_EXCLUDE_SETJMP`. You can also customise what happens on every `TEST_PROTECT` and `TEST_ABORT` call. This can be accomplished by providing user-defined `UNITY_TEST_PROTECT` and `UNITY_TEST_ABORT` macros (and these may be defined independently).
|
418
|
+
|
419
|
+
`UNITY_TEST_PROTECT` is used as an `if` statement expression, and has to evaluate to `true` on the first call (when saving stack environment with `setjmp`), and to `false` when it returns as a result of a `TEST_ABORT` (when restoring the stack environment with `longjmp`).
|
420
|
+
|
421
|
+
Whenever an assert macro fails, `TEST_ABORT` is used to restore the stack environment previously set by `TEST_PROTECT`. This part may be overriden with `UNITY_TEST_ABORT`, e.g. if custom failure handling is needed.
|
422
|
+
|
423
|
+
_Example 1:_
|
424
|
+
|
425
|
+
Calling `longjmp` on your target is possible, but has a platform-specific (or implementation-specific) set of prerequisites, e.g. privileged access level. You can extend the default behaviour of `TEST_PROTECT` and `TEST_ABORT` as:
|
426
|
+
|
427
|
+
`unity_config.h`:
|
428
|
+
|
429
|
+
```C
|
430
|
+
#include "my_custom_test_handlers.h"
|
431
|
+
|
432
|
+
#define UNITY_TEST_PROTECT() custom_test_protect()
|
433
|
+
#define UNITY_TEST_ABORT() custom_test_abort()
|
434
|
+
```
|
435
|
+
|
436
|
+
`my_custom_test_handlers.c`:
|
437
|
+
|
438
|
+
```C
|
439
|
+
int custom_test_protect(void) {
|
440
|
+
platform_specific_code();
|
441
|
+
return setjmp(Unity.AbortFrame) == 0;
|
442
|
+
}
|
443
|
+
|
444
|
+
UNITY_NORETURN void custom_test_abort(void) {
|
445
|
+
more_platform_specific_code();
|
446
|
+
longjmp(Unity.AbortFrame, 1);
|
447
|
+
}
|
448
|
+
```
|
449
|
+
|
450
|
+
_Example 2:_
|
451
|
+
|
452
|
+
Unity is used to provide the assertion macros only, and an external test harness/runner is used for test orchestration/reporting. In this case you can easily plug your code by overriding `TEST_ABORT` as:
|
453
|
+
|
454
|
+
`unity_config.h`:
|
455
|
+
|
456
|
+
```C
|
457
|
+
#include "my_custom_test_handlers.h"
|
458
|
+
|
459
|
+
#define UNITY_TEST_PROTECT() 1
|
460
|
+
#define UNITY_TEST_ABORT() custom_test_abort()
|
461
|
+
```
|
462
|
+
|
463
|
+
`my_custom_test_handlers.c`:
|
464
|
+
|
465
|
+
```C
|
466
|
+
void custom_test_abort(void) {
|
467
|
+
if (Unity.CurrentTestFailed == 1) {
|
468
|
+
custom_failed_test_handler();
|
469
|
+
} else if (Unity.CurrentTestIgnored == 1) {
|
470
|
+
custom_ignored_test_handler();
|
471
|
+
}
|
472
|
+
}
|
473
|
+
```
|
474
|
+
|
386
475
|
#### `UNITY_OUTPUT_COLOR`
|
387
476
|
|
388
477
|
If you want to add color using ANSI escape codes you can use this define.
|
@@ -393,6 +482,34 @@ _Example:_
|
|
393
482
|
#define UNITY_OUTPUT_COLOR
|
394
483
|
```
|
395
484
|
|
485
|
+
#### `UNITY_INCLUDE_EXEC_TIME`
|
486
|
+
|
487
|
+
Define this to measure and report execution time for each test in the suite. When enabled, Unity will do
|
488
|
+
it's best to automatically find a way to determine the time in milliseconds. On most Windows, macos, or
|
489
|
+
Linux environments, this is automatic. If not, you can give Unity more information.
|
490
|
+
|
491
|
+
#### `UNITY_CLOCK_MS`
|
492
|
+
|
493
|
+
If you're working on a system (embedded or otherwise) which has an accessible millisecond timer. You can
|
494
|
+
define `UNITY_CLOCK_MS` to be the name of the function which returns the millisecond timer. It will then
|
495
|
+
attempt to use that function for timing purposes.
|
496
|
+
|
497
|
+
#### `UNITY_EXEC_TIME_START`
|
498
|
+
|
499
|
+
Define this hook to start a millisecond timer if necessary.
|
500
|
+
|
501
|
+
#### `UNITY_EXEC_TIME_STOP`
|
502
|
+
|
503
|
+
Define this hook to stop a millisecond timer if necessary.
|
504
|
+
|
505
|
+
#### `UNITY_PRINT_EXEC_TIME`
|
506
|
+
|
507
|
+
Define this hook to print the current execution time. Used to report the milliseconds elapsed.
|
508
|
+
|
509
|
+
#### `UNITY_TIME_TYPE`
|
510
|
+
|
511
|
+
Finally, this can be set to the type which holds the millisecond timer.
|
512
|
+
|
396
513
|
#### `UNITY_SHORTHAND_AS_INT`
|
397
514
|
|
398
515
|
#### `UNITY_SHORTHAND_AS_MEM`
|
@@ -422,6 +539,38 @@ This will rarely be necessary. Most often, Unity will automatically detect if th
|
|
422
539
|
In the event that the compiler supports variadic macros, but is primarily C89 (ANSI), defining this option will allow you to use them.
|
423
540
|
This option is also not necessary when using Ceedling or the test runner generator script.
|
424
541
|
|
542
|
+
#### `UNITY_SUPPORT_TEST_CASES`
|
543
|
+
|
544
|
+
Unity can automatically define all supported parameterized tests macros.
|
545
|
+
That feature is disabled by default.
|
546
|
+
To enable it, use the following example:
|
547
|
+
|
548
|
+
```C
|
549
|
+
#define UNITY_SUPPORT_TEST_CASES
|
550
|
+
```
|
551
|
+
|
552
|
+
You can manually provide required `TEST_CASE`, `TEST_RANGE` or `TEST_MATRIX` macro definitions
|
553
|
+
before including `unity.h`, and they won't be redefined.
|
554
|
+
If you provide one of the following macros, some of default definitions will not be
|
555
|
+
defined:
|
556
|
+
| User defines macro | Unity will _not_ define following macro |
|
557
|
+
|---|---|
|
558
|
+
| `UNITY_EXCLUDE_TEST_CASE` | `TEST_CASE` |
|
559
|
+
| `UNITY_EXCLUDE_TEST_RANGE` | `TEST_RANGE` |
|
560
|
+
| `UNITY_EXCLUDE_TEST_MATRIX` | `TEST_MATRIX` |
|
561
|
+
| `TEST_CASE` | `TEST_CASE` |
|
562
|
+
| `TEST_RANGE` | `TEST_RANGE` |
|
563
|
+
| `TEST_MATRIX` | `TEST_MATRIX` |
|
564
|
+
|
565
|
+
`UNITY_EXCLUDE_TEST_*` defines is not processed by test runner generator script.
|
566
|
+
If you exclude one of them from definition, you should provide your own definition
|
567
|
+
for them or avoid using undefined `TEST_*` macro as a test generator.
|
568
|
+
Otherwise, compiler cannot build source code file with provided call.
|
569
|
+
|
570
|
+
_Note:_
|
571
|
+
That feature requires variadic macro support by compiler. If required feature
|
572
|
+
is not detected, it will not be enabled, even though preprocessor macro is defined.
|
573
|
+
|
425
574
|
## Getting Into The Guts
|
426
575
|
|
427
576
|
There will be cases where the options above aren't quite going to get everything perfect.
|
@@ -114,6 +114,11 @@ In the `examples` directory, Example 3's Rakefile demonstrates using a Ruby hash
|
|
114
114
|
This option specifies an array of file names to be `#include`'d at the top of your runner C file.
|
115
115
|
You might use it to reference custom types or anything else universally needed in your generated runners.
|
116
116
|
|
117
|
+
##### `:defines`
|
118
|
+
|
119
|
+
This option specifies an array of definitions to be `#define`'d at the top of your runner C file.
|
120
|
+
Each definition will be wrapped in an `#ifndef`.
|
121
|
+
|
117
122
|
##### `:suite_setup`
|
118
123
|
|
119
124
|
Define this option with C code to be executed _before any_ test cases are run.
|
@@ -121,6 +126,8 @@ Define this option with C code to be executed _before any_ test cases are run.
|
|
121
126
|
Alternatively, if your C compiler supports weak symbols, you can leave this option unset and instead provide a `void suiteSetUp(void)` function in your test suite.
|
122
127
|
The linker will look for this symbol and fall back to a Unity-provided stub if it is not found.
|
123
128
|
|
129
|
+
This option can also be specified at the command prompt as `--suite_setup=""`
|
130
|
+
|
124
131
|
##### `:suite_teardown`
|
125
132
|
|
126
133
|
Define this option with C code to be executed _after all_ test cases have finished.
|
@@ -131,6 +138,8 @@ You can normally just return `num_failures`.
|
|
131
138
|
Alternatively, if your C compiler supports weak symbols, you can leave this option unset and instead provide a `int suiteTearDown(int num_failures)` function in your test suite.
|
132
139
|
The linker will look for this symbol and fall back to a Unity-provided stub if it is not found.
|
133
140
|
|
141
|
+
This option can also be specified at the command prompt as `--suite_teardown=""`
|
142
|
+
|
134
143
|
##### `:enforce_strict_ordering`
|
135
144
|
|
136
145
|
This option should be defined if you have the strict order feature enabled in CMock (see CMock documentation).
|
@@ -141,6 +150,8 @@ If you provide the same YAML to the generator as used in CMock's configuration,
|
|
141
150
|
|
142
151
|
This option should be defined if you are mixing C and CPP and want your test runners to automatically include extern "C" support when they are generated.
|
143
152
|
|
153
|
+
This option can also be specified at the command prompt as `--externc`
|
154
|
+
|
144
155
|
##### `:mock_prefix` and `:mock_suffix`
|
145
156
|
|
146
157
|
Unity automatically generates calls to Init, Verify and Destroy for every file included in the main test file that starts with the given mock prefix and ends with the given mock suffix, file extension not included.
|
@@ -165,8 +176,11 @@ Or as a yaml file:
|
|
165
176
|
|
166
177
|
If you are using CMock, it is very likely that you are already passing an array of plugins to CMock.
|
167
178
|
You can just use the same array here.
|
179
|
+
|
168
180
|
This script will just ignore the plugins that don't require additional support.
|
169
181
|
|
182
|
+
This option can also be specified at the command prompt as `--cexception`
|
183
|
+
|
170
184
|
##### `:include_extensions`
|
171
185
|
|
172
186
|
This option specifies the pattern for matching acceptable header file extensions.
|
@@ -179,6 +193,280 @@ This option specifies the pattern for matching acceptable source file extensions
|
|
179
193
|
By default it will accept cpp, cc, C, c, and ino files.
|
180
194
|
If you need a different combination of files to search, update this from the default `'(?:cpp|cc|ino|C|c)'`.
|
181
195
|
|
196
|
+
##### `:use_param_tests`
|
197
|
+
|
198
|
+
This option enables parameterized test usage.
|
199
|
+
That tests accepts arguments from `TEST_CASE` and `TEST_RANGE` macros,
|
200
|
+
that are located above current test definition.
|
201
|
+
By default, Unity assumes, that parameterized tests are disabled.
|
202
|
+
|
203
|
+
Few usage examples can be found in `/test/tests/test_unity_parameterized.c` file.
|
204
|
+
|
205
|
+
You should define `UNITY_SUPPORT_TEST_CASES` macro for tests success compiling,
|
206
|
+
if you enable current option.
|
207
|
+
|
208
|
+
You can see list of supported macros list in the
|
209
|
+
[Parameterized tests provided macros](#parameterized-tests-provided-macros)
|
210
|
+
section that follows.
|
211
|
+
|
212
|
+
This option can also be specified at the command prompt as `--use_param_tests=1`
|
213
|
+
|
214
|
+
##### `:cmdline_args`
|
215
|
+
|
216
|
+
When set to `true`, the generated test runner can accept a number of
|
217
|
+
options to modify how the test(s) are run.
|
218
|
+
|
219
|
+
Ensure Unity is compiled with `UNITY_USE_COMMAND_LINE_ARGS` defined or else
|
220
|
+
the required functions will not exist.
|
221
|
+
|
222
|
+
These are the available options:
|
223
|
+
|
224
|
+
| Option | Description |
|
225
|
+
| --------- | ------------------------------------------------- |
|
226
|
+
| `-l` | List all tests and exit |
|
227
|
+
| `-f NAME` | Filter to run only tests whose name includes NAME |
|
228
|
+
| `-n NAME` | Run only the test named NAME |
|
229
|
+
| `-h` | show the Help menu that lists these options |
|
230
|
+
| `-q` | Quiet/decrease verbosity |
|
231
|
+
| `-v` | increase Verbosity |
|
232
|
+
| `-x NAME` | eXclude tests whose name includes NAME |
|
233
|
+
|
234
|
+
##### `:setup_name`
|
235
|
+
|
236
|
+
Override the default test `setUp` function name.
|
237
|
+
|
238
|
+
This option can also be specified at the command prompt as `--setup_name=""`
|
239
|
+
|
240
|
+
##### `:teardown_name`
|
241
|
+
|
242
|
+
Override the default test `tearDown` function name.
|
243
|
+
|
244
|
+
This option can also be specified at the command prompt as `--teardown_name=""`
|
245
|
+
|
246
|
+
##### `:test_reset_name`
|
247
|
+
|
248
|
+
Override the default test `resetTest` function name.
|
249
|
+
|
250
|
+
This option can also be specified at the command prompt as `--test_reset_name=""`
|
251
|
+
|
252
|
+
##### `:test_verify_name`
|
253
|
+
|
254
|
+
Override the default test `verifyTest` function name.
|
255
|
+
|
256
|
+
This option can also be specified at the command prompt as `--test_verify_name=""`
|
257
|
+
|
258
|
+
##### `:main_name`
|
259
|
+
|
260
|
+
Override the test's `main()` function name (from `main` to whatever is specified).
|
261
|
+
The sentinel value `:auto` will use the test's filename with the `.c` extension removed prefixed
|
262
|
+
with `main_` as the "main" function.
|
263
|
+
|
264
|
+
To clarify, if `:main_name == :auto` and the test filename is "test_my_project.c", then the
|
265
|
+
generated function name will be `main_test_my_project(int argc, char** argv)`.
|
266
|
+
|
267
|
+
This option can also be specified at the command prompt as `--main_name=""`
|
268
|
+
|
269
|
+
##### `main_export_decl`
|
270
|
+
|
271
|
+
Provide any `cdecl` for the `main()` test function. Is empty by default.
|
272
|
+
|
273
|
+
##### `:omit_begin_end`
|
274
|
+
|
275
|
+
If `true`, the `UnityBegin` and `UnityEnd` function will not be called for
|
276
|
+
Unity test state setup and cleanup.
|
277
|
+
|
278
|
+
This option can also be specified at the command prompt as `--omit_begin_end`
|
279
|
+
|
280
|
+
#### Parameterized tests provided macros
|
281
|
+
|
282
|
+
Unity provides support for few param tests generators, that can be combined
|
283
|
+
with each other. You must define test function as usual C function with usual
|
284
|
+
C arguments, and test generator will pass what you tell as a list of arguments.
|
285
|
+
|
286
|
+
Let's show how all of them works on the following test function definitions:
|
287
|
+
|
288
|
+
```C
|
289
|
+
/* Place your test generators here, usually one generator per one or few lines */
|
290
|
+
void test_demoParamFunction(int a, int b, int c)
|
291
|
+
{
|
292
|
+
TEST_ASSERT_GREATER_THAN_INT(a + b, c);
|
293
|
+
}
|
294
|
+
```
|
295
|
+
|
296
|
+
##### `TEST_CASE`
|
297
|
+
|
298
|
+
Test case is a basic generator, that can be used for param testing.
|
299
|
+
One call of that macro will generate only one call for test function.
|
300
|
+
It can be used with different args, such as numbers, enums, strings,
|
301
|
+
global variables, another preprocessor defines.
|
302
|
+
|
303
|
+
If we use replace comment before test function with the following code:
|
304
|
+
|
305
|
+
```C
|
306
|
+
TEST_CASE(1, 2, 5)
|
307
|
+
TEST_CASE(10, 7, 20)
|
308
|
+
```
|
309
|
+
|
310
|
+
script will generate 2 test calls:
|
311
|
+
|
312
|
+
```C
|
313
|
+
test_demoParamFunction(1, 2, 5);
|
314
|
+
test_demoParamFunction(10, 7, 20);
|
315
|
+
```
|
316
|
+
|
317
|
+
That calls will be wrapped with `setUp`, `tearDown` and other
|
318
|
+
usual Unity calls, as for independent unit tests.
|
319
|
+
The following output can be generated after test executable startup:
|
320
|
+
|
321
|
+
```Log
|
322
|
+
tests/test_unity_parameterizedDemo.c:14:test_demoParamFunction(1, 2, 5):PASS
|
323
|
+
tests/test_unity_parameterizedDemo.c:14:test_demoParamFunction(10, 7, 20):PASS
|
324
|
+
```
|
325
|
+
|
326
|
+
##### `TEST_RANGE`
|
327
|
+
|
328
|
+
Test range is an advanced generator. It single call can be converted to zero,
|
329
|
+
one or few `TEST_CASE` equivalent commands.
|
330
|
+
|
331
|
+
That generator can be used for creating numeric ranges in decimal representation
|
332
|
+
only: integers & floating point numbers. It uses few formats for every parameter:
|
333
|
+
|
334
|
+
1. `[start, stop, step]` is stop-inclusive format
|
335
|
+
2. `<start, stop, step>` is stop-exclusive formats
|
336
|
+
|
337
|
+
Format providers 1 and 2 accept only three arguments:
|
338
|
+
|
339
|
+
* `start` is start number
|
340
|
+
* `stop` is end number (can or cannot exists in result sequence for format 1,
|
341
|
+
will be always skipped for format 2)
|
342
|
+
* `step` is incrementing step: can be either positive or negative value.
|
343
|
+
|
344
|
+
Let's use our `test_demoParamFunction` test for checking, what ranges
|
345
|
+
will be generated for our single `TEST_RANGE` row:
|
346
|
+
|
347
|
+
```C
|
348
|
+
TEST_RANGE([3, 4, 1], [10, 5, -2], <30, 31, 1>)
|
349
|
+
```
|
350
|
+
|
351
|
+
Tests execution output will be similar to that text:
|
352
|
+
|
353
|
+
```Log
|
354
|
+
tests/test_unity_parameterizedDemo.c:14:test_demoParamFunction(3, 10, 30):PASS
|
355
|
+
tests/test_unity_parameterizedDemo.c:14:test_demoParamFunction(3, 8, 30):PASS
|
356
|
+
tests/test_unity_parameterizedDemo.c:14:test_demoParamFunction(3, 6, 30):PASS
|
357
|
+
tests/test_unity_parameterizedDemo.c:14:test_demoParamFunction(4, 10, 30):PASS
|
358
|
+
tests/test_unity_parameterizedDemo.c:14:test_demoParamFunction(4, 8, 30):PASS
|
359
|
+
tests/test_unity_parameterizedDemo.c:14:test_demoParamFunction(4, 6, 30):PASS
|
360
|
+
```
|
361
|
+
|
362
|
+
As we can see:
|
363
|
+
|
364
|
+
| Parameter | Format | Possible values | Total of values | Format number |
|
365
|
+
|---|---|---|---|---|
|
366
|
+
| `a` | `[3, 4, 1]` | `3`, `4` | 2 | Format 1 |
|
367
|
+
| `b` | `[10, 5, -2]` | `10`, `8`, `6` | 3 | Format 1, negative step, end number is not included |
|
368
|
+
| `c` | `<30, 31, 1>` | `30` | 1 | Format 2 |
|
369
|
+
|
370
|
+
_Note_, that format 2 also supports negative step.
|
371
|
+
|
372
|
+
We totally have 2 * 3 * 1 = 6 equal test cases, that can be written as following:
|
373
|
+
|
374
|
+
```C
|
375
|
+
TEST_CASE(3, 10, 30)
|
376
|
+
TEST_CASE(3, 8, 30)
|
377
|
+
TEST_CASE(3, 6, 30)
|
378
|
+
TEST_CASE(4, 10, 30)
|
379
|
+
TEST_CASE(4, 8, 30)
|
380
|
+
TEST_CASE(4, 6, 30)
|
381
|
+
```
|
382
|
+
|
383
|
+
##### `TEST_MATRIX`
|
384
|
+
|
385
|
+
Test matix is an advanced generator. It single call can be converted to zero,
|
386
|
+
one or few `TEST_CASE` equivalent commands.
|
387
|
+
|
388
|
+
That generator will create tests for all cobinations of the provided list. Each argument has to be given as a list of one or more elements in the format `[<parm1>, <param2>, ..., <paramN-1>, <paramN>]`.
|
389
|
+
|
390
|
+
All parameters supported by the `TEST_CASE` is supported as arguments:
|
391
|
+
- Numbers incl type specifiers e.g. `<1>`, `<1u>`, `<1l>`, `<2.3>`, or `<2.3f>`
|
392
|
+
- Strings incl string concatianion e.g. `<"string">`, or `<"partial" "string">`
|
393
|
+
- Chars e.g. `<'c'>`
|
394
|
+
- Enums e.g. `<ENUM_NAME>`
|
395
|
+
- Elements of arrays e.g. `<data[0]>`
|
396
|
+
|
397
|
+
Let's use our `test_demoParamFunction` test for checking, what ranges
|
398
|
+
will be generated for our single `TEST_RANGE` row:
|
399
|
+
|
400
|
+
```C
|
401
|
+
TEST_MATRIX([3, 4, 7], [10, 8, 2, 1],[30u, 20.0f])
|
402
|
+
```
|
403
|
+
|
404
|
+
Tests execution output will be similar to that text:
|
405
|
+
|
406
|
+
```Log
|
407
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(3, 10, 30u):PASS
|
408
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(3, 10, 20.0f):PASS
|
409
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(3, 8, 30u):PASS
|
410
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(3, 8, 20.0f):PASS
|
411
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(3, 2, 30u):PASS
|
412
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(3, 2, 20.0f):PASS
|
413
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(3, 1, 30u):PASS
|
414
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(3, 1, 20.0f):PASS
|
415
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(4, 10, 30u):PASS
|
416
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(4, 10, 20.0f):PASS
|
417
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(4, 8, 30u):PASS
|
418
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(4, 8, 20.0f):PASS
|
419
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(4, 2, 30u):PASS
|
420
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(4, 2, 20.0f):PASS
|
421
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(4, 1, 30u):PASS
|
422
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(4, 1, 20.0f):PASS
|
423
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(7, 10, 30u):PASS
|
424
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(7, 10, 20.0f):PASS
|
425
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(7, 8, 30u):PASS
|
426
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(7, 8, 20.0f):PASS
|
427
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(7, 2, 30u):PASS
|
428
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(7, 2, 20.0f):PASS
|
429
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(7, 1, 30u):PASS
|
430
|
+
tests/test_unity_parameterizedDemo.c:18:test_demoParamFunction(7, 1, 20.0f):PASS
|
431
|
+
```
|
432
|
+
|
433
|
+
As we can see:
|
434
|
+
|
435
|
+
| Parameter | Format | Count of values |
|
436
|
+
|---|---|---|
|
437
|
+
| `a` | `[3, 4, 7]` | 2 |
|
438
|
+
| `b` | `[10, 8, 2, 1]` | 4 |
|
439
|
+
| `c` | `[30u, 20.0f]` | 2 |
|
440
|
+
|
441
|
+
We totally have 2 * 4 * 2 = 16 equal test cases, that can be written as following:
|
442
|
+
|
443
|
+
```C
|
444
|
+
TEST_CASE(3, 10, 30u)
|
445
|
+
TEST_CASE(3, 10, 20.0f)
|
446
|
+
TEST_CASE(3, 8, 30u)
|
447
|
+
TEST_CASE(3, 8, 20.0f)
|
448
|
+
TEST_CASE(3, 2, 30u)
|
449
|
+
TEST_CASE(3, 2, 20.0f)
|
450
|
+
TEST_CASE(3, 1, 30u)
|
451
|
+
TEST_CASE(3, 1, 20.0f)
|
452
|
+
TEST_CASE(4, 10, 30u)
|
453
|
+
TEST_CASE(4, 10, 20.0f)
|
454
|
+
TEST_CASE(4, 8, 30u)
|
455
|
+
TEST_CASE(4, 8, 20.0f)
|
456
|
+
TEST_CASE(4, 2, 30u)
|
457
|
+
TEST_CASE(4, 2, 20.0f)
|
458
|
+
TEST_CASE(4, 1, 30u)
|
459
|
+
TEST_CASE(4, 1, 20.0f)
|
460
|
+
TEST_CASE(7, 10, 30u)
|
461
|
+
TEST_CASE(7, 10, 20.0f)
|
462
|
+
TEST_CASE(7, 8, 30u)
|
463
|
+
TEST_CASE(7, 8, 20.0f)
|
464
|
+
TEST_CASE(7, 2, 30u)
|
465
|
+
TEST_CASE(7, 2, 20.0f)
|
466
|
+
TEST_CASE(7, 1, 30u)
|
467
|
+
TEST_CASE(7, 1, 20.0f)
|
468
|
+
```
|
469
|
+
|
182
470
|
### `unity_test_summary.rb`
|
183
471
|
|
184
472
|
A Unity test file contains one or more test case functions.
|
@@ -239,7 +527,7 @@ How convenient is that?
|
|
239
527
|
|
240
528
|
*Find The Latest of This And More at [ThrowTheSwitch.org][]*
|
241
529
|
|
242
|
-
[ruby-lang.org]: https://ruby-
|
530
|
+
[ruby-lang.org]: https://ruby-lang.org/
|
243
531
|
[YAML]: http://www.yaml.org/
|
244
532
|
[Ceedling]: http://www.throwtheswitch.org/ceedling
|
245
533
|
[ThrowTheSwitch.org]: https://throwtheswitch.org
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# Unity Test - Known Issues
|
2
|
+
|
3
|
+
## A Note
|
4
|
+
|
5
|
+
This project will do its best to keep track of significant bugs that might effect your usage of this
|
6
|
+
project and its supporting scripts. A more detailed and up-to-date list for cutting edge Unity can
|
7
|
+
be found on our Github repository.
|
8
|
+
|
9
|
+
## Issues
|
10
|
+
|
11
|
+
- No built-in validation of no-return functions
|
12
|
+
- Incomplete support for Printf-style formatting
|
13
|
+
- Incomplete support for VarArgs
|
@@ -1,8 +1,9 @@
|
|
1
|
-
#
|
2
|
-
# Unity
|
3
|
-
#
|
4
|
-
#
|
5
|
-
#
|
1
|
+
# =========================================================================
|
2
|
+
# Unity - A Test Framework for C
|
3
|
+
# ThrowTheSwitch.org
|
4
|
+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
5
|
+
# SPDX-License-Identifier: MIT
|
6
|
+
# =========================================================================
|
6
7
|
|
7
8
|
#We try to detect the OS we are running on, and adjust commands as needed
|
8
9
|
ifeq ($(OS),Windows_NT)
|
@@ -0,0 +1,48 @@
|
|
1
|
+
project('Unity example', 'c',
|
2
|
+
license: 'MIT',
|
3
|
+
default_options: [
|
4
|
+
'c_std=c99',
|
5
|
+
'warning_level=3',
|
6
|
+
],
|
7
|
+
meson_version: '>= 0.49.0'
|
8
|
+
)
|
9
|
+
|
10
|
+
unity_subproject = subproject('unity')
|
11
|
+
unity_dependency = unity_subproject.get_variable('unity_dep')
|
12
|
+
unity_gen_runner = unity_subproject.get_variable('gen_test_runner')
|
13
|
+
|
14
|
+
src1 = files([
|
15
|
+
'src' / 'ProductionCode.c',
|
16
|
+
'test' / 'TestProductionCode.c',
|
17
|
+
])
|
18
|
+
|
19
|
+
src2 = files([
|
20
|
+
'src' / 'ProductionCode2.c',
|
21
|
+
'test' / 'TestProductionCode2.c',
|
22
|
+
])
|
23
|
+
|
24
|
+
inc = include_directories('src')
|
25
|
+
|
26
|
+
test1 = executable('test1',
|
27
|
+
sources: [
|
28
|
+
src1,
|
29
|
+
unity_gen_runner.process('test' / 'TestProductionCode.c')
|
30
|
+
],
|
31
|
+
include_directories: [ inc ],
|
32
|
+
dependencies: [ unity_dependency ],
|
33
|
+
)
|
34
|
+
|
35
|
+
test('test1', test1,
|
36
|
+
should_fail: true)
|
37
|
+
|
38
|
+
test2 = executable('test2',
|
39
|
+
sources: [
|
40
|
+
src2,
|
41
|
+
unity_gen_runner.process('test' / 'TestProductionCode2.c')
|
42
|
+
],
|
43
|
+
include_directories: [ inc ],
|
44
|
+
dependencies: [ unity_dependency ],
|
45
|
+
)
|
46
|
+
|
47
|
+
test('test2', test2)
|
48
|
+
|
@@ -2,4 +2,11 @@ Example 1
|
|
2
2
|
=========
|
3
3
|
|
4
4
|
Close to the simplest possible example of Unity, using only basic features.
|
5
|
-
|
5
|
+
|
6
|
+
Build and run with Make
|
7
|
+
---
|
8
|
+
Just run `make`.
|
9
|
+
|
10
|
+
Build and run with Meson
|
11
|
+
---
|
12
|
+
Run `meson setup build` to create the build directory, and then `meson test -C build` to build and run the tests.
|
@@ -1,3 +1,9 @@
|
|
1
|
+
/* =========================================================================
|
2
|
+
Unity - A Test Framework for C
|
3
|
+
ThrowTheSwitch.org
|
4
|
+
Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
5
|
+
SPDX-License-Identifier: MIT
|
6
|
+
========================================================================= */
|
1
7
|
|
2
8
|
#include "ProductionCode.h"
|
3
9
|
|
@@ -1,3 +1,9 @@
|
|
1
|
+
/* =========================================================================
|
2
|
+
Unity - A Test Framework for C
|
3
|
+
ThrowTheSwitch.org
|
4
|
+
Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
5
|
+
SPDX-License-Identifier: MIT
|
6
|
+
========================================================================= */
|
1
7
|
|
2
8
|
int FindFunction_WhichIsBroken(int NumberToFind);
|
3
9
|
int FunctionWhichReturnsLocalVariable(void);
|
@@ -1,3 +1,9 @@
|
|
1
|
+
/* =========================================================================
|
2
|
+
Unity - A Test Framework for C
|
3
|
+
ThrowTheSwitch.org
|
4
|
+
Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
5
|
+
SPDX-License-Identifier: MIT
|
6
|
+
========================================================================= */
|
1
7
|
|
2
8
|
#include "ProductionCode2.h"
|
3
9
|
|
@@ -1,2 +1,8 @@
|
|
1
|
+
/* =========================================================================
|
2
|
+
Unity - A Test Framework for C
|
3
|
+
ThrowTheSwitch.org
|
4
|
+
Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
5
|
+
SPDX-License-Identifier: MIT
|
6
|
+
========================================================================= */
|
1
7
|
|
2
8
|
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
|