ceedling 0.15.1 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +9 -13
- data/README.md +21 -3
- data/{rakefile.rb → Rakefile} +0 -0
- data/lib/ceedling/version.rb +4 -4
- data/lib/ceedling/version.rb.erb +1 -1
- data/release/version.info +1 -1
- data/vendor/c_exception/Gemfile +1 -1
- data/vendor/c_exception/Gemfile.lock +12 -0
- data/vendor/c_exception/{docs/license.txt → LICENSE.txt} +9 -9
- data/vendor/c_exception/README.md +146 -0
- data/vendor/c_exception/{rakefile.rb → Rakefile} +6 -5
- data/vendor/c_exception/lib/CException.c +9 -6
- data/vendor/c_exception/release/build.info +1 -1
- data/vendor/c_exception/release/version.info +1 -1
- data/vendor/c_exception/test/CExceptionConfig.h +2 -0
- data/vendor/c_exception/test/TestException.c +4 -1
- data/vendor/cmock/README.md +24 -0
- data/vendor/cmock/{rakefile.rb → Rakefile} +12 -12
- data/vendor/cmock/docs/CMock Summary.odt +0 -0
- data/vendor/cmock/docs/CMock Summary.pdf +0 -0
- data/vendor/cmock/docs/CMock_Summary.md +130 -111
- data/vendor/cmock/docs/license.txt +1 -1
- data/vendor/cmock/lib/cmock.rb +36 -12
- data/vendor/cmock/lib/cmock_config.rb +39 -36
- data/vendor/cmock/lib/cmock_generator.rb +33 -25
- data/vendor/cmock/lib/cmock_generator_plugin_expect_any_args.rb +68 -0
- data/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +18 -42
- data/vendor/cmock/lib/cmock_generator_plugin_return_thru_ptr.rb +2 -2
- data/vendor/cmock/lib/cmock_generator_utils.rb +39 -29
- data/vendor/cmock/lib/cmock_header_parser.rb +46 -39
- data/vendor/cmock/rakefile_helper.rb +38 -38
- data/vendor/cmock/src/cmock.c +20 -4
- data/vendor/cmock/src/cmock.h +6 -1
- data/vendor/cmock/src/cmock_internals.h +26 -3
- data/vendor/cmock/targets/clang_strict.yml +85 -0
- data/vendor/cmock/targets/gcc.yml +4 -2
- data/vendor/cmock/targets/gcc_64.yml +55 -0
- data/vendor/cmock/test/c/TestCMockC.c +3 -3
- data/vendor/cmock/test/c/TestCMockCDynamic.c +11 -11
- data/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +4 -2
- data/vendor/cmock/test/c/TestCMockC_Runner.c +1 -1
- data/vendor/cmock/test/system/systest_generator.rb +38 -26
- data/vendor/cmock/test/system/test_compilation/const.h +8 -3
- data/vendor/cmock/test/system/test_interactions/all_plugins_but_other_limits.yml +92 -58
- data/vendor/cmock/test/system/test_interactions/all_plugins_coexist.yml +53 -48
- data/vendor/cmock/test/system/test_interactions/array_and_pointer_handling.yml +58 -56
- data/vendor/cmock/test/system/test_interactions/basic_expect_and_return.yml +19 -18
- data/vendor/cmock/test/system/test_interactions/expect_and_return_custom_types.yml +13 -13
- data/vendor/cmock/test/system/test_interactions/expect_and_return_treat_as.yml +20 -20
- data/vendor/cmock/test/system/test_interactions/expect_any_args.yml +238 -0
- data/vendor/cmock/test/system/test_interactions/fancy_pointer_handling.yml +36 -34
- data/vendor/cmock/test/system/test_interactions/ignore_and_return.yml +24 -15
- data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_2.yml +11 -11
- data/vendor/cmock/test/system/test_interactions/return_thru_ptr_and_expect_any_args.yml +235 -0
- data/vendor/cmock/test/system/test_interactions/return_thru_ptr_ignore_arg.yml +22 -26
- data/vendor/cmock/test/system/test_interactions/stubs_with_callbacks.yml +31 -31
- data/vendor/cmock/test/unit/cmock_generator_main_test.rb +141 -109
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_any_args_test.rb +82 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +17 -81
- data/vendor/cmock/test/unit/cmock_generator_plugin_return_thru_ptr_test.rb +10 -10
- data/vendor/cmock/test/unit/cmock_generator_utils_test.rb +47 -41
- data/vendor/cmock/test/unit/cmock_header_parser_test.rb +290 -227
- data/vendor/unity/{rakefile.rb → Rakefile} +13 -6
- data/vendor/unity/auto/colour_prompt.rb +33 -12
- data/vendor/unity/auto/generate_test_runner.rb +67 -63
- data/vendor/unity/auto/parseOutput.rb +189 -0
- data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/makefile +41 -40
- data/vendor/unity/examples/example_1/readme.txt +5 -0
- data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode.c +24 -24
- data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode.h +3 -3
- data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode2.c +9 -9
- data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode2.h +2 -2
- data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/test/TestProductionCode.c +62 -62
- data/vendor/unity/examples/{test → example_1/test}/TestProductionCode2.c +31 -31
- data/vendor/unity/examples/{test/no_ruby → example_1/test/test_runners}/TestProductionCode2_Runner.c +46 -46
- data/vendor/unity/examples/{test/no_ruby → example_1/test/test_runners}/TestProductionCode_Runner.c +50 -50
- data/vendor/unity/examples/example_2/makefile +45 -0
- data/vendor/unity/examples/example_2/readme.txt +5 -0
- data/vendor/unity/examples/{src → example_2/src}/ProductionCode.c +24 -24
- data/vendor/unity/examples/{src → example_2/src}/ProductionCode.h +3 -3
- data/vendor/unity/examples/{src → example_2/src}/ProductionCode2.c +9 -9
- data/vendor/unity/examples/{src → example_2/src}/ProductionCode2.h +2 -2
- data/vendor/unity/examples/{test → example_2/test}/TestProductionCode.c +64 -62
- data/vendor/{cmock/vendor/unity/examples → unity/examples/example_2}/test/TestProductionCode2.c +33 -31
- data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +9 -0
- data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +11 -0
- data/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -0
- data/vendor/unity/examples/{helper → example_3/helper}/UnityHelper.c +10 -10
- data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/helper/UnityHelper.h +12 -12
- data/vendor/unity/examples/{makefile → example_3/makefile} +41 -40
- data/vendor/unity/examples/{rakefile.rb → example_3/rakefile.rb} +44 -43
- data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/rakefile_helper.rb +256 -256
- data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/readme.txt +18 -17
- data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode.c +24 -24
- data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode.h +3 -3
- data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode2.c +9 -9
- data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode2.h +2 -2
- data/vendor/{c_exception/vendor/unity/targets/gcc_64.yml → unity/examples/example_3/target_gcc_32.yml} +46 -44
- data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/test/TestProductionCode.c +62 -62
- data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/test/TestProductionCode2.c +31 -31
- data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/test/no_ruby/TestProductionCode2_Runner.c +46 -46
- data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/test/no_ruby/TestProductionCode_Runner.c +50 -50
- data/vendor/unity/extras/eclipse/error_parsers.txt +26 -0
- data/vendor/unity/extras/fixture/src/unity_fixture.c +4 -1
- data/vendor/unity/extras/fixture/src/unity_fixture.h +17 -16
- data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +7 -7
- data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +17 -0
- data/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +1 -0
- data/vendor/unity/makefile +6 -4
- data/vendor/unity/rakefile_helper.rb +36 -27
- data/vendor/unity/src/unity.c +180 -181
- data/vendor/unity/src/unity.h +64 -2
- data/vendor/unity/src/unity_internals.h +188 -102
- data/vendor/unity/targets/clang_strict.yml +83 -0
- data/vendor/unity/targets/gcc_32.yml +5 -0
- data/vendor/unity/targets/gcc_64.yml +5 -0
- data/vendor/{c_exception/vendor/unity/targets/gcc.yml → unity/targets/gcc_auto_limits.yml} +5 -2
- data/vendor/{cmock/vendor/unity/targets/gcc_64.yml → unity/targets/gcc_auto_sizeof.yml} +6 -3
- data/vendor/{cmock/vendor/unity/targets/gcc.yml → unity/targets/gcc_auto_stdint.yml} +4 -2
- data/vendor/unity/test/expectdata/testsample_cmd.c +57 -54
- data/vendor/unity/test/expectdata/testsample_def.c +53 -50
- data/vendor/unity/test/expectdata/testsample_mock_cmd.c +79 -76
- data/vendor/unity/test/expectdata/testsample_mock_def.c +75 -72
- data/vendor/unity/test/expectdata/testsample_mock_new1.c +88 -85
- data/vendor/unity/test/expectdata/testsample_mock_new2.c +88 -85
- data/vendor/unity/test/expectdata/testsample_mock_param.c +76 -73
- data/vendor/unity/test/expectdata/testsample_mock_run1.c +88 -85
- data/vendor/unity/test/expectdata/testsample_mock_run2.c +88 -85
- data/vendor/unity/test/expectdata/testsample_mock_yaml.c +89 -86
- data/vendor/unity/test/expectdata/testsample_new1.c +63 -60
- data/vendor/unity/test/expectdata/testsample_new2.c +66 -63
- data/vendor/unity/test/expectdata/testsample_param.c +54 -51
- data/vendor/unity/test/expectdata/testsample_run1.c +63 -60
- data/vendor/unity/test/expectdata/testsample_run2.c +66 -63
- data/vendor/unity/test/expectdata/testsample_yaml.c +67 -64
- data/vendor/unity/test/test_generate_test_runner.rb +66 -72
- data/vendor/unity/test/testunity.c +591 -111
- metadata +58 -195
- data/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +0 -94
- data/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +0 -39
- data/vendor/c_exception/vendor/unity/auto/generate_config.yml +0 -36
- data/vendor/c_exception/vendor/unity/auto/generate_module.rb +0 -202
- data/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +0 -313
- data/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +0 -23
- data/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +0 -139
- data/vendor/c_exception/vendor/unity/docs/Unity Summary.odt +0 -0
- data/vendor/c_exception/vendor/unity/docs/Unity Summary.pdf +0 -0
- data/vendor/c_exception/vendor/unity/docs/Unity Summary.txt +0 -217
- data/vendor/c_exception/vendor/unity/docs/license.txt +0 -31
- data/vendor/c_exception/vendor/unity/examples/helper/UnityHelper.c +0 -10
- data/vendor/c_exception/vendor/unity/examples/helper/UnityHelper.h +0 -12
- data/vendor/c_exception/vendor/unity/examples/makefile +0 -40
- data/vendor/c_exception/vendor/unity/examples/rakefile.rb +0 -32
- data/vendor/c_exception/vendor/unity/examples/rakefile_helper.rb +0 -256
- data/vendor/c_exception/vendor/unity/examples/test/no_ruby/TestProductionCode_Runner.c +0 -50
- data/vendor/c_exception/vendor/unity/extras/fixture/build/MakefileWorker.mk +0 -331
- data/vendor/c_exception/vendor/unity/extras/fixture/build/filterGcov.sh +0 -61
- data/vendor/c_exception/vendor/unity/extras/fixture/rakefile.rb +0 -37
- data/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +0 -178
- data/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +0 -9
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +0 -381
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +0 -81
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +0 -44
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +0 -16
- data/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +0 -21
- data/vendor/c_exception/vendor/unity/extras/fixture/test/testunity_fixture.c +0 -39
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +0 -321
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +0 -40
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +0 -56
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +0 -17
- data/vendor/c_exception/vendor/unity/makefile +0 -35
- data/vendor/c_exception/vendor/unity/rakefile.rb +0 -59
- data/vendor/c_exception/vendor/unity/rakefile_helper.rb +0 -240
- data/vendor/c_exception/vendor/unity/release/build.info +0 -2
- data/vendor/c_exception/vendor/unity/release/version.info +0 -2
- data/vendor/c_exception/vendor/unity/src/unity.c +0 -979
- data/vendor/c_exception/vendor/unity/src/unity.h +0 -232
- data/vendor/c_exception/vendor/unity/src/unity_internals.h +0 -424
- data/vendor/c_exception/vendor/unity/targets/hitech_picc18.yml +0 -101
- data/vendor/c_exception/vendor/unity/targets/iar_arm_v4.yml +0 -89
- data/vendor/c_exception/vendor/unity/targets/iar_arm_v5.yml +0 -79
- data/vendor/c_exception/vendor/unity/targets/iar_arm_v5_3.yml +0 -79
- data/vendor/c_exception/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +0 -93
- data/vendor/c_exception/vendor/unity/targets/iar_cortexm3_v5.yml +0 -83
- data/vendor/c_exception/vendor/unity/targets/iar_msp430.yml +0 -94
- data/vendor/c_exception/vendor/unity/targets/iar_sh2a_v6.yml +0 -85
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +0 -54
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +0 -50
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +0 -76
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +0 -72
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +0 -85
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +0 -85
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +0 -73
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +0 -85
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +0 -85
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +0 -86
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +0 -60
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +0 -63
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +0 -51
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +0 -60
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +0 -63
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +0 -64
- data/vendor/c_exception/vendor/unity/test/test_generate_test_runner.rb +0 -94
- data/vendor/c_exception/vendor/unity/test/testdata/mocksample.c +0 -51
- data/vendor/c_exception/vendor/unity/test/testdata/sample.yml +0 -9
- data/vendor/c_exception/vendor/unity/test/testdata/testsample.c +0 -51
- data/vendor/c_exception/vendor/unity/test/testparameterized.c +0 -101
- data/vendor/c_exception/vendor/unity/test/testunity.c +0 -2024
- data/vendor/cmock/vendor/c_exception/docs/CExceptionSummary.odt +0 -0
- data/vendor/cmock/vendor/c_exception/docs/CExceptionSummary.pdf +0 -0
- data/vendor/cmock/vendor/c_exception/docs/license.txt +0 -30
- data/vendor/cmock/vendor/c_exception/docs/readme.txt +0 -236
- data/vendor/cmock/vendor/c_exception/lib/CException.c +0 -39
- data/vendor/cmock/vendor/c_exception/lib/CException.h +0 -70
- data/vendor/cmock/vendor/c_exception/makefile +0 -24
- data/vendor/cmock/vendor/c_exception/rakefile.rb +0 -41
- data/vendor/cmock/vendor/c_exception/release/build.info +0 -2
- data/vendor/cmock/vendor/c_exception/release/version.info +0 -2
- data/vendor/cmock/vendor/c_exception/test/CExceptionConfig.h +0 -27
- data/vendor/cmock/vendor/c_exception/test/TestException.c +0 -291
- data/vendor/cmock/vendor/c_exception/test/TestException_Runner.c +0 -62
- data/vendor/cmock/vendor/unity/auto/colour_prompt.rb +0 -94
- data/vendor/cmock/vendor/unity/auto/colour_reporter.rb +0 -39
- data/vendor/cmock/vendor/unity/auto/generate_config.yml +0 -36
- data/vendor/cmock/vendor/unity/auto/generate_module.rb +0 -202
- data/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +0 -313
- data/vendor/cmock/vendor/unity/auto/test_file_filter.rb +0 -23
- data/vendor/cmock/vendor/unity/auto/unity_test_summary.rb +0 -139
- data/vendor/cmock/vendor/unity/docs/Unity Summary.odt +0 -0
- data/vendor/cmock/vendor/unity/docs/Unity Summary.pdf +0 -0
- data/vendor/cmock/vendor/unity/docs/Unity Summary.txt +0 -217
- data/vendor/cmock/vendor/unity/docs/license.txt +0 -31
- data/vendor/cmock/vendor/unity/examples/helper/UnityHelper.c +0 -10
- data/vendor/cmock/vendor/unity/examples/rakefile.rb +0 -32
- data/vendor/cmock/vendor/unity/examples/readme.txt +0 -18
- data/vendor/cmock/vendor/unity/examples/test/no_ruby/TestProductionCode2_Runner.c +0 -46
- data/vendor/cmock/vendor/unity/extras/fixture/build/MakefileWorker.mk +0 -331
- data/vendor/cmock/vendor/unity/extras/fixture/build/filterGcov.sh +0 -61
- data/vendor/cmock/vendor/unity/extras/fixture/rakefile.rb +0 -37
- data/vendor/cmock/vendor/unity/extras/fixture/rakefile_helper.rb +0 -178
- data/vendor/cmock/vendor/unity/extras/fixture/readme.txt +0 -9
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +0 -381
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.h +0 -81
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +0 -44
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +0 -16
- data/vendor/cmock/vendor/unity/extras/fixture/test/main/AllTests.c +0 -21
- data/vendor/cmock/vendor/unity/extras/fixture/test/testunity_fixture.c +0 -39
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +0 -321
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +0 -40
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.c +0 -56
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.h +0 -17
- data/vendor/cmock/vendor/unity/makefile +0 -35
- data/vendor/cmock/vendor/unity/rakefile.rb +0 -48
- data/vendor/cmock/vendor/unity/rakefile_helper.rb +0 -240
- data/vendor/cmock/vendor/unity/release/build.info +0 -2
- data/vendor/cmock/vendor/unity/release/version.info +0 -2
- data/vendor/cmock/vendor/unity/src/unity.c +0 -979
- data/vendor/cmock/vendor/unity/src/unity.h +0 -232
- data/vendor/cmock/vendor/unity/src/unity_internals.h +0 -424
- data/vendor/cmock/vendor/unity/targets/hitech_picc18.yml +0 -101
- data/vendor/cmock/vendor/unity/targets/iar_arm_v4.yml +0 -89
- data/vendor/cmock/vendor/unity/targets/iar_arm_v5.yml +0 -79
- data/vendor/cmock/vendor/unity/targets/iar_arm_v5_3.yml +0 -79
- data/vendor/cmock/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +0 -93
- data/vendor/cmock/vendor/unity/targets/iar_cortexm3_v5.yml +0 -83
- data/vendor/cmock/vendor/unity/targets/iar_msp430.yml +0 -94
- data/vendor/cmock/vendor/unity/targets/iar_sh2a_v6.yml +0 -85
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_cmd.c +0 -54
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_def.c +0 -50
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_cmd.c +0 -76
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_def.c +0 -72
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new1.c +0 -85
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new2.c +0 -85
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_param.c +0 -73
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run1.c +0 -85
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run2.c +0 -85
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_yaml.c +0 -86
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_new1.c +0 -60
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_new2.c +0 -63
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_param.c +0 -51
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_run1.c +0 -60
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_run2.c +0 -63
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_yaml.c +0 -64
- data/vendor/cmock/vendor/unity/test/test_generate_test_runner.rb +0 -94
- data/vendor/cmock/vendor/unity/test/testdata/mocksample.c +0 -51
- data/vendor/cmock/vendor/unity/test/testdata/sample.yml +0 -9
- data/vendor/cmock/vendor/unity/test/testdata/testsample.c +0 -51
- data/vendor/cmock/vendor/unity/test/testparameterized.c +0 -101
- data/vendor/cmock/vendor/unity/test/testunity.c +0 -2024
- data/vendor/unity/Gemfile +0 -4
- data/vendor/unity/examples/helper/UnityHelper.h +0 -12
- data/vendor/unity/examples/rakefile_helper.rb +0 -256
- data/vendor/unity/examples/readme.txt +0 -18
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
# ==========================================
|
|
2
|
-
# Unity Project - A Test Framework for C
|
|
3
|
-
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
|
4
|
-
# [Released under MIT License. Please refer to license.txt for details]
|
|
5
|
-
# ==========================================
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
# ruby auto/generate_test_runner.rb test/
|
|
33
|
-
|
|
34
|
-
$(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(
|
|
35
|
-
$(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
# ==========================================
|
|
2
|
+
# Unity Project - A Test Framework for C
|
|
3
|
+
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
|
4
|
+
# [Released under MIT License. Please refer to license.txt for details]
|
|
5
|
+
# ==========================================
|
|
6
|
+
|
|
7
|
+
UNITY_ROOT=../..
|
|
8
|
+
C_COMPILER=gcc
|
|
9
|
+
TARGET_BASE1=test1
|
|
10
|
+
TARGET_BASE2=test2
|
|
11
|
+
ifeq ($(OS),Windows_NT)
|
|
12
|
+
TARGET_EXTENSION=.exe
|
|
13
|
+
else
|
|
14
|
+
TARGET_EXTENSION=.out
|
|
15
|
+
endif
|
|
16
|
+
TARGET1 = $(TARGET_BASE1)$(TARGET_EXTENSION)
|
|
17
|
+
TARGET2 = $(TARGET_BASE2)$(TARGET_EXTENSION)
|
|
18
|
+
SRC_FILES1=$(UNITY_ROOT)/src/unity.c src/ProductionCode.c test/TestProductionCode.c test/test_runners/TestProductionCode_Runner.c
|
|
19
|
+
SRC_FILES2=$(UNITY_ROOT)/src/unity.c src/ProductionCode2.c test/TestProductionCode2.c test/test_runners/TestProductionCode2_Runner.c
|
|
20
|
+
INC_DIRS=-Isrc -I$(UNITY_ROOT)/src
|
|
21
|
+
SYMBOLS=-DTEST
|
|
22
|
+
|
|
23
|
+
ifeq ($(OS),Windows_NT)
|
|
24
|
+
CLEANUP = del /F /Q $(TARGET1) && del /F /Q $(TARGET2)
|
|
25
|
+
else
|
|
26
|
+
CLEANUP = rm -f build/*.o ; rm -f $(TARGET1) ; rm -f $(TARGET2)
|
|
27
|
+
endif
|
|
28
|
+
|
|
29
|
+
all: clean default
|
|
30
|
+
|
|
31
|
+
default:
|
|
32
|
+
# ruby auto/generate_test_runner.rb test/TestProductionCode.c test/test_runners/TestProductionCode_Runner.c
|
|
33
|
+
# ruby auto/generate_test_runner.rb test/TestProductionCode2.c test/test_runners/TestProductionCode2_Runner.c
|
|
34
|
+
$(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)
|
|
35
|
+
$(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES2) -o $(TARGET2)
|
|
36
|
+
./$(TARGET1)
|
|
37
|
+
./$(TARGET2)
|
|
38
|
+
|
|
39
|
+
clean:
|
|
40
|
+
$(CLEANUP)
|
|
41
|
+
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
#include "ProductionCode.h"
|
|
3
|
-
|
|
4
|
-
int Counter = 0;
|
|
5
|
-
int NumbersToFind[9] = { 0, 34, 55, 66, 32, 11, 1, 77, 888 }; //some obnoxious array to search that is 1-based indexing instead of 0.
|
|
6
|
-
|
|
7
|
-
// This function is supposed to search through NumbersToFind and find a particular number.
|
|
8
|
-
// If it finds it, the index is returned. Otherwise 0 is returned which sorta makes sense since
|
|
9
|
-
// NumbersToFind is indexed from 1. Unfortunately it's broken
|
|
10
|
-
// (and should therefore be caught by our tests)
|
|
11
|
-
int FindFunction_WhichIsBroken(int NumberToFind)
|
|
12
|
-
{
|
|
13
|
-
int i = 0;
|
|
14
|
-
while (i <= 8) //Notice I should have been in braces
|
|
15
|
-
i++;
|
|
16
|
-
if (NumbersToFind[i] == NumberToFind) //Yikes! I'm getting run after the loop finishes instead of during it!
|
|
17
|
-
return i;
|
|
18
|
-
return 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
int FunctionWhichReturnsLocalVariable(void)
|
|
22
|
-
{
|
|
23
|
-
return Counter;
|
|
24
|
-
}
|
|
1
|
+
|
|
2
|
+
#include "ProductionCode.h"
|
|
3
|
+
|
|
4
|
+
int Counter = 0;
|
|
5
|
+
int NumbersToFind[9] = { 0, 34, 55, 66, 32, 11, 1, 77, 888 }; //some obnoxious array to search that is 1-based indexing instead of 0.
|
|
6
|
+
|
|
7
|
+
// This function is supposed to search through NumbersToFind and find a particular number.
|
|
8
|
+
// If it finds it, the index is returned. Otherwise 0 is returned which sorta makes sense since
|
|
9
|
+
// NumbersToFind is indexed from 1. Unfortunately it's broken
|
|
10
|
+
// (and should therefore be caught by our tests)
|
|
11
|
+
int FindFunction_WhichIsBroken(int NumberToFind)
|
|
12
|
+
{
|
|
13
|
+
int i = 0;
|
|
14
|
+
while (i <= 8) //Notice I should have been in braces
|
|
15
|
+
i++;
|
|
16
|
+
if (NumbersToFind[i] == NumberToFind) //Yikes! I'm getting run after the loop finishes instead of during it!
|
|
17
|
+
return i;
|
|
18
|
+
return 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
int FunctionWhichReturnsLocalVariable(void)
|
|
22
|
+
{
|
|
23
|
+
return Counter;
|
|
24
|
+
}
|
data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode.h
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
int FindFunction_WhichIsBroken(int NumberToFind);
|
|
3
|
-
int FunctionWhichReturnsLocalVariable(void);
|
|
1
|
+
|
|
2
|
+
int FindFunction_WhichIsBroken(int NumberToFind);
|
|
3
|
+
int FunctionWhichReturnsLocalVariable(void);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
#include "ProductionCode2.h"
|
|
3
|
-
|
|
4
|
-
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction)
|
|
5
|
-
{
|
|
6
|
-
//Since There Are No Tests Yet, This Function Could Be Empty For All We Know.
|
|
7
|
-
// Which isn't terribly useful... but at least we put in a TEST_IGNORE so we won't forget
|
|
8
|
-
return (char*)0;
|
|
9
|
-
}
|
|
1
|
+
|
|
2
|
+
#include "ProductionCode2.h"
|
|
3
|
+
|
|
4
|
+
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction)
|
|
5
|
+
{
|
|
6
|
+
//Since There Are No Tests Yet, This Function Could Be Empty For All We Know.
|
|
7
|
+
// Which isn't terribly useful... but at least we put in a TEST_IGNORE so we won't forget
|
|
8
|
+
return (char*)0;
|
|
9
|
+
}
|
data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode2.h
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
|
|
1
|
+
|
|
2
|
+
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
|
data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/test/TestProductionCode.c
RENAMED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
#include "ProductionCode.h"
|
|
3
|
-
#include "unity.h"
|
|
4
|
-
|
|
5
|
-
//sometimes you may want to get at local data in a module.
|
|
6
|
-
//for example: If you plan to pass by reference, this could be useful
|
|
7
|
-
//however, it should often be avoided
|
|
8
|
-
extern int Counter;
|
|
9
|
-
|
|
10
|
-
void setUp(void)
|
|
11
|
-
{
|
|
12
|
-
//This is run before EACH TEST
|
|
13
|
-
Counter = 0x5a5a;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
void tearDown(void)
|
|
17
|
-
{
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
void test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode(void)
|
|
21
|
-
{
|
|
22
|
-
//All of these should pass
|
|
23
|
-
TEST_ASSERT_EQUAL(0, FindFunction_WhichIsBroken(78));
|
|
24
|
-
TEST_ASSERT_EQUAL(0, FindFunction_WhichIsBroken(1));
|
|
25
|
-
TEST_ASSERT_EQUAL(0, FindFunction_WhichIsBroken(33));
|
|
26
|
-
TEST_ASSERT_EQUAL(0, FindFunction_WhichIsBroken(999));
|
|
27
|
-
TEST_ASSERT_EQUAL(0, FindFunction_WhichIsBroken(-1));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
void test_FindFunction_WhichIsBroken_ShouldReturnTheIndexForItemsInList_WhichWillFailBecauseOurFunctionUnderTestIsBroken(void)
|
|
31
|
-
{
|
|
32
|
-
// You should see this line fail in your test summary
|
|
33
|
-
TEST_ASSERT_EQUAL(1, FindFunction_WhichIsBroken(34));
|
|
34
|
-
|
|
35
|
-
// Notice the rest of these didn't get a chance to run because the line above failed.
|
|
36
|
-
// Unit tests abort each test function on the first sign of trouble.
|
|
37
|
-
// Then NEXT test function runs as normal.
|
|
38
|
-
TEST_ASSERT_EQUAL(8, FindFunction_WhichIsBroken(8888));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
void test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValue(void)
|
|
42
|
-
{
|
|
43
|
-
//This should be true because setUp set this up for us before this test
|
|
44
|
-
TEST_ASSERT_EQUAL_HEX(0x5a5a, FunctionWhichReturnsLocalVariable());
|
|
45
|
-
|
|
46
|
-
//This should be true because we can still change our answer
|
|
47
|
-
Counter = 0x1234;
|
|
48
|
-
TEST_ASSERT_EQUAL_HEX(0x1234, FunctionWhichReturnsLocalVariable());
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
void test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValueAgain(void)
|
|
52
|
-
{
|
|
53
|
-
//This should be true again because setup was rerun before this test (and after we changed it to 0x1234)
|
|
54
|
-
TEST_ASSERT_EQUAL_HEX(0x5a5a, FunctionWhichReturnsLocalVariable());
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
void test_FunctionWhichReturnsLocalVariable_ShouldReturnCurrentCounter_ButFailsBecauseThisTestIsActuallyFlawed(void)
|
|
58
|
-
{
|
|
59
|
-
//Sometimes you get the test wrong. When that happens, you get a failure too... and a quick look should tell
|
|
60
|
-
// you what actually happened...which in this case was a failure to setup the initial condition.
|
|
61
|
-
TEST_ASSERT_EQUAL_HEX(0x1234, FunctionWhichReturnsLocalVariable());
|
|
62
|
-
}
|
|
1
|
+
|
|
2
|
+
#include "ProductionCode.h"
|
|
3
|
+
#include "unity.h"
|
|
4
|
+
|
|
5
|
+
//sometimes you may want to get at local data in a module.
|
|
6
|
+
//for example: If you plan to pass by reference, this could be useful
|
|
7
|
+
//however, it should often be avoided
|
|
8
|
+
extern int Counter;
|
|
9
|
+
|
|
10
|
+
void setUp(void)
|
|
11
|
+
{
|
|
12
|
+
//This is run before EACH TEST
|
|
13
|
+
Counter = 0x5a5a;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
void tearDown(void)
|
|
17
|
+
{
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
void test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode(void)
|
|
21
|
+
{
|
|
22
|
+
//All of these should pass
|
|
23
|
+
TEST_ASSERT_EQUAL(0, FindFunction_WhichIsBroken(78));
|
|
24
|
+
TEST_ASSERT_EQUAL(0, FindFunction_WhichIsBroken(1));
|
|
25
|
+
TEST_ASSERT_EQUAL(0, FindFunction_WhichIsBroken(33));
|
|
26
|
+
TEST_ASSERT_EQUAL(0, FindFunction_WhichIsBroken(999));
|
|
27
|
+
TEST_ASSERT_EQUAL(0, FindFunction_WhichIsBroken(-1));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
void test_FindFunction_WhichIsBroken_ShouldReturnTheIndexForItemsInList_WhichWillFailBecauseOurFunctionUnderTestIsBroken(void)
|
|
31
|
+
{
|
|
32
|
+
// You should see this line fail in your test summary
|
|
33
|
+
TEST_ASSERT_EQUAL(1, FindFunction_WhichIsBroken(34));
|
|
34
|
+
|
|
35
|
+
// Notice the rest of these didn't get a chance to run because the line above failed.
|
|
36
|
+
// Unit tests abort each test function on the first sign of trouble.
|
|
37
|
+
// Then NEXT test function runs as normal.
|
|
38
|
+
TEST_ASSERT_EQUAL(8, FindFunction_WhichIsBroken(8888));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
void test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValue(void)
|
|
42
|
+
{
|
|
43
|
+
//This should be true because setUp set this up for us before this test
|
|
44
|
+
TEST_ASSERT_EQUAL_HEX(0x5a5a, FunctionWhichReturnsLocalVariable());
|
|
45
|
+
|
|
46
|
+
//This should be true because we can still change our answer
|
|
47
|
+
Counter = 0x1234;
|
|
48
|
+
TEST_ASSERT_EQUAL_HEX(0x1234, FunctionWhichReturnsLocalVariable());
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
void test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValueAgain(void)
|
|
52
|
+
{
|
|
53
|
+
//This should be true again because setup was rerun before this test (and after we changed it to 0x1234)
|
|
54
|
+
TEST_ASSERT_EQUAL_HEX(0x5a5a, FunctionWhichReturnsLocalVariable());
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
void test_FunctionWhichReturnsLocalVariable_ShouldReturnCurrentCounter_ButFailsBecauseThisTestIsActuallyFlawed(void)
|
|
58
|
+
{
|
|
59
|
+
//Sometimes you get the test wrong. When that happens, you get a failure too... and a quick look should tell
|
|
60
|
+
// you what actually happened...which in this case was a failure to setup the initial condition.
|
|
61
|
+
TEST_ASSERT_EQUAL_HEX(0x1234, FunctionWhichReturnsLocalVariable());
|
|
62
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
#include "ProductionCode2.h"
|
|
3
|
-
#include "unity.h"
|
|
4
|
-
|
|
5
|
-
/* These should be ignored because they are commented out in various ways:
|
|
6
|
-
#include "whatever.h"
|
|
7
|
-
*/
|
|
8
|
-
//#include "somethingelse.h"
|
|
9
|
-
|
|
10
|
-
void setUp(void)
|
|
11
|
-
{
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
void tearDown(void)
|
|
15
|
-
{
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
void test_IgnoredTest(void)
|
|
19
|
-
{
|
|
20
|
-
TEST_IGNORE_MESSAGE("This Test Was Ignored On Purpose");
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
void test_AnotherIgnoredTest(void)
|
|
24
|
-
{
|
|
25
|
-
TEST_IGNORE_MESSAGE("These Can Be Useful For Leaving Yourself Notes On What You Need To Do Yet");
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
void test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented(void)
|
|
29
|
-
{
|
|
30
|
-
TEST_IGNORE(); //Like This
|
|
31
|
-
}
|
|
1
|
+
|
|
2
|
+
#include "ProductionCode2.h"
|
|
3
|
+
#include "unity.h"
|
|
4
|
+
|
|
5
|
+
/* These should be ignored because they are commented out in various ways:
|
|
6
|
+
#include "whatever.h"
|
|
7
|
+
*/
|
|
8
|
+
//#include "somethingelse.h"
|
|
9
|
+
|
|
10
|
+
void setUp(void)
|
|
11
|
+
{
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
void tearDown(void)
|
|
15
|
+
{
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
void test_IgnoredTest(void)
|
|
19
|
+
{
|
|
20
|
+
TEST_IGNORE_MESSAGE("This Test Was Ignored On Purpose");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
void test_AnotherIgnoredTest(void)
|
|
24
|
+
{
|
|
25
|
+
TEST_IGNORE_MESSAGE("These Can Be Useful For Leaving Yourself Notes On What You Need To Do Yet");
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
void test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented(void)
|
|
29
|
+
{
|
|
30
|
+
TEST_IGNORE(); //Like This
|
|
31
|
+
}
|
data/vendor/unity/examples/{test/no_ruby → example_1/test/test_runners}/TestProductionCode2_Runner.c
RENAMED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
/* AUTOGENERATED FILE. DO NOT EDIT. */
|
|
2
|
-
#include "unity.h"
|
|
3
|
-
#include <setjmp.h>
|
|
4
|
-
#include <stdio.h>
|
|
5
|
-
|
|
6
|
-
char MessageBuffer[50];
|
|
7
|
-
|
|
8
|
-
extern void setUp(void);
|
|
9
|
-
extern void tearDown(void);
|
|
10
|
-
|
|
11
|
-
extern void test_IgnoredTest(void);
|
|
12
|
-
extern void test_AnotherIgnoredTest(void);
|
|
13
|
-
extern void test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented(void);
|
|
14
|
-
|
|
15
|
-
static void runTest(UnityTestFunction test)
|
|
16
|
-
{
|
|
17
|
-
if (TEST_PROTECT())
|
|
18
|
-
{
|
|
19
|
-
setUp();
|
|
20
|
-
test();
|
|
21
|
-
}
|
|
22
|
-
if (TEST_PROTECT() && !TEST_IS_IGNORED)
|
|
23
|
-
{
|
|
24
|
-
tearDown();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
void resetTest()
|
|
28
|
-
{
|
|
29
|
-
tearDown();
|
|
30
|
-
setUp();
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
int main(void)
|
|
35
|
-
{
|
|
36
|
-
Unity.TestFile = "test/TestProductionCode2.c";
|
|
37
|
-
UnityBegin();
|
|
38
|
-
|
|
39
|
-
// RUN_TEST calls runTest
|
|
40
|
-
RUN_TEST(test_IgnoredTest, 13);
|
|
41
|
-
RUN_TEST(test_AnotherIgnoredTest, 18);
|
|
42
|
-
RUN_TEST(test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented, 23);
|
|
43
|
-
|
|
44
|
-
UnityEnd();
|
|
45
|
-
return 0;
|
|
46
|
-
}
|
|
1
|
+
/* AUTOGENERATED FILE. DO NOT EDIT. */
|
|
2
|
+
#include "unity.h"
|
|
3
|
+
#include <setjmp.h>
|
|
4
|
+
#include <stdio.h>
|
|
5
|
+
|
|
6
|
+
char MessageBuffer[50];
|
|
7
|
+
|
|
8
|
+
extern void setUp(void);
|
|
9
|
+
extern void tearDown(void);
|
|
10
|
+
|
|
11
|
+
extern void test_IgnoredTest(void);
|
|
12
|
+
extern void test_AnotherIgnoredTest(void);
|
|
13
|
+
extern void test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented(void);
|
|
14
|
+
|
|
15
|
+
static void runTest(UnityTestFunction test)
|
|
16
|
+
{
|
|
17
|
+
if (TEST_PROTECT())
|
|
18
|
+
{
|
|
19
|
+
setUp();
|
|
20
|
+
test();
|
|
21
|
+
}
|
|
22
|
+
if (TEST_PROTECT() && !TEST_IS_IGNORED)
|
|
23
|
+
{
|
|
24
|
+
tearDown();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
void resetTest()
|
|
28
|
+
{
|
|
29
|
+
tearDown();
|
|
30
|
+
setUp();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
int main(void)
|
|
35
|
+
{
|
|
36
|
+
Unity.TestFile = "test/TestProductionCode2.c";
|
|
37
|
+
UnityBegin();
|
|
38
|
+
|
|
39
|
+
// RUN_TEST calls runTest
|
|
40
|
+
RUN_TEST(test_IgnoredTest, 13);
|
|
41
|
+
RUN_TEST(test_AnotherIgnoredTest, 18);
|
|
42
|
+
RUN_TEST(test_ThisFunctionHasNotBeenTested_NeedsToBeImplemented, 23);
|
|
43
|
+
|
|
44
|
+
UnityEnd();
|
|
45
|
+
return 0;
|
|
46
|
+
}
|