ceedling 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.vim +1 -0
- data/Gemfile +3 -0
- data/LICENSE +19 -0
- data/Rakefile +18 -0
- data/bin/ceedling +39 -0
- data/ceedling.gemspec +23 -0
- data/lib/ceedling/version.rb +10 -0
- data/lib/ceedling/version.rb.erb +10 -0
- data/lib/ceedling.rb +5 -0
- data/new_project_template/build/.gitkeep +0 -0
- data/new_project_template/project.yml +65 -0
- data/new_project_template/rakefile.rb +4 -0
- data/new_project_template/src/.gitkeep +0 -0
- data/new_project_template/test/.gitkeep +0 -0
- data/new_project_template/test/support/.gitkeep +0 -0
- data/new_project_template/vendor/ceedling/config/test_environment.rb +12 -0
- data/new_project_template/vendor/ceedling/docs/Ceedling Packet.odt +0 -0
- data/new_project_template/vendor/ceedling/docs/Ceedling Packet.pdf +0 -0
- data/new_project_template/vendor/ceedling/docs/CeedlingLogo.png +0 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/gcc.yml +42 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/iar_v4.yml +91 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/iar_v5.yml +80 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/project.yml +65 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/rakefile.rb +5 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/AdcConductor.c +42 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/AdcConductor.h +13 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/AdcHardware.c +27 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/AdcHardware.h +11 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/AdcHardwareConfigurator.c +18 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/AdcHardwareConfigurator.h +10 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/AdcModel.c +33 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/AdcModel.h +13 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/AdcTemperatureSensor.c +51 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/AdcTemperatureSensor.h +10 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/Executor.c +25 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/Executor.h +9 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/IntrinsicsWrapper.c +18 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/IntrinsicsWrapper.h +7 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/Main.c +46 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/Main.h +7 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/Model.c +10 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/Model.h +8 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/ModelConfig.h +7 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TaskScheduler.c +72 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TaskScheduler.h +11 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TemperatureCalculator.c +27 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TemperatureCalculator.h +8 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TemperatureFilter.c +39 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TemperatureFilter.h +10 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerConductor.c +15 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerConductor.h +9 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerConfigurator.c +51 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerConfigurator.h +15 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerHardware.c +15 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerHardware.h +8 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerInterruptConfigurator.c +55 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerInterruptConfigurator.h +13 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerInterruptHandler.c +25 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerInterruptHandler.h +10 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerModel.c +9 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/TimerModel.h +8 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/Types.h +90 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c +18 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +8 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartConductor.c +21 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartConductor.h +7 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartConfigurator.c +39 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartConfigurator.h +13 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartHardware.c +22 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartHardware.h +9 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartModel.c +34 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartModel.h +10 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartPutChar.c +16 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartPutChar.h +8 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartTransmitBufferStatus.c +7 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/src/UsartTransmitBufferStatus.h +8 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestAdcConductor.c +121 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestAdcHardware.c +44 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestAdcModel.c +33 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestExecutor.c +36 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestMain.c +24 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestModel.c +20 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestTaskScheduler.c +104 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestTemperatureCalculator.c +33 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestTemperatureFilter.c +69 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestTimerConductor.c +32 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestTimerHardware.c +26 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestTimerModel.c +18 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c +21 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestUsartConductor.c +40 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestUsartHardware.c +36 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/TestUsartModel.c +40 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/support/UnityHelper.c +12 -0
- data/new_project_template/vendor/ceedling/examples/temp_sensor/test/support/UnityHelper.h +8 -0
- data/new_project_template/vendor/ceedling/lib/cacheinator.rb +42 -0
- data/new_project_template/vendor/ceedling/lib/cacheinator_helper.rb +12 -0
- data/new_project_template/vendor/ceedling/lib/cmock_builder.rb +15 -0
- data/new_project_template/vendor/ceedling/lib/configurator.rb +254 -0
- data/new_project_template/vendor/ceedling/lib/configurator_builder.rb +408 -0
- data/new_project_template/vendor/ceedling/lib/configurator_plugins.rb +96 -0
- data/new_project_template/vendor/ceedling/lib/configurator_setup.rb +114 -0
- data/new_project_template/vendor/ceedling/lib/configurator_validator.rb +154 -0
- data/new_project_template/vendor/ceedling/lib/constants.rb +66 -0
- data/new_project_template/vendor/ceedling/lib/defaults.rb +349 -0
- data/new_project_template/vendor/ceedling/lib/dependinator.rb +92 -0
- data/new_project_template/vendor/ceedling/lib/file_finder.rb +132 -0
- data/new_project_template/vendor/ceedling/lib/file_finder_helper.rb +54 -0
- data/new_project_template/vendor/ceedling/lib/file_path_utils.rb +177 -0
- data/new_project_template/vendor/ceedling/lib/file_system_utils.rb +59 -0
- data/new_project_template/vendor/ceedling/lib/file_wrapper.rb +74 -0
- data/new_project_template/vendor/ceedling/lib/generator.rb +131 -0
- data/new_project_template/vendor/ceedling/lib/generator_test_results.rb +90 -0
- data/new_project_template/vendor/ceedling/lib/generator_test_results_sanity_checker.rb +62 -0
- data/new_project_template/vendor/ceedling/lib/generator_test_runner.rb +206 -0
- data/new_project_template/vendor/ceedling/lib/loginator.rb +31 -0
- data/new_project_template/vendor/ceedling/lib/makefile.rb +46 -0
- data/new_project_template/vendor/ceedling/lib/objects.yml +278 -0
- data/new_project_template/vendor/ceedling/lib/plugin.rb +63 -0
- data/new_project_template/vendor/ceedling/lib/plugin_manager.rb +85 -0
- data/new_project_template/vendor/ceedling/lib/plugin_manager_helper.rb +19 -0
- data/new_project_template/vendor/ceedling/lib/plugin_reportinator.rb +75 -0
- data/new_project_template/vendor/ceedling/lib/plugin_reportinator_helper.rb +52 -0
- data/new_project_template/vendor/ceedling/lib/preprocessinator.rb +43 -0
- data/new_project_template/vendor/ceedling/lib/preprocessinator_extractor.rb +27 -0
- data/new_project_template/vendor/ceedling/lib/preprocessinator_file_handler.rb +21 -0
- data/new_project_template/vendor/ceedling/lib/preprocessinator_helper.rb +46 -0
- data/new_project_template/vendor/ceedling/lib/preprocessinator_includes_handler.rb +55 -0
- data/new_project_template/vendor/ceedling/lib/project_config_manager.rb +38 -0
- data/new_project_template/vendor/ceedling/lib/project_file_loader.rb +64 -0
- data/new_project_template/vendor/ceedling/lib/rake_utils.rb +17 -0
- data/new_project_template/vendor/ceedling/lib/rake_wrapper.rb +31 -0
- data/new_project_template/vendor/ceedling/lib/rakefile.rb +60 -0
- data/new_project_template/vendor/ceedling/lib/release_invoker.rb +29 -0
- data/new_project_template/vendor/ceedling/lib/release_invoker_helper.rb +16 -0
- data/new_project_template/vendor/ceedling/lib/reportinator.rb +9 -0
- data/new_project_template/vendor/ceedling/lib/rules_cmock.rake +9 -0
- data/new_project_template/vendor/ceedling/lib/rules_preprocess.rake +26 -0
- data/new_project_template/vendor/ceedling/lib/rules_release.rake +63 -0
- data/new_project_template/vendor/ceedling/lib/rules_release_aux_dependencies.rake +15 -0
- data/new_project_template/vendor/ceedling/lib/rules_tests.rake +49 -0
- data/new_project_template/vendor/ceedling/lib/rules_tests_aux_dependencies.rake +15 -0
- data/new_project_template/vendor/ceedling/lib/setupinator.rb +45 -0
- data/new_project_template/vendor/ceedling/lib/stream_wrapper.rb +20 -0
- data/new_project_template/vendor/ceedling/lib/streaminator.rb +41 -0
- data/new_project_template/vendor/ceedling/lib/streaminator_helper.rb +15 -0
- data/new_project_template/vendor/ceedling/lib/system_wrapper.rb +67 -0
- data/new_project_template/vendor/ceedling/lib/task_invoker.rb +85 -0
- data/new_project_template/vendor/ceedling/lib/tasks_base.rake +104 -0
- data/new_project_template/vendor/ceedling/lib/tasks_filesystem.rake +89 -0
- data/new_project_template/vendor/ceedling/lib/tasks_release.rake +22 -0
- data/new_project_template/vendor/ceedling/lib/tasks_tests.rake +49 -0
- data/new_project_template/vendor/ceedling/lib/tasks_vendor.rake +36 -0
- data/new_project_template/vendor/ceedling/lib/test_includes_extractor.rb +81 -0
- data/new_project_template/vendor/ceedling/lib/test_invoker.rb +72 -0
- data/new_project_template/vendor/ceedling/lib/test_invoker_helper.rb +41 -0
- data/new_project_template/vendor/ceedling/lib/tool_executor.rb +178 -0
- data/new_project_template/vendor/ceedling/lib/tool_executor_helper.rb +57 -0
- data/new_project_template/vendor/ceedling/lib/verbosinator.rb +10 -0
- data/new_project_template/vendor/ceedling/lib/yaml_wrapper.rb +16 -0
- data/new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/stdout_ide_tests_report.rb +44 -0
- data/new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/stdout_ide_tests_report.yml +4 -0
- data/new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/stdout_pretty_tests_report.rb +108 -0
- data/new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/stdout_pretty_tests_report.yml +4 -0
- data/new_project_template/vendor/ceedling/plugins/xml_tests_report/xml_tests_report.rb +106 -0
- data/new_project_template/vendor/ceedling/rakefile.rb +59 -0
- data/new_project_template/vendor/ceedling/rakefile_helper.rb +23 -0
- data/new_project_template/vendor/ceedling/release/build.info +1 -0
- data/new_project_template/vendor/ceedling/release/version.info +1 -0
- data/new_project_template/vendor/ceedling/test/integration/paths.yml +17 -0
- data/new_project_template/vendor/ceedling/test/integration/paths_test.rb +80 -0
- data/new_project_template/vendor/ceedling/test/integration/rake_rules_aux_dependencies_test.rb +75 -0
- data/new_project_template/vendor/ceedling/test/integration/rake_rules_cmock_test.rb +74 -0
- data/new_project_template/vendor/ceedling/test/integration/rake_rules_preprocess_test.rb +178 -0
- data/new_project_template/vendor/ceedling/test/integration/rake_rules_test.rb +268 -0
- data/new_project_template/vendor/ceedling/test/integration/rake_tasks_test.rb +103 -0
- data/new_project_template/vendor/ceedling/test/integration_test_helper.rb +34 -0
- data/new_project_template/vendor/ceedling/test/rakefile_rules.rb +10 -0
- data/new_project_template/vendor/ceedling/test/rakefile_rules_aux_dependencies.rb +10 -0
- data/new_project_template/vendor/ceedling/test/rakefile_rules_cmock.rb +10 -0
- data/new_project_template/vendor/ceedling/test/rakefile_rules_preprocess.rb +10 -0
- data/new_project_template/vendor/ceedling/test/rakefile_tasks.rb +10 -0
- data/new_project_template/vendor/ceedling/test/system/file_system_dependencies.yml +20 -0
- data/new_project_template/vendor/ceedling/test/system/file_system_kitchen_sink.yml +20 -0
- data/new_project_template/vendor/ceedling/test/system/file_system_mocks.yml +20 -0
- data/new_project_template/vendor/ceedling/test/system/file_system_preprocess.yml +20 -0
- data/new_project_template/vendor/ceedling/test/system/file_system_simple.yml +20 -0
- data/new_project_template/vendor/ceedling/test/system/file_system_test.rb +78 -0
- data/new_project_template/vendor/ceedling/test/system/mocks/include/a_file.h +2 -0
- data/new_project_template/vendor/ceedling/test/system/mocks/include/other_stuff.h +2 -0
- data/new_project_template/vendor/ceedling/test/system/mocks/include/stuff.h +3 -0
- data/new_project_template/vendor/ceedling/test/system/mocks/source/a_file.c +9 -0
- data/new_project_template/vendor/ceedling/test/system/mocks/test/test_a_file.c +41 -0
- data/new_project_template/vendor/ceedling/test/system/mocks/test/test_no_file.c +14 -0
- data/new_project_template/vendor/ceedling/test/system/project_mocks.yml +43 -0
- data/new_project_template/vendor/ceedling/test/system/project_mocks_test.rb +38 -0
- data/new_project_template/vendor/ceedling/test/system/project_simple.yml +36 -0
- data/new_project_template/vendor/ceedling/test/system/project_simple_test.rb +39 -0
- data/new_project_template/vendor/ceedling/test/system/rule_mocks_test.rb +44 -0
- data/new_project_template/vendor/ceedling/test/system/rule_runners_test.rb +44 -0
- data/new_project_template/vendor/ceedling/test/system/simple/include/other_stuff.h +2 -0
- data/new_project_template/vendor/ceedling/test/system/simple/include/stuff.h +3 -0
- data/new_project_template/vendor/ceedling/test/system/simple/source/other_stuff.c +6 -0
- data/new_project_template/vendor/ceedling/test/system/simple/source/stuff.c +7 -0
- data/new_project_template/vendor/ceedling/test/system/simple/test/test_other_stuff.c +30 -0
- data/new_project_template/vendor/ceedling/test/system/simple/test/test_stuff.c +51 -0
- data/new_project_template/vendor/ceedling/test/system_test_helper.rb +73 -0
- data/new_project_template/vendor/ceedling/test/test_helper.rb +93 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/configurator_builder_test.rb +571 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/configurator_helper_test.rb +234 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/configurator_test.rb +232 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/configurator_validator_test.rb +169 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/deep_merge_fix_test.rb +55 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/dependinator_test.rb +129 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/file_finder_helper_test.rb +45 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/file_finder_test.rb +114 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/file_path_utils_test.rb +97 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/file_system_utils_test.rb +21 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/generator_test.rb +187 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/generator_test_results_test.rb +129 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/generator_test_runner_test.rb +478 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/preprocessinator_extractor_test.rb +729 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/preprocessinator_file_handler_test.rb +38 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/preprocessinator_helper_test.rb +156 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/preprocessinator_includes_handler_test.rb +93 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/preprocessinator_test.rb +57 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/project_file_loader_test.rb +142 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/setupinator_test.rb +45 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/streaminator_test.rb +49 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/task_invoker_test.rb +69 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/test_includes_extractor_test.rb +111 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/test_invoker_helper_test.rb +62 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/test_invoker_test.rb +47 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/tool_executor_helper_test.rb +100 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/tool_executor_test.rb +351 -0
- data/new_project_template/vendor/ceedling/test/unit/busted/verbosinator_test.rb +65 -0
- data/new_project_template/vendor/ceedling/test/unit_test_helper.rb +16 -0
- data/new_project_template/vendor/ceedling/vendor/behaviors/Manifest.txt +9 -0
- data/new_project_template/vendor/ceedling/vendor/behaviors/Rakefile +19 -0
- data/new_project_template/vendor/ceedling/vendor/behaviors/lib/behaviors/reporttask.rb +158 -0
- data/new_project_template/vendor/ceedling/vendor/behaviors/lib/behaviors.rb +76 -0
- data/new_project_template/vendor/ceedling/vendor/behaviors/test/behaviors_tasks_test.rb +73 -0
- data/new_project_template/vendor/ceedling/vendor/behaviors/test/behaviors_test.rb +50 -0
- data/new_project_template/vendor/ceedling/vendor/behaviors/test/tasks_test/Rakefile +19 -0
- data/new_project_template/vendor/ceedling/vendor/behaviors/test/tasks_test/lib/user.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/behaviors/test/tasks_test/test/user_test.rb +17 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/docs/CExceptionSummary.odt +0 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/docs/CExceptionSummary.pdf +0 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/docs/license.txt +30 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/docs/readme.txt +236 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/lib/CException.c +39 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/lib/CException.h +70 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/makefile +24 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/rakefile.rb +41 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/release/build.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/release/version.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/test/CExceptionConfig.h +27 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/test/TestException.c +291 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/test/TestException_Runner.c +62 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +94 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +39 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/auto/generate_config.yml +36 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/auto/generate_module.rb +202 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +303 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +23 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +126 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/docs/Unity Summary.odt +0 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/docs/Unity Summary.pdf +0 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/docs/Unity Summary.txt +217 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/docs/license.txt +31 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/helper/UnityHelper.c +10 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/helper/UnityHelper.h +12 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/makefile +40 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/rakefile.rb +32 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/rakefile_helper.rb +260 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/readme.txt +18 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/src/ProductionCode.c +24 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/src/ProductionCode.h +3 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/src/ProductionCode2.c +9 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/src/ProductionCode2.h +2 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/test/TestProductionCode.c +62 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/test/TestProductionCode2.c +26 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/test/no_ruby/TestProductionCode2_Runner.c +46 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/examples/test/no_ruby/TestProductionCode_Runner.c +50 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/build/MakefileWorker.mk +331 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/build/filterGcov.sh +61 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/rakefile.rb +37 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +178 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +9 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +381 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +81 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +44 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +16 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +21 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/test/testunity_fixture.c +39 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +321 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +40 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +56 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +17 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/makefile +35 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/rakefile.rb +48 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/rakefile_helper.rb +243 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/release/build.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/release/version.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/src/unity.c +856 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/src/unity.h +213 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/src/unity_internals.h +355 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/targets/gcc.yml +42 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/targets/gcc_64.yml +43 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/targets/hitech_picc18.yml +101 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/targets/iar_arm_v4.yml +89 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/targets/iar_arm_v5.yml +79 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/targets/iar_arm_v5_3.yml +79 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +93 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/targets/iar_cortexm3_v5.yml +83 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/targets/iar_msp430.yml +94 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/targets/iar_sh2a_v6.yml +85 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +54 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +50 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +76 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +72 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +73 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +86 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +60 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +63 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +60 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +63 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +64 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/test_generate_test_runner.rb +94 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/testdata/mocksample.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/testdata/sample.yml +9 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/testdata/testsample.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/testparameterized.c +101 -0
- data/new_project_template/vendor/ceedling/vendor/c_exception/vendor/unity/test/testunity.c +1510 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/config/production_environment.rb +14 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/config/test_environment.rb +16 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/docs/CMock Summary.odt +0 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/docs/CMock Summary.pdf +0 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/docs/license.txt +31 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/gcc.yml +43 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/iar_v4.yml +91 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/iar_v5.yml +80 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/rakefile.rb +32 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/rakefile_helper.rb +274 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/AT91SAM7X256.h +2556 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/AdcConductor.c +42 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/AdcConductor.h +11 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/AdcHardware.c +27 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/AdcHardware.h +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/AdcHardwareConfigurator.c +18 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/AdcHardwareConfigurator.h +10 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/AdcModel.c +33 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/AdcModel.h +13 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/AdcTemperatureSensor.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/AdcTemperatureSensor.h +10 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/Executor.c +25 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/Executor.h +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/IntrinsicsWrapper.c +18 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/IntrinsicsWrapper.h +7 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/Main.c +46 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/Main.h +7 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/Model.c +10 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/Model.h +8 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/ModelConfig.h +7 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TaskScheduler.c +72 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TaskScheduler.h +11 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TemperatureCalculator.c +27 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TemperatureCalculator.h +6 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TemperatureFilter.c +39 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TemperatureFilter.h +10 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerConductor.c +15 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerConductor.h +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerConfigurator.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerConfigurator.h +15 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerHardware.c +15 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerHardware.h +8 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerInterruptConfigurator.c +55 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerInterruptConfigurator.h +13 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerInterruptHandler.c +25 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerInterruptHandler.h +10 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerModel.c +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/TimerModel.h +8 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/Types.h +103 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartBaudRateRegisterCalculator.c +18 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartBaudRateRegisterCalculator.h +6 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartConductor.c +21 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartConductor.h +7 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartConfigurator.c +39 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartConfigurator.h +13 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartHardware.c +22 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartHardware.h +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartModel.c +34 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartModel.h +10 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartPutChar.c +16 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartPutChar.h +8 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartTransmitBufferStatus.c +7 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/src/UsartTransmitBufferStatus.h +8 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestAdcConductor.c +121 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestAdcHardware.c +44 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestAdcHardwareConfigurator.c +43 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestAdcModel.c +33 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestAdcTemperatureSensor.c +47 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestExecutor.c +36 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestMain.c +24 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestModel.c +20 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestTaskScheduler.c +104 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestTemperatureCalculator.c +33 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestTemperatureFilter.c +69 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestTimerConductor.c +32 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestTimerConfigurator.c +112 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestTimerHardware.c +26 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestTimerInterruptConfigurator.c +78 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestTimerInterruptHandler.c +66 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestTimerModel.c +18 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestUsartBaudRateRegisterCalculator.c +21 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestUsartConductor.c +40 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestUsartConfigurator.c +77 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestUsartHardware.c +37 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestUsartModel.c +40 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestUsartPutChar.c +43 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/examples/test/TestUsartTransmitBufferStatus.c +22 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/Resource/SAM7_FLASH.mac +71 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/Resource/SAM7_RAM.mac +94 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/Resource/SAM7_SIM.mac +67 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/Resource/at91SAM7X256_FLASH.xcl +185 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/Resource/at91SAM7X256_RAM.xcl +185 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/Resource/ioat91sam7x256.ddf +2259 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/cmock_demo.dep +3691 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/cmock_demo.ewd +1696 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/cmock_demo.ewp +2581 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/cmock_demo.eww +10 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/incIAR/AT91SAM7X-EK.h +61 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/incIAR/AT91SAM7X256.inc +2314 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/incIAR/AT91SAM7X256.rdf +4704 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/incIAR/AT91SAM7X256.tcl +3407 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/incIAR/AT91SAM7X256_inc.h +2268 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/incIAR/ioat91sam7x256.h +4380 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/incIAR/lib_AT91SAM7X256.h +4211 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/settings/cmock_demo.cspy.bat +32 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/settings/cmock_demo.dbgdt +86 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/settings/cmock_demo.dni +42 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/settings/cmock_demo.wsdt +76 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/srcIAR/Cstartup.s79 +266 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v4/srcIAR/Cstartup_SAM7.c +98 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/Resource/SAM7_FLASH.mac +71 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/Resource/SAM7_RAM.mac +94 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/Resource/SAM7_SIM.mac +67 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/Resource/at91SAM7X256_FLASH.icf +43 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/Resource/at91SAM7X256_RAM.icf +42 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/cmock_demo.dep +4204 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/cmock_demo.ewd +1906 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/cmock_demo.ewp +2426 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/cmock_demo.eww +26 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/incIAR/AT91SAM7X-EK.h +61 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/incIAR/AT91SAM7X256_inc.h +2268 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/incIAR/lib_AT91SAM7X256.h +4211 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/incIAR/project.h +30 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/BasicInterrupt_SAM7X.cspy.bat +33 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/BasicInterrupt_SAM7X.dbgdt +5 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/BasicInterrupt_SAM7X.dni +18 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/BasicInterrupt_SAM7X.wsdt +74 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/BasicInterrupt_SAM7X_FLASH_Debug.jlink +12 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/cmock_demo.cspy.bat +33 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/cmock_demo.dbgdt +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/cmock_demo.dni +44 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/cmock_demo.wsdt +73 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/cmock_demo_Binary.jlink +12 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/cmock_demo_FLASH_Debug.jlink +12 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/settings/cmock_demo_RAM_Debug.jlink +12 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/srcIAR/Cstartup.s +299 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/iar/iar_v5/srcIAR/Cstartup_SAM7.c +98 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock.rb +65 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_config.rb +123 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_file_writer.rb +33 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator.rb +196 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_plugin_array.rb +57 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_plugin_callback.rb +78 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_plugin_cexception.rb +51 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_plugin_expect.rb +86 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_utils.rb +177 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_header_parser.rb +270 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_plugin_manager.rb +40 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_unityhelper_parser.rb +74 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/rakefile.rb +89 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/rakefile_helper.rb +383 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/release/build.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/release/version.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/src/cmock.c +186 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/src/cmock.h +30 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/targets/gcc.yml +50 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/targets/gcc_32_with_64_support.yml +52 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/targets/gcc_64.yml +53 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/targets/iar_arm_v4.yml +107 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/targets/iar_arm_v5.yml +92 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/c/TestCMockC.c +280 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/c/TestCMockC.yml +12 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/c/TestCMockCDynamic.c +186 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/c/TestCMockCDynamic.yml +12 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +35 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/c/TestCMockC_Runner.c +37 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/systest_generator.rb +178 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_compilation/config.yml +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_compilation/const.h +15 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_compilation/osek.h +275 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_compilation/parsing.h +47 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/all_plugins_but_other_limits.yml +340 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/all_plugins_coexist.yml +381 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/array_and_pointer_handling.yml +382 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/basic_expect_and_return.yml +123 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/const_primitives_handling.yml +87 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/enforce_strict_ordering.yml +247 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/expect_and_return_custom_types.yml +108 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/expect_and_return_treat_as.yml +173 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/expect_and_throw.yml +170 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/fancy_pointer_handling.yml +208 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/function_pointer_handling.yml +82 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/ignore_and_return.yml +153 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml +52 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_1.yml +91 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_2.yml +59 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/parsing_challenges.yml +222 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return.yml +277 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/stubs_with_callbacks.yml +221 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/unity_64bit_support.yml +82 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/system/test_interactions/unity_ignores.yml +139 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/test_helper.rb +44 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_config_test.rb +45 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_config_test.yml +5 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_file_writer_test.rb +30 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_generator_main_test.rb +412 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_generator_plugin_array_test.rb +114 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_generator_plugin_callback_test.rb +190 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_generator_plugin_cexception_test.rb +94 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_generator_plugin_expect_test.rb +206 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +159 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_generator_utils_test.rb +291 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_header_parser_test.rb +1170 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_plugin_manager_test.rb +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/test/unit/cmock_unityhelper_parser_test.rb +223 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/behaviors/Manifest.txt +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/behaviors/Rakefile +19 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/behaviors/lib/behaviors/reporttask.rb +158 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/behaviors/lib/behaviors.rb +76 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/behaviors/test/behaviors_tasks_test.rb +73 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/behaviors/test/behaviors_test.rb +50 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/behaviors/test/tasks_test/Rakefile +19 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/behaviors/test/tasks_test/lib/user.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/behaviors/test/tasks_test/test/user_test.rb +17 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/docs/CExceptionSummary.odt +0 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/docs/CExceptionSummary.pdf +0 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/docs/license.txt +30 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/docs/readme.txt +236 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/lib/CException.c +39 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/lib/CException.h +70 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/makefile +24 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/rakefile.rb +41 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/release/build.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/release/version.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/test/CExceptionConfig.h +27 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/test/TestException.c +291 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/test/TestException_Runner.c +62 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +94 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +39 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_config.yml +36 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_module.rb +202 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +303 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +23 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +126 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/docs/Unity Summary.odt +0 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/docs/Unity Summary.pdf +0 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/docs/Unity Summary.txt +217 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/docs/license.txt +31 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/helper/UnityHelper.c +10 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/helper/UnityHelper.h +12 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/makefile +40 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/rakefile.rb +32 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/rakefile_helper.rb +260 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/readme.txt +18 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/src/ProductionCode.c +24 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/src/ProductionCode.h +3 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/src/ProductionCode2.c +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/src/ProductionCode2.h +2 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/test/TestProductionCode.c +62 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/test/TestProductionCode2.c +26 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/test/no_ruby/TestProductionCode2_Runner.c +46 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/examples/test/no_ruby/TestProductionCode_Runner.c +50 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/build/MakefileWorker.mk +331 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/build/filterGcov.sh +61 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/rakefile.rb +37 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +178 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +381 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +81 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +44 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +16 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +21 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/testunity_fixture.c +39 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +321 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +40 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +56 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +17 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/makefile +35 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/rakefile.rb +48 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/rakefile_helper.rb +243 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/release/build.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/release/version.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.c +856 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.h +213 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/src/unity_internals.h +355 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/targets/gcc.yml +42 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/targets/gcc_64.yml +43 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/targets/hitech_picc18.yml +101 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_arm_v4.yml +89 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_arm_v5.yml +79 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_arm_v5_3.yml +79 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +93 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_cortexm3_v5.yml +83 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_msp430.yml +94 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_sh2a_v6.yml +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +54 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +50 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +76 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +72 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +73 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +86 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +60 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +63 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +60 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +63 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +64 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/test_generate_test_runner.rb +94 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/mocksample.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/sample.yml +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testsample.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/testparameterized.c +101 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/c_exception/vendor/unity/test/testunity.c +1510 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/CHANGES +78 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/LICENSE +7 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/README +70 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/Rakefile +8 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/config/environment.rb +12 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/assert_error.rb +23 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/extend_test_unit.rb +14 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/hardmock/errors.rb +22 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/hardmock/expectation.rb +229 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/hardmock/expectation_builder.rb +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/hardmock/expector.rb +26 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/hardmock/method_cleanout.rb +33 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/hardmock/mock.rb +180 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/hardmock/mock_control.rb +53 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/hardmock/stubbing.rb +210 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/hardmock/trapper.rb +31 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/hardmock/utils.rb +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/hardmock.rb +86 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/lib/test_unit_before_after.rb +169 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/rake_tasks/rdoc.rake +19 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/rake_tasks/rdoc_options.rb +4 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/rake_tasks/test.rake +22 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/functional/assert_error_test.rb +52 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/functional/auto_verify_test.rb +178 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/functional/direct_mock_usage_test.rb +396 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/functional/hardmock_test.rb +434 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/functional/stubbing_test.rb +479 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/test_helper.rb +43 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/unit/expectation_builder_test.rb +19 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/unit/expectation_test.rb +372 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/unit/expector_test.rb +57 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/unit/method_cleanout_test.rb +36 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/unit/mock_control_test.rb +175 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/unit/mock_test.rb +279 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/unit/test_unit_before_after_test.rb +452 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/unit/trapper_test.rb +62 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/hardmock/test/unit/verify_error_test.rb +40 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/auto/colour_prompt.rb +94 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/auto/colour_reporter.rb +39 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/auto/generate_config.yml +36 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/auto/generate_module.rb +202 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +303 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/auto/test_file_filter.rb +23 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/auto/unity_test_summary.rb +126 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/docs/Unity Summary.odt +0 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/docs/Unity Summary.pdf +0 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/docs/Unity Summary.txt +217 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/docs/license.txt +31 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/helper/UnityHelper.c +10 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/helper/UnityHelper.h +12 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/makefile +40 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/rakefile.rb +32 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/rakefile_helper.rb +260 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/readme.txt +18 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/src/ProductionCode.c +24 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/src/ProductionCode.h +3 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/src/ProductionCode2.c +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/src/ProductionCode2.h +2 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/test/TestProductionCode.c +62 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/test/TestProductionCode2.c +26 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/test/no_ruby/TestProductionCode2_Runner.c +46 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/examples/test/no_ruby/TestProductionCode_Runner.c +50 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/build/MakefileWorker.mk +331 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/build/filterGcov.sh +61 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/rakefile.rb +37 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/rakefile_helper.rb +178 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/readme.txt +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +381 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.h +81 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +44 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +16 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/test/main/AllTests.c +21 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/test/testunity_fixture.c +39 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +321 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +40 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.c +56 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.h +17 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/makefile +35 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/rakefile.rb +48 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/rakefile_helper.rb +243 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/release/build.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/release/version.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/src/unity.c +856 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/src/unity.h +213 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/src/unity_internals.h +355 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/targets/gcc.yml +42 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/targets/gcc_64.yml +43 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/targets/hitech_picc18.yml +101 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/targets/iar_arm_v4.yml +89 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/targets/iar_arm_v5.yml +79 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/targets/iar_arm_v5_3.yml +79 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +93 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/targets/iar_cortexm3_v5.yml +83 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/targets/iar_msp430.yml +94 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/targets/iar_sh2a_v6.yml +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_cmd.c +54 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_def.c +50 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_cmd.c +76 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_def.c +72 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new1.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new2.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_param.c +73 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run1.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run2.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_yaml.c +86 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_new1.c +60 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_new2.c +63 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_param.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_run1.c +60 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_run2.c +63 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/expectdata/testsample_yaml.c +64 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/test_generate_test_runner.rb +94 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/testdata/mocksample.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/testdata/sample.yml +9 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/testdata/testsample.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/testparameterized.c +101 -0
- data/new_project_template/vendor/ceedling/vendor/cmock/vendor/unity/test/testunity.c +1510 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/History.rdoc +19 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/README.rdoc +72 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/Rakefile +33 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/homepage/Notes.txt +27 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/homepage/Rakefile +15 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/homepage/index.erb +27 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/homepage/index.html +36 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/homepage/page_header.graffle +0 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/homepage/page_header.html +9 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/homepage/page_header.png +0 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/homepage/sample_code.png +0 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/homepage/sample_code.rb +12 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/lib/constructor.rb +127 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/lib/constructor_struct.rb +33 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/specs/constructor_spec.rb +407 -0
- data/new_project_template/vendor/ceedling/vendor/constructor/specs/constructor_struct_spec.rb +84 -0
- data/new_project_template/vendor/ceedling/vendor/deep_merge/MIT-LICENSE +20 -0
- data/new_project_template/vendor/ceedling/vendor/deep_merge/README +94 -0
- data/new_project_template/vendor/ceedling/vendor/deep_merge/Rakefile +28 -0
- data/new_project_template/vendor/ceedling/vendor/deep_merge/lib/deep_merge.rb +211 -0
- data/new_project_template/vendor/ceedling/vendor/deep_merge/test/test_deep_merge.rb +553 -0
- data/new_project_template/vendor/ceedling/vendor/diy/History.txt +28 -0
- data/new_project_template/vendor/ceedling/vendor/diy/README.rdoc +233 -0
- data/new_project_template/vendor/ceedling/vendor/diy/Rakefile +33 -0
- data/new_project_template/vendor/ceedling/vendor/diy/TODO.txt +9 -0
- data/new_project_template/vendor/ceedling/vendor/diy/diy.gemspec +131 -0
- data/new_project_template/vendor/ceedling/vendor/diy/lib/diy/factory.rb +36 -0
- data/new_project_template/vendor/ceedling/vendor/diy/lib/diy.rb +403 -0
- data/new_project_template/vendor/ceedling/vendor/diy/sample_code/car.rb +7 -0
- data/new_project_template/vendor/ceedling/vendor/diy/sample_code/chassis.rb +5 -0
- data/new_project_template/vendor/ceedling/vendor/diy/sample_code/diy_example.rb +26 -0
- data/new_project_template/vendor/ceedling/vendor/diy/sample_code/engine.rb +5 -0
- data/new_project_template/vendor/ceedling/vendor/diy/sample_code/objects.yml +10 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/constructor.rb +119 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/diy_test.rb +608 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/factory_test.rb +79 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/broken_construction.yml +7 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/cat/cat.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/cat/extra_conflict.yml +5 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/cat/heritage.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/cat/needs_input.yml +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/cat/the_cat_lineage.rb +1 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/dog/dog_model.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/dog/dog_presenter.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/dog/dog_view.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/dog/file_resolver.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/dog/other_thing.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/dog/simple.yml +11 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/donkey/foo/bar/qux.rb +7 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/donkey/foo.rb +8 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/factory/beef.rb +5 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/factory/dog.rb +6 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/factory/factory.yml +19 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/factory/farm/llama.rb +7 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/factory/farm/pork.rb +7 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/factory/kitten.rb +13 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/fud/objects.yml +13 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/fud/toy.rb +14 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/functions/attached_things_builder.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/functions/invalid_method.yml +5 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/functions/method_extractor.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/functions/nonsingleton_objects.yml +6 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/functions/objects.yml +22 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/functions/thing.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/functions/thing_builder.rb +25 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/functions/things_builder.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/gnu/objects.yml +14 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/gnu/thinger.rb +7 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/goat/base.rb +8 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/goat/can.rb +6 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/goat/goat.rb +6 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/goat/objects.yml +12 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/goat/paper.rb +6 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/goat/plane.rb +7 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/goat/shirt.rb +6 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/goat/wings.rb +8 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/horse/holder_thing.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/horse/objects.yml +7 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/animal/bird.rb +5 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/animal/cat.rb +5 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/animal/reptile/hardshell/turtle.rb +8 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/animal/reptile/lizard.rb +7 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/bad_module_specified.yml +8 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/class_name_combine.yml +8 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/hello.txt +1 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/no_module_specified.yml +8 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/objects.yml +21 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/road.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/sky.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/namespace/subcontext.yml +22 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/non_singleton/air.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/non_singleton/fat_cat.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/non_singleton/objects.yml +19 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/non_singleton/pig.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/non_singleton/thread_spinner.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/non_singleton/tick.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/non_singleton/yard.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/yak/core_model.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/yak/core_presenter.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/yak/core_view.rb +1 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/yak/data_source.rb +1 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/yak/fringe_model.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/yak/fringe_presenter.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/yak/fringe_view.rb +1 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/yak/giant_squid.rb +3 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/yak/krill.rb +2 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/yak/my_objects.yml +21 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/files/yak/sub_sub_context_test.yml +27 -0
- data/new_project_template/vendor/ceedling/vendor/diy/test/test_helper.rb +55 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/CHANGES +78 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/LICENSE +7 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/README +70 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/Rakefile +8 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/config/environment.rb +12 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/assert_error.rb +23 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/extend_test_unit.rb +14 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/hardmock/errors.rb +22 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/hardmock/expectation.rb +229 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/hardmock/expectation_builder.rb +9 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/hardmock/expector.rb +26 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/hardmock/method_cleanout.rb +33 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/hardmock/mock.rb +180 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/hardmock/mock_control.rb +53 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/hardmock/stubbing.rb +210 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/hardmock/trapper.rb +31 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/hardmock/utils.rb +9 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/hardmock.rb +86 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/lib/test_unit_before_after.rb +169 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/rake_tasks/rdoc.rake +19 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/rake_tasks/rdoc_options.rb +4 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/rake_tasks/test.rake +22 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/functional/assert_error_test.rb +52 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/functional/auto_verify_test.rb +178 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/functional/direct_mock_usage_test.rb +396 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/functional/hardmock_test.rb +434 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/functional/stubbing_test.rb +479 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/test_helper.rb +43 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/unit/expectation_builder_test.rb +19 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/unit/expectation_test.rb +372 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/unit/expector_test.rb +57 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/unit/method_cleanout_test.rb +36 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/unit/mock_control_test.rb +175 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/unit/mock_test.rb +279 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/unit/test_unit_before_after_test.rb +452 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/unit/trapper_test.rb +62 -0
- data/new_project_template/vendor/ceedling/vendor/hardmock/test/unit/verify_error_test.rb +40 -0
- data/new_project_template/vendor/ceedling/vendor/unity/auto/colour_prompt.rb +94 -0
- data/new_project_template/vendor/ceedling/vendor/unity/auto/colour_reporter.rb +39 -0
- data/new_project_template/vendor/ceedling/vendor/unity/auto/generate_config.yml +36 -0
- data/new_project_template/vendor/ceedling/vendor/unity/auto/generate_module.rb +202 -0
- data/new_project_template/vendor/ceedling/vendor/unity/auto/generate_test_runner.rb +303 -0
- data/new_project_template/vendor/ceedling/vendor/unity/auto/test_file_filter.rb +23 -0
- data/new_project_template/vendor/ceedling/vendor/unity/auto/unity_test_summary.rb +126 -0
- data/new_project_template/vendor/ceedling/vendor/unity/docs/Unity Summary.odt +0 -0
- data/new_project_template/vendor/ceedling/vendor/unity/docs/Unity Summary.pdf +0 -0
- data/new_project_template/vendor/ceedling/vendor/unity/docs/Unity Summary.txt +217 -0
- data/new_project_template/vendor/ceedling/vendor/unity/docs/license.txt +31 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/helper/UnityHelper.c +10 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/helper/UnityHelper.h +12 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/makefile +40 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/rakefile.rb +32 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/rakefile_helper.rb +260 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/readme.txt +18 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/src/ProductionCode.c +24 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/src/ProductionCode.h +3 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/src/ProductionCode2.c +9 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/src/ProductionCode2.h +2 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/test/TestProductionCode.c +62 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/test/TestProductionCode2.c +26 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/test/no_ruby/TestProductionCode2_Runner.c +46 -0
- data/new_project_template/vendor/ceedling/vendor/unity/examples/test/no_ruby/TestProductionCode_Runner.c +50 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/build/MakefileWorker.mk +331 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/build/filterGcov.sh +61 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/rakefile.rb +37 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/rakefile_helper.rb +178 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/readme.txt +9 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/src/unity_fixture.c +381 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/src/unity_fixture.h +81 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/src/unity_fixture_internals.h +44 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +16 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/test/main/AllTests.c +21 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/test/testunity_fixture.c +39 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/test/unity_fixture_Test.c +321 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +40 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/test/unity_output_Spy.c +56 -0
- data/new_project_template/vendor/ceedling/vendor/unity/extras/fixture/test/unity_output_Spy.h +17 -0
- data/new_project_template/vendor/ceedling/vendor/unity/makefile +35 -0
- data/new_project_template/vendor/ceedling/vendor/unity/rakefile.rb +48 -0
- data/new_project_template/vendor/ceedling/vendor/unity/rakefile_helper.rb +243 -0
- data/new_project_template/vendor/ceedling/vendor/unity/release/build.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/unity/release/version.info +2 -0
- data/new_project_template/vendor/ceedling/vendor/unity/src/unity.c +856 -0
- data/new_project_template/vendor/ceedling/vendor/unity/src/unity.h +213 -0
- data/new_project_template/vendor/ceedling/vendor/unity/src/unity_internals.h +355 -0
- data/new_project_template/vendor/ceedling/vendor/unity/targets/gcc.yml +42 -0
- data/new_project_template/vendor/ceedling/vendor/unity/targets/gcc_64.yml +43 -0
- data/new_project_template/vendor/ceedling/vendor/unity/targets/hitech_picc18.yml +101 -0
- data/new_project_template/vendor/ceedling/vendor/unity/targets/iar_arm_v4.yml +89 -0
- data/new_project_template/vendor/ceedling/vendor/unity/targets/iar_arm_v5.yml +79 -0
- data/new_project_template/vendor/ceedling/vendor/unity/targets/iar_arm_v5_3.yml +79 -0
- data/new_project_template/vendor/ceedling/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +93 -0
- data/new_project_template/vendor/ceedling/vendor/unity/targets/iar_cortexm3_v5.yml +83 -0
- data/new_project_template/vendor/ceedling/vendor/unity/targets/iar_msp430.yml +94 -0
- data/new_project_template/vendor/ceedling/vendor/unity/targets/iar_sh2a_v6.yml +85 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_cmd.c +54 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_def.c +50 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_mock_cmd.c +76 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_mock_def.c +72 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_mock_new1.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_mock_new2.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_mock_param.c +73 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_mock_run1.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_mock_run2.c +85 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_mock_yaml.c +86 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_new1.c +60 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_new2.c +63 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_param.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_run1.c +60 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_run2.c +63 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/expectdata/testsample_yaml.c +64 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/test_generate_test_runner.rb +94 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/testdata/mocksample.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/testdata/sample.yml +9 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/testdata/testsample.c +51 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/testparameterized.c +101 -0
- data/new_project_template/vendor/ceedling/vendor/unity/test/testunity.c +1510 -0
- metadata +1058 -0
@@ -0,0 +1,1170 @@
|
|
1
|
+
# ==========================================
|
2
|
+
# CMock Project - Automatic Mock Generation 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
|
+
$ThisIsOnlyATest = true
|
8
|
+
|
9
|
+
require File.expand_path(File.dirname(__FILE__)) + "/../test_helper"
|
10
|
+
require 'cmock_header_parser'
|
11
|
+
|
12
|
+
class CMockHeaderParserTest < Test::Unit::TestCase
|
13
|
+
|
14
|
+
def setup
|
15
|
+
create_mocks :config
|
16
|
+
@test_name = 'test_file.h'
|
17
|
+
@config.expect.strippables.returns(['(?:__attribute__\s*\(+.*?\)+)'])
|
18
|
+
@config.expect.attributes.returns(['__ramfunc', 'funky_attrib'])
|
19
|
+
@config.expect.treat_as_void.returns(['MY_FUNKY_VOID'])
|
20
|
+
@config.expect.treat_as.returns({ "BANJOS" => "INT", "TUBAS" => "HEX16"} )
|
21
|
+
@config.expect.when_no_prototypes.returns(:error)
|
22
|
+
@config.expect.verbosity.returns(1)
|
23
|
+
@config.expect.treat_externs.returns(:exclude)
|
24
|
+
|
25
|
+
@parser = CMockHeaderParser.new(@config)
|
26
|
+
end
|
27
|
+
|
28
|
+
def teardown
|
29
|
+
end
|
30
|
+
|
31
|
+
should "create and initialize variables to defaults appropriately" do
|
32
|
+
assert_equal([], @parser.funcs)
|
33
|
+
assert_equal(['const', '__ramfunc', 'funky_attrib'], @parser.c_attributes)
|
34
|
+
assert_equal(['void','MY_FUNKY_VOID'], @parser.treat_as_void)
|
35
|
+
end
|
36
|
+
|
37
|
+
should "strip out line comments" do
|
38
|
+
source =
|
39
|
+
" abcd;\n" +
|
40
|
+
"// hello;\n" +
|
41
|
+
"who // is you\n"
|
42
|
+
|
43
|
+
expected =
|
44
|
+
[
|
45
|
+
"abcd",
|
46
|
+
"who"
|
47
|
+
]
|
48
|
+
|
49
|
+
assert_equal(expected, @parser.import_source(source).map!{|s|s.strip})
|
50
|
+
end
|
51
|
+
|
52
|
+
|
53
|
+
should "remove block comments" do
|
54
|
+
source =
|
55
|
+
" no_comments;\n" +
|
56
|
+
"// basic_line_comment;\n" +
|
57
|
+
"/* basic_block_comment;*/\n" +
|
58
|
+
"pre_block; /* start_of_block_comment;\n" +
|
59
|
+
"// embedded_line_comment_in_block_comment; */\n" +
|
60
|
+
"// /* commented_out_block_comment_line\n" +
|
61
|
+
"shown_because_block_comment_invalid_from_line_comment;\n" +
|
62
|
+
"// */\n" +
|
63
|
+
"//* shorter_commented_out_block_comment_line; \n" +
|
64
|
+
"shown_because_block_comment_invalid_from_shorter_line_comment;\n" +
|
65
|
+
"/*/\n" +
|
66
|
+
"not_shown_because_line_above_started_comment;\n" +
|
67
|
+
"//*/\n" +
|
68
|
+
"/* \n" +
|
69
|
+
"not_shown_because_block_comment_started_this_time;\n" +
|
70
|
+
"/*/\n" +
|
71
|
+
"shown_because_line_above_ended_comment_this_time;\n" +
|
72
|
+
"//*/\n"
|
73
|
+
|
74
|
+
expected =
|
75
|
+
[
|
76
|
+
"no_comments",
|
77
|
+
"pre_block",
|
78
|
+
"shown_because_block_comment_invalid_from_line_comment",
|
79
|
+
"shown_because_block_comment_invalid_from_shorter_line_comment",
|
80
|
+
"shown_because_line_above_ended_comment_this_time"
|
81
|
+
]
|
82
|
+
|
83
|
+
assert_equal(expected, @parser.import_source(source).map!{|s|s.strip})
|
84
|
+
end
|
85
|
+
|
86
|
+
|
87
|
+
should "remove preprocessor directives" do
|
88
|
+
source =
|
89
|
+
"#when stuff_happens\n" +
|
90
|
+
"#ifdef _TEST\n" +
|
91
|
+
"#pragma stack_switch"
|
92
|
+
|
93
|
+
expected = []
|
94
|
+
|
95
|
+
assert_equal(expected, @parser.import_source(source))
|
96
|
+
end
|
97
|
+
|
98
|
+
|
99
|
+
should "remove assembler pragma sections" do
|
100
|
+
source =
|
101
|
+
" #pragma\tasm\n" +
|
102
|
+
" .foo\n" +
|
103
|
+
" lda %m\n" +
|
104
|
+
" nop\n" +
|
105
|
+
"# pragma endasm \n" +
|
106
|
+
"foo"
|
107
|
+
|
108
|
+
expected = ["foo"]
|
109
|
+
|
110
|
+
assert_equal(expected, @parser.import_source(source))
|
111
|
+
end
|
112
|
+
|
113
|
+
|
114
|
+
should "smush lines together that contain continuation characters" do
|
115
|
+
source =
|
116
|
+
"hoo hah \\\n" +
|
117
|
+
"when \\ \n"
|
118
|
+
|
119
|
+
expected =
|
120
|
+
[
|
121
|
+
"hoo hah when"
|
122
|
+
]
|
123
|
+
|
124
|
+
assert_equal(expected, @parser.import_source(source).map!{|s|s.strip})
|
125
|
+
end
|
126
|
+
|
127
|
+
|
128
|
+
should "remove C macro definitions" do
|
129
|
+
source =
|
130
|
+
"#define this is the first line\\\n" +
|
131
|
+
"and the second\\\n" +
|
132
|
+
"and the third that should be removed\n" +
|
133
|
+
"but I'm here\n"
|
134
|
+
|
135
|
+
expected = ["but I'm here"]
|
136
|
+
|
137
|
+
assert_equal(expected, @parser.import_source(source))
|
138
|
+
end
|
139
|
+
|
140
|
+
|
141
|
+
should "remove typedef statements" do
|
142
|
+
source =
|
143
|
+
"typedef uint32 (unsigned int);\n" +
|
144
|
+
"const typedef int INT;\n" +
|
145
|
+
"int notatypedef;\n" +
|
146
|
+
"int typedef_isnt_me;\n" +
|
147
|
+
" typedef who cares what really comes here \\\n" + # exercise multiline typedef
|
148
|
+
" continuation;\n" +
|
149
|
+
"this should remain!;\n" +
|
150
|
+
"typedef blah bleh;\n" +
|
151
|
+
"typedef struct shell_command_struct {\n" +
|
152
|
+
" char_ptr COMMAND;\n" +
|
153
|
+
" int_32 (*SHELL_FUNC)(int_32 argc);\n" +
|
154
|
+
"} SHELL_COMMAND_STRUCT, * SHELL_COMMAND_PTR;\n" +
|
155
|
+
"typedef struct shell_command_struct {\n" +
|
156
|
+
" char_ptr COMMAND;\n" +
|
157
|
+
" int_32 (*SHELL_FUNC)(int_32 argc, char_ptr argv[]);\n" +
|
158
|
+
"} SHELL_COMMAND_STRUCT, * SHELL_COMMAND_PTR;\n" +
|
159
|
+
"typedef struct shell_command_struct {\n" +
|
160
|
+
" char_ptr COMMAND;\n" +
|
161
|
+
" int_32 (*SHELL_FUNC)(int_32 argc);\n" +
|
162
|
+
"};\n"
|
163
|
+
|
164
|
+
expected =
|
165
|
+
[
|
166
|
+
"int notatypedef",
|
167
|
+
"int typedef_isnt_me",
|
168
|
+
"this should remain!"
|
169
|
+
]
|
170
|
+
|
171
|
+
assert_equal(expected, @parser.import_source(source).map!{|s|s.strip})
|
172
|
+
end
|
173
|
+
|
174
|
+
|
175
|
+
should "remove enum statements" do
|
176
|
+
source =
|
177
|
+
"enum _NamedEnum {\n" +
|
178
|
+
" THING1 = (0x0001),\n" +
|
179
|
+
" THING2 = (0x0001 << 5),\n" +
|
180
|
+
"}ListOValues;\n\n" +
|
181
|
+
"don't delete me!!\n" +
|
182
|
+
" modifier_str enum _NamedEnum {THING1 = (0x0001), THING2 = (0x0001 << 5)} ListOValues;\n\n" +
|
183
|
+
"typedef enum {\n" +
|
184
|
+
" THING1,\n" +
|
185
|
+
" THING2,\n" +
|
186
|
+
"} Thinger;\n" +
|
187
|
+
"or me!!\n"
|
188
|
+
|
189
|
+
assert_equal(["don't delete me!! or me!!"], @parser.import_source(source).map!{|s|s.strip})
|
190
|
+
end
|
191
|
+
|
192
|
+
|
193
|
+
should "remove union statements" do
|
194
|
+
source =
|
195
|
+
"union _NamedDoohicky {\n" +
|
196
|
+
" unsigned int a;\n" +
|
197
|
+
" char b;\n" +
|
198
|
+
"} Doohicky;\n\n" +
|
199
|
+
"I want to live!!\n" +
|
200
|
+
"some_modifier union { unsigned int a; char b;} Whatever;\n" +
|
201
|
+
"typedef union {\n" +
|
202
|
+
" unsigned int a;\n" +
|
203
|
+
" char b;\n" +
|
204
|
+
"} Whatever;\n" +
|
205
|
+
"me too!!\n"
|
206
|
+
|
207
|
+
assert_equal(["I want to live!! me too!!"], @parser.import_source(source).map!{|s|s.strip})
|
208
|
+
end
|
209
|
+
|
210
|
+
|
211
|
+
should "remove struct statements" do
|
212
|
+
source =
|
213
|
+
"struct _NamedStruct1 {\n" +
|
214
|
+
" unsigned int a;\n" +
|
215
|
+
" signed long int b;\n" +
|
216
|
+
"} Thing ;\n\n" +
|
217
|
+
"extern struct ForwardDeclared_t TestDataType1;\n" +
|
218
|
+
"void foo(void);\n" +
|
219
|
+
"struct\n"+
|
220
|
+
" MultilineForwardDeclared_t\n" +
|
221
|
+
" TestDataType2;\n" +
|
222
|
+
"struct THINGER foo(void);\n" +
|
223
|
+
"typedef struct {\n" +
|
224
|
+
" unsigned int a;\n" +
|
225
|
+
" signed char b;\n" +
|
226
|
+
"}Thinger;\n" +
|
227
|
+
"I want to live!!\n"
|
228
|
+
|
229
|
+
assert_equal(["void foo(void)", "struct THINGER foo(void)", "I want to live!!"],
|
230
|
+
@parser.import_source(source).map!{|s|s.strip})
|
231
|
+
end
|
232
|
+
|
233
|
+
should "remove externed and inline functions" do
|
234
|
+
source =
|
235
|
+
" extern uint32 foobar(unsigned int);\n" +
|
236
|
+
"uint32 extern_name_func(unsigned int);\n" +
|
237
|
+
"uint32 funcinline(unsigned int);\n" +
|
238
|
+
"extern void bar(unsigned int);\n" +
|
239
|
+
"inline void bar(unsigned int);\n" +
|
240
|
+
"extern\n" +
|
241
|
+
"void kinda_ugly_on_the_next_line(unsigned int);\n"
|
242
|
+
|
243
|
+
expected =
|
244
|
+
[
|
245
|
+
"uint32 extern_name_func(unsigned int)",
|
246
|
+
"uint32 funcinline(unsigned int)"
|
247
|
+
]
|
248
|
+
|
249
|
+
assert_equal(expected, @parser.import_source(source).map!{|s|s.strip})
|
250
|
+
end
|
251
|
+
|
252
|
+
should "remove a fully defined inline function" do
|
253
|
+
source =
|
254
|
+
"inline void foo(unsigned int a) { oranges = a; }\n" +
|
255
|
+
"inline void bar(unsigned int a) { apples = a; };\n" +
|
256
|
+
"inline void bar(unsigned int a)\n" +
|
257
|
+
"{" +
|
258
|
+
" bananas = a;\n" +
|
259
|
+
"}"
|
260
|
+
|
261
|
+
# ensure it's expected type of exception
|
262
|
+
assert_raise RuntimeError do
|
263
|
+
@parser.parse("module", source)
|
264
|
+
end
|
265
|
+
|
266
|
+
assert_equal([], @parser.funcs)
|
267
|
+
|
268
|
+
# verify exception message
|
269
|
+
begin
|
270
|
+
@parser.parse("module", source)
|
271
|
+
rescue RuntimeError => e
|
272
|
+
assert_equal("ERROR: No function prototypes found!", e.message)
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
should "remove just inline functions if externs to be included" do
|
277
|
+
source =
|
278
|
+
" extern uint32 foobar(unsigned int);\n" +
|
279
|
+
"uint32 extern_name_func(unsigned int);\n" +
|
280
|
+
"uint32 funcinline(unsigned int);\n" +
|
281
|
+
"extern void bar(unsigned int);\n" +
|
282
|
+
"inline void bar(unsigned int);\n" +
|
283
|
+
"extern\n" +
|
284
|
+
"void kinda_ugly_on_the_next_line(unsigned int);\n"
|
285
|
+
|
286
|
+
expected =
|
287
|
+
[ "extern uint32 foobar(unsigned int)",
|
288
|
+
"uint32 extern_name_func(unsigned int)",
|
289
|
+
"uint32 funcinline(unsigned int)",
|
290
|
+
"extern void bar(unsigned int)",
|
291
|
+
"extern void kinda_ugly_on_the_next_line(unsigned int)"
|
292
|
+
]
|
293
|
+
|
294
|
+
@parser.treat_externs = :include
|
295
|
+
assert_equal(expected, @parser.import_source(source).map!{|s|s.strip})
|
296
|
+
end
|
297
|
+
|
298
|
+
|
299
|
+
should "remove defines" do
|
300
|
+
source =
|
301
|
+
"#define whatever you feel like defining\n" +
|
302
|
+
"void hello(void);\n" +
|
303
|
+
"#DEFINE I JUST DON'T CARE\n" +
|
304
|
+
"#deFINE\n" +
|
305
|
+
"#define get_foo() \\\n ((Thing)foo.bar)" # exercise multiline define
|
306
|
+
|
307
|
+
expected =
|
308
|
+
[
|
309
|
+
"void hello(void)",
|
310
|
+
]
|
311
|
+
|
312
|
+
assert_equal(expected, @parser.import_source(source).map!{|s|s.strip})
|
313
|
+
end
|
314
|
+
|
315
|
+
|
316
|
+
should "remove keywords that would keep things from going smoothly in the future" do
|
317
|
+
source =
|
318
|
+
"const int TheMatrix(register int Trinity, unsigned int *restrict Neo)"
|
319
|
+
|
320
|
+
expected =
|
321
|
+
[
|
322
|
+
"const int TheMatrix(int Trinity, unsigned int * Neo)",
|
323
|
+
]
|
324
|
+
|
325
|
+
assert_equal(expected, @parser.import_source(source).map!{|s|s.strip})
|
326
|
+
end
|
327
|
+
|
328
|
+
|
329
|
+
# some code actually typedef's void even though it's not ANSI C and is, frankly, weird
|
330
|
+
# since cmock treats void specially, we can't let void be obfuscated
|
331
|
+
should "handle odd case of typedef'd void returned" do
|
332
|
+
source = "MY_FUNKY_VOID FunkyVoidReturned(int a)"
|
333
|
+
expected = { :var_arg=>nil,
|
334
|
+
:name=>"FunkyVoidReturned",
|
335
|
+
:return=>{ :type => "void",
|
336
|
+
:name => 'cmock_to_return',
|
337
|
+
:ptr? => false,
|
338
|
+
:const? => false,
|
339
|
+
:str => "void cmock_to_return",
|
340
|
+
:void? => true
|
341
|
+
},
|
342
|
+
:modifier=>"",
|
343
|
+
:contains_ptr? => false,
|
344
|
+
:args=>[{:type=>"int", :name=>"a", :ptr? => false, :const? => false}],
|
345
|
+
:args_string=>"int a",
|
346
|
+
:args_call=>"a"}
|
347
|
+
assert_equal(expected, @parser.parse_declaration(source))
|
348
|
+
end
|
349
|
+
|
350
|
+
should "handle odd case of typedef'd void as arg" do
|
351
|
+
source = "int FunkyVoidAsArg(MY_FUNKY_VOID)"
|
352
|
+
expected = { :var_arg=>nil,
|
353
|
+
:name=>"FunkyVoidAsArg",
|
354
|
+
:return=>{ :type => "int",
|
355
|
+
:name => 'cmock_to_return',
|
356
|
+
:ptr? => false,
|
357
|
+
:const? => false,
|
358
|
+
:str => "int cmock_to_return",
|
359
|
+
:void? => false
|
360
|
+
},
|
361
|
+
:modifier=>"",
|
362
|
+
:contains_ptr? => false,
|
363
|
+
:args=>[],
|
364
|
+
:args_string=>"void",
|
365
|
+
:args_call=>"" }
|
366
|
+
assert_equal(expected, @parser.parse_declaration(source))
|
367
|
+
end
|
368
|
+
|
369
|
+
should "handle odd case of typedef'd void as arg pointer" do
|
370
|
+
source = "char FunkyVoidPointer(MY_FUNKY_VOID* bluh)"
|
371
|
+
expected = { :var_arg=>nil,
|
372
|
+
:name=>"FunkyVoidPointer",
|
373
|
+
:return=>{ :type => "char",
|
374
|
+
:name => 'cmock_to_return',
|
375
|
+
:ptr? => false,
|
376
|
+
:const? => false,
|
377
|
+
:str => "char cmock_to_return",
|
378
|
+
:void? => false
|
379
|
+
},
|
380
|
+
:modifier=>"",
|
381
|
+
:contains_ptr? => true,
|
382
|
+
:args=>[{:type=>"MY_FUNKY_VOID*", :name=>"bluh", :ptr? => true, :const? => false}],
|
383
|
+
:args_string=>"MY_FUNKY_VOID* bluh",
|
384
|
+
:args_call=>"bluh" }
|
385
|
+
assert_equal(expected, @parser.parse_declaration(source))
|
386
|
+
end
|
387
|
+
|
388
|
+
|
389
|
+
should "strip default values from function parameter lists" do
|
390
|
+
source =
|
391
|
+
"void Foo(int a = 57, float b=37.52, char c= 'd', char* e=\"junk\");\n"
|
392
|
+
|
393
|
+
expected =
|
394
|
+
[
|
395
|
+
"void Foo(int a, float b, char c, char* e)"
|
396
|
+
]
|
397
|
+
|
398
|
+
assert_equal(expected, @parser.import_source(source).map!{|s|s.strip})
|
399
|
+
end
|
400
|
+
|
401
|
+
|
402
|
+
should "raise upon empty file" do
|
403
|
+
source = ''
|
404
|
+
|
405
|
+
# ensure it's expected type of exception
|
406
|
+
assert_raise RuntimeError do
|
407
|
+
@parser.parse("module", "")
|
408
|
+
end
|
409
|
+
|
410
|
+
assert_equal([], @parser.funcs)
|
411
|
+
|
412
|
+
# verify exception message
|
413
|
+
begin
|
414
|
+
@parser.parse("module", "")
|
415
|
+
rescue RuntimeError => e
|
416
|
+
assert_equal("ERROR: No function prototypes found!", e.message)
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
420
|
+
|
421
|
+
should "raise upon no function prototypes found in file" do
|
422
|
+
source =
|
423
|
+
"typedef void SILLY_VOID_TYPE1;\n" +
|
424
|
+
"typedef (void) SILLY_VOID_TYPE2 ;\n" +
|
425
|
+
"typedef ( void ) (*FUNCPTR)(void);\n\n" +
|
426
|
+
"#define get_foo() \\\n ((Thing)foo.bar)"
|
427
|
+
|
428
|
+
# ensure it's expected type of exception
|
429
|
+
assert_raise(RuntimeError) do
|
430
|
+
@parser.parse("module", source)
|
431
|
+
end
|
432
|
+
|
433
|
+
assert_equal([], @parser.funcs)
|
434
|
+
|
435
|
+
# verify exception message
|
436
|
+
begin
|
437
|
+
@parser.parse("module", source)
|
438
|
+
rescue RuntimeError => e
|
439
|
+
assert_equal("ERROR: No function prototypes found!", e.message)
|
440
|
+
end
|
441
|
+
end
|
442
|
+
|
443
|
+
|
444
|
+
should "raise upon prototype parsing failure" do
|
445
|
+
source = "void (int, )"
|
446
|
+
|
447
|
+
# ensure it's expected type of exception
|
448
|
+
assert_raise(RuntimeError) do
|
449
|
+
@parser.parse("module", source)
|
450
|
+
end
|
451
|
+
|
452
|
+
# verify exception message
|
453
|
+
begin
|
454
|
+
@parser.parse("module", source)
|
455
|
+
rescue RuntimeError => e
|
456
|
+
assert(e.message.include?("Failed Parsing Declaration Prototype!"))
|
457
|
+
end
|
458
|
+
end
|
459
|
+
|
460
|
+
should "extract and return function declarations with retval and args" do
|
461
|
+
|
462
|
+
source = "int Foo(int a, unsigned int b)"
|
463
|
+
expected = { :var_arg=>nil,
|
464
|
+
:name=>"Foo",
|
465
|
+
:return=>{ :type => "int",
|
466
|
+
:name => 'cmock_to_return',
|
467
|
+
:ptr? => false,
|
468
|
+
:const? => false,
|
469
|
+
:str => "int cmock_to_return",
|
470
|
+
:void? => false
|
471
|
+
},
|
472
|
+
:modifier=>"",
|
473
|
+
:contains_ptr? => false,
|
474
|
+
:args=>[ {:type=>"int", :name=>"a", :ptr? => false, :const? => false},
|
475
|
+
{:type=>"unsigned int", :name=>"b", :ptr? => false, :const? => false}
|
476
|
+
],
|
477
|
+
:args_string=>"int a, unsigned int b",
|
478
|
+
:args_call=>"a, b" }
|
479
|
+
assert_equal(expected, @parser.parse_declaration(source))
|
480
|
+
end
|
481
|
+
|
482
|
+
should "extract and return function declarations with no retval" do
|
483
|
+
|
484
|
+
source = "void FunkyChicken( uint la, int de, bool da)"
|
485
|
+
expected = { :var_arg=>nil,
|
486
|
+
:return=>{ :type => "void",
|
487
|
+
:name => 'cmock_to_return',
|
488
|
+
:ptr? => false,
|
489
|
+
:const? => false,
|
490
|
+
:str => "void cmock_to_return",
|
491
|
+
:void? => true
|
492
|
+
},
|
493
|
+
:name=>"FunkyChicken",
|
494
|
+
:modifier=>"",
|
495
|
+
:contains_ptr? => false,
|
496
|
+
:args=>[ {:type=>"uint", :name=>"la", :ptr? => false, :const? => false},
|
497
|
+
{:type=>"int", :name=>"de", :ptr? => false, :const? => false},
|
498
|
+
{:type=>"bool", :name=>"da", :ptr? => false, :const? => false}
|
499
|
+
],
|
500
|
+
:args_string=>"uint la, int de, bool da",
|
501
|
+
:args_call=>"la, de, da" }
|
502
|
+
assert_equal(expected, @parser.parse_declaration(source))
|
503
|
+
end
|
504
|
+
|
505
|
+
should "extract and return function declarations with implied voids" do
|
506
|
+
|
507
|
+
source = "void tat()"
|
508
|
+
expected = { :var_arg=>nil,
|
509
|
+
:return=>{ :type => "void",
|
510
|
+
:name => 'cmock_to_return',
|
511
|
+
:ptr? => false,
|
512
|
+
:const? => false,
|
513
|
+
:str => "void cmock_to_return",
|
514
|
+
:void? => true
|
515
|
+
},
|
516
|
+
:name=>"tat",
|
517
|
+
:modifier=>"",
|
518
|
+
:contains_ptr? => false,
|
519
|
+
:args=>[ ],
|
520
|
+
:args_string=>"void",
|
521
|
+
:args_call=>"" }
|
522
|
+
assert_equal(expected, @parser.parse_declaration(source))
|
523
|
+
end
|
524
|
+
|
525
|
+
should "extract modifiers properly" do
|
526
|
+
|
527
|
+
source = "const int TheMatrix(int Trinity, unsigned int * Neo)"
|
528
|
+
expected = { :var_arg=>nil,
|
529
|
+
:return=>{ :type => "int",
|
530
|
+
:name => 'cmock_to_return',
|
531
|
+
:ptr? => false,
|
532
|
+
:const? => false,
|
533
|
+
:str => "int cmock_to_return",
|
534
|
+
:void? => false
|
535
|
+
},
|
536
|
+
:name=>"TheMatrix",
|
537
|
+
:modifier=>"const",
|
538
|
+
:contains_ptr? => true,
|
539
|
+
:args=>[ {:type=>"int", :name=>"Trinity", :ptr? => false, :const? => false},
|
540
|
+
{:type=>"unsigned int*", :name=>"Neo", :ptr? => true, :const? => false}
|
541
|
+
],
|
542
|
+
:args_string=>"int Trinity, unsigned int* Neo",
|
543
|
+
:args_call=>"Trinity, Neo" }
|
544
|
+
assert_equal(expected, @parser.parse_declaration(source))
|
545
|
+
end
|
546
|
+
|
547
|
+
should "fully parse multiple prototypes" do
|
548
|
+
|
549
|
+
source = "const int TheMatrix(int Trinity, unsigned int * Neo);\n" +
|
550
|
+
"int Morpheus(int, unsigned int*);\n"
|
551
|
+
|
552
|
+
expected = [{ :var_arg=>nil,
|
553
|
+
:return=> { :type => "int",
|
554
|
+
:name => 'cmock_to_return',
|
555
|
+
:ptr? => false,
|
556
|
+
:const? => false,
|
557
|
+
:str => "int cmock_to_return",
|
558
|
+
:void? => false
|
559
|
+
},
|
560
|
+
:name=>"TheMatrix",
|
561
|
+
:modifier=>"const",
|
562
|
+
:contains_ptr? => true,
|
563
|
+
:args=>[ {:type=>"int", :name=>"Trinity", :ptr? => false, :const? => false},
|
564
|
+
{:type=>"unsigned int*", :name=>"Neo", :ptr? => true, :const? => false}
|
565
|
+
],
|
566
|
+
:args_string=>"int Trinity, unsigned int* Neo",
|
567
|
+
:args_call=>"Trinity, Neo" },
|
568
|
+
{ :var_arg=>nil,
|
569
|
+
:return=> { :type => "int",
|
570
|
+
:name => 'cmock_to_return',
|
571
|
+
:ptr? => false,
|
572
|
+
:const? => false,
|
573
|
+
:str => "int cmock_to_return",
|
574
|
+
:void? => false
|
575
|
+
},
|
576
|
+
:name=>"Morpheus",
|
577
|
+
:modifier=>"",
|
578
|
+
:contains_ptr? => true,
|
579
|
+
:args=>[ {:type=>"int", :name=>"cmock_arg1", :ptr? => false, :const? => false},
|
580
|
+
{:type=>"unsigned int*", :name=>"cmock_arg2", :ptr? => true, :const? => false}
|
581
|
+
],
|
582
|
+
:args_string=>"int cmock_arg1, unsigned int* cmock_arg2",
|
583
|
+
:args_call=>"cmock_arg1, cmock_arg2"
|
584
|
+
}]
|
585
|
+
assert_equal(expected, @parser.parse("module", source)[:functions])
|
586
|
+
end
|
587
|
+
|
588
|
+
should "not extract for mocking multiply defined prototypes" do
|
589
|
+
|
590
|
+
source = "const int TheMatrix(int Trinity, unsigned int * Neo);\n" +
|
591
|
+
"const int TheMatrix(int, unsigned int*);\n"
|
592
|
+
|
593
|
+
expected = [{ :var_arg=>nil,
|
594
|
+
:name=>"TheMatrix",
|
595
|
+
:return=> { :type => "int",
|
596
|
+
:name => 'cmock_to_return',
|
597
|
+
:ptr? => false,
|
598
|
+
:const? => false,
|
599
|
+
:str => "int cmock_to_return",
|
600
|
+
:void? => false
|
601
|
+
},
|
602
|
+
:modifier=>"const",
|
603
|
+
:contains_ptr? => true,
|
604
|
+
:args=>[ {:type=>"int", :name=>"Trinity", :ptr? => false, :const? => false},
|
605
|
+
{:type=>"unsigned int*", :name=>"Neo", :ptr? => true, :const? => false}
|
606
|
+
],
|
607
|
+
:args_string=>"int Trinity, unsigned int* Neo",
|
608
|
+
:args_call=>"Trinity, Neo"
|
609
|
+
}]
|
610
|
+
assert_equal(expected, @parser.parse("module", source)[:functions])
|
611
|
+
end
|
612
|
+
|
613
|
+
should "properly detect typedef'd variants of void and use those" do
|
614
|
+
|
615
|
+
source = "typedef (void) FUNKY_VOID_T;\n" +
|
616
|
+
"typedef void CHUNKY_VOID_T;\n" +
|
617
|
+
"FUNKY_VOID_T DrHorrible(int SingAlong);\n" +
|
618
|
+
"int CaptainHammer(CHUNKY_VOID_T);\n"
|
619
|
+
|
620
|
+
expected = [{ :var_arg=>nil,
|
621
|
+
:name=>"DrHorrible",
|
622
|
+
:return => { :type => "void",
|
623
|
+
:name => 'cmock_to_return',
|
624
|
+
:ptr? => false,
|
625
|
+
:const? => false,
|
626
|
+
:str => "void cmock_to_return",
|
627
|
+
:void? => true
|
628
|
+
},
|
629
|
+
:modifier=>"",
|
630
|
+
:contains_ptr? => false,
|
631
|
+
:args=>[ {:type=>"int", :name=>"SingAlong", :ptr? => false, :const? => false} ],
|
632
|
+
:args_string=>"int SingAlong",
|
633
|
+
:args_call=>"SingAlong"
|
634
|
+
},
|
635
|
+
{ :var_arg=>nil,
|
636
|
+
:return=> { :type => "int",
|
637
|
+
:name => 'cmock_to_return',
|
638
|
+
:ptr? => false,
|
639
|
+
:const? => false,
|
640
|
+
:str => "int cmock_to_return",
|
641
|
+
:void? => false
|
642
|
+
},
|
643
|
+
:name=>"CaptainHammer",
|
644
|
+
:modifier=>"",
|
645
|
+
:contains_ptr? => false,
|
646
|
+
:args=>[ ],
|
647
|
+
:args_string=>"void",
|
648
|
+
:args_call=>""
|
649
|
+
}]
|
650
|
+
assert_equal(expected, @parser.parse("module", source)[:functions])
|
651
|
+
end
|
652
|
+
|
653
|
+
should "be ok with structs inside of function declarations" do
|
654
|
+
|
655
|
+
source = "int DrHorrible(struct SingAlong Blog);\n" +
|
656
|
+
"void Penny(struct const _KeepYourHeadUp_ * const BillyBuddy);\n" +
|
657
|
+
"struct TheseArentTheHammer CaptainHammer(void);\n"
|
658
|
+
|
659
|
+
expected = [{ :var_arg=>nil,
|
660
|
+
:return =>{ :type => "int",
|
661
|
+
:name => 'cmock_to_return',
|
662
|
+
:ptr? => false,
|
663
|
+
:const? => false,
|
664
|
+
:str => "int cmock_to_return",
|
665
|
+
:void? => false
|
666
|
+
},
|
667
|
+
:name=>"DrHorrible",
|
668
|
+
:modifier=>"",
|
669
|
+
:contains_ptr? => false,
|
670
|
+
:args=>[ {:type=>"struct SingAlong", :name=>"Blog", :ptr? => false, :const? => false} ],
|
671
|
+
:args_string=>"struct SingAlong Blog",
|
672
|
+
:args_call=>"Blog"
|
673
|
+
},
|
674
|
+
{ :var_arg=>nil,
|
675
|
+
:return=> { :type => "void",
|
676
|
+
:name => 'cmock_to_return',
|
677
|
+
:ptr? => false,
|
678
|
+
:const? => false,
|
679
|
+
:str => "void cmock_to_return",
|
680
|
+
:void? => true
|
681
|
+
},
|
682
|
+
:name=>"Penny",
|
683
|
+
:modifier=>"",
|
684
|
+
:contains_ptr? => true,
|
685
|
+
:args=>[ {:type=>"struct _KeepYourHeadUp_*", :name=>"BillyBuddy", :ptr? => true, :const? => true} ],
|
686
|
+
:args_string=>"struct const _KeepYourHeadUp_* const BillyBuddy",
|
687
|
+
:args_call=>"BillyBuddy"
|
688
|
+
},
|
689
|
+
{ :var_arg=>nil,
|
690
|
+
:return=> { :type => "struct TheseArentTheHammer",
|
691
|
+
:name => 'cmock_to_return',
|
692
|
+
:ptr? => false,
|
693
|
+
:const? => false,
|
694
|
+
:str => "struct TheseArentTheHammer cmock_to_return",
|
695
|
+
:void? => false
|
696
|
+
},
|
697
|
+
:name=>"CaptainHammer",
|
698
|
+
:modifier=>"",
|
699
|
+
:contains_ptr? => false,
|
700
|
+
:args=>[ ],
|
701
|
+
:args_string=>"void",
|
702
|
+
:args_call=>""
|
703
|
+
}]
|
704
|
+
assert_equal(expected, @parser.parse("module", source)[:functions])
|
705
|
+
end
|
706
|
+
|
707
|
+
should "extract functions containing unions with union specifier" do
|
708
|
+
source = "void OrangePeel(union STARS_AND_STRIPES * a, union AFL_CIO b)"
|
709
|
+
expected = [{ :var_arg=>nil,
|
710
|
+
:return=>{ :type => "void",
|
711
|
+
:name => 'cmock_to_return',
|
712
|
+
:ptr? => false,
|
713
|
+
:const? => false,
|
714
|
+
:str => "void cmock_to_return",
|
715
|
+
:void? => true
|
716
|
+
},
|
717
|
+
:name=>"OrangePeel",
|
718
|
+
:modifier=>"",
|
719
|
+
:contains_ptr? => true,
|
720
|
+
:args=>[ {:type=>"union STARS_AND_STRIPES*", :name=>"a", :ptr? => true, :const? => false},
|
721
|
+
{:type=>"union AFL_CIO", :name=>"b", :ptr? => false, :const? => false}
|
722
|
+
],
|
723
|
+
:args_string=>"union STARS_AND_STRIPES* a, union AFL_CIO b",
|
724
|
+
:args_call=>"a, b" }]
|
725
|
+
result = @parser.parse("module", source)
|
726
|
+
assert_equal(expected, result[:functions])
|
727
|
+
end
|
728
|
+
|
729
|
+
should "not be thwarted by variables named with primitive types as part of the name" do
|
730
|
+
source = "void ApplePeel(const unsigned int const_param, int int_param, int integer, char character, int* const constant)"
|
731
|
+
expected = [{ :var_arg=>nil,
|
732
|
+
:return=>{ :type => "void",
|
733
|
+
:name => 'cmock_to_return',
|
734
|
+
:ptr? => false,
|
735
|
+
:const? => false,
|
736
|
+
:str => "void cmock_to_return",
|
737
|
+
:void? => true
|
738
|
+
},
|
739
|
+
:name=>"ApplePeel",
|
740
|
+
:modifier=>"",
|
741
|
+
:contains_ptr? => true,
|
742
|
+
:args=>[ {:type=> "unsigned int", :name=>"const_param", :ptr? => false, :const? => true},
|
743
|
+
{:type=>"int", :name=>"int_param", :ptr? => false, :const? => false},
|
744
|
+
{:type=>"int", :name=>"integer", :ptr? => false, :const? => false},
|
745
|
+
{:type=>"char", :name=>"character", :ptr? => false, :const? => false},
|
746
|
+
{:type=>"int*", :name=>"constant", :ptr? => true, :const? => true}
|
747
|
+
],
|
748
|
+
:args_string=>"const unsigned int const_param, int int_param, int integer, char character, int* const constant",
|
749
|
+
:args_call=>"const_param, int_param, integer, character, constant" }]
|
750
|
+
result = @parser.parse("module", source)
|
751
|
+
assert_equal(expected, result[:functions])
|
752
|
+
end
|
753
|
+
|
754
|
+
should "not be thwarted by custom types named similarly to primitive types" do
|
755
|
+
source = "void LemonPeel(integer param, character thing, longint * junk, constant value, int32_t const number)"
|
756
|
+
expected = [{:var_arg=>nil,
|
757
|
+
:return=>{ :type => "void",
|
758
|
+
:name => 'cmock_to_return',
|
759
|
+
:ptr? => false,
|
760
|
+
:const? => false,
|
761
|
+
:str => "void cmock_to_return",
|
762
|
+
:void? => true
|
763
|
+
},
|
764
|
+
:name=>"LemonPeel",
|
765
|
+
:modifier=>"",
|
766
|
+
:contains_ptr? => true,
|
767
|
+
:args=>[ {:type=>"integer", :name=>"param", :ptr? => false, :const? => false},
|
768
|
+
{:type=>"character", :name=>"thing", :ptr? => false, :const? => false},
|
769
|
+
{:type=>"longint*", :name=>"junk", :ptr? => true, :const? => false},
|
770
|
+
{:type=>"constant", :name=>"value", :ptr? => false, :const? => false},
|
771
|
+
{:type=>"int32_t", :name=>"number", :ptr? => false, :const? => true}
|
772
|
+
],
|
773
|
+
:args_string=>"integer param, character thing, longint* junk, constant value, int32_t const number",
|
774
|
+
:args_call=>"param, thing, junk, value, number" }]
|
775
|
+
result = @parser.parse("module", source)
|
776
|
+
assert_equal(expected, result[:functions])
|
777
|
+
end
|
778
|
+
|
779
|
+
should "handle some of those chains of C name specifiers naturally" do
|
780
|
+
source = "void CoinOperated(signed char abc, const unsigned long int xyz_123, unsigned int const abc_123, long long arm_of_the_law)"
|
781
|
+
expected = [{:var_arg=>nil,
|
782
|
+
:return=>{ :type => "void",
|
783
|
+
:name => 'cmock_to_return',
|
784
|
+
:ptr? => false,
|
785
|
+
:const? => false,
|
786
|
+
:str => "void cmock_to_return",
|
787
|
+
:void? => true
|
788
|
+
},
|
789
|
+
:name=>"CoinOperated",
|
790
|
+
:modifier=>"",
|
791
|
+
:contains_ptr? => false,
|
792
|
+
:args=>[ {:type=>"signed char", :name=>"abc", :ptr? => false, :const? => false},
|
793
|
+
{:type=>"unsigned long int", :name=>"xyz_123", :ptr? => false, :const? => true},
|
794
|
+
{:type=>"unsigned int", :name=>"abc_123", :ptr? => false, :const? => true},
|
795
|
+
{:type=>"long long", :name=>"arm_of_the_law", :ptr? => false, :const? => false}
|
796
|
+
],
|
797
|
+
:args_string=>"signed char abc, const unsigned long int xyz_123, unsigned int const abc_123, long long arm_of_the_law",
|
798
|
+
:args_call=>"abc, xyz_123, abc_123, arm_of_the_law" }]
|
799
|
+
result = @parser.parse("module", source)
|
800
|
+
assert_equal(expected, result[:functions])
|
801
|
+
end
|
802
|
+
|
803
|
+
should "handle custom types of various formats" do
|
804
|
+
source = "void CardOperated(CUSTOM_TYPE abc, CUSTOM_TYPE* xyz_123, CUSTOM_TYPE const abcxyz, struct CUSTOM_TYPE const * const abc123)"
|
805
|
+
expected = [{:var_arg=>nil,
|
806
|
+
:return=>{ :type => "void",
|
807
|
+
:name => 'cmock_to_return',
|
808
|
+
:ptr? => false,
|
809
|
+
:const? => false,
|
810
|
+
:str => "void cmock_to_return",
|
811
|
+
:void? => true
|
812
|
+
},
|
813
|
+
:name=>"CardOperated",
|
814
|
+
:modifier=>"",
|
815
|
+
:contains_ptr? => true,
|
816
|
+
:args=>[ {:type=>"CUSTOM_TYPE", :name=>"abc", :ptr? => false, :const? => false},
|
817
|
+
{:type=>"CUSTOM_TYPE*", :name=>"xyz_123", :ptr? => true, :const? => false},
|
818
|
+
{:type=>"CUSTOM_TYPE", :name=>"abcxyz", :ptr? => false, :const? => true},
|
819
|
+
{:type=>"struct CUSTOM_TYPE const*", :name=>"abc123", :ptr? => true, :const? => true}
|
820
|
+
],
|
821
|
+
:args_string=>"CUSTOM_TYPE abc, CUSTOM_TYPE* xyz_123, CUSTOM_TYPE const abcxyz, struct CUSTOM_TYPE const* const abc123",
|
822
|
+
:args_call=>"abc, xyz_123, abcxyz, abc123" }]
|
823
|
+
result = @parser.parse("module", source)
|
824
|
+
assert_equal(expected, result[:functions])
|
825
|
+
end
|
826
|
+
|
827
|
+
should "handle arrays and treat them as pointers" do
|
828
|
+
source = "void KeyOperated(CUSTOM_TYPE thing1[], int thing2 [ ], char thing3 [][2 ][ 3], int* thing4[4])"
|
829
|
+
expected = [{:var_arg=>nil,
|
830
|
+
:return=>{ :type => "void",
|
831
|
+
:name => 'cmock_to_return',
|
832
|
+
:ptr? => false,
|
833
|
+
:const? => false,
|
834
|
+
:str => "void cmock_to_return",
|
835
|
+
:void? => true
|
836
|
+
},
|
837
|
+
:name=>"KeyOperated",
|
838
|
+
:modifier=>"",
|
839
|
+
:contains_ptr? => true,
|
840
|
+
:args=>[ {:type=>"CUSTOM_TYPE*", :name=>"thing1", :ptr? => true, :const? => false},
|
841
|
+
{:type=>"int*", :name=>"thing2", :ptr? => true, :const? => false},
|
842
|
+
{:type=>"char*", :name=>"thing3", :ptr? => false, :const? => false}, #THIS one will likely change in the future when we improve multidimensional array support
|
843
|
+
{:type=>"int**", :name=>"thing4", :ptr? => true, :const? => false} #THIS one will likely change in the future when we improve multidimensional array support
|
844
|
+
],
|
845
|
+
:args_string=>"CUSTOM_TYPE* thing1, int* thing2, char* thing3, int** thing4",
|
846
|
+
:args_call=>"thing1, thing2, thing3, thing4" }]
|
847
|
+
result = @parser.parse("module", source)
|
848
|
+
assert_equal(expected, result[:functions])
|
849
|
+
end
|
850
|
+
|
851
|
+
should "give a reasonable guess when dealing with weird combinations of custom types and modifiers" do
|
852
|
+
source = "void Cheese(unsigned CUSTOM_TYPE abc, unsigned xyz, CUSTOM_TYPE1 CUSTOM_TYPE2 pdq)"
|
853
|
+
expected = [{:var_arg=>nil,
|
854
|
+
:return=>{ :type => "void",
|
855
|
+
:name => 'cmock_to_return',
|
856
|
+
:ptr? => false,
|
857
|
+
:const? => false,
|
858
|
+
:str => "void cmock_to_return",
|
859
|
+
:void? => true
|
860
|
+
},
|
861
|
+
:name=>"Cheese",
|
862
|
+
:modifier=>"",
|
863
|
+
:contains_ptr? => false,
|
864
|
+
:args=>[ {:type=>"unsigned CUSTOM_TYPE", :name=>"abc", :ptr? => false, :const? => false},
|
865
|
+
{:type=>"unsigned", :name=>"xyz", :ptr? => false, :const? => false},
|
866
|
+
{:type=>"CUSTOM_TYPE1 CUSTOM_TYPE2", :name=>"pdq", :ptr? => false, :const? => false}
|
867
|
+
],
|
868
|
+
:args_string=>"unsigned CUSTOM_TYPE abc, unsigned xyz, CUSTOM_TYPE1 CUSTOM_TYPE2 pdq",
|
869
|
+
:args_call=>"abc, xyz, pdq" }]
|
870
|
+
result = @parser.parse("module", source)
|
871
|
+
assert_equal(expected, result[:functions])
|
872
|
+
end
|
873
|
+
|
874
|
+
should "extract functions containing a function pointer" do
|
875
|
+
source = "void FunkyTurkey(unsigned int (*func_ptr)(int, char))"
|
876
|
+
expected = [{ :var_arg=>nil,
|
877
|
+
:return=>{ :type => "void",
|
878
|
+
:name => 'cmock_to_return',
|
879
|
+
:ptr? => false,
|
880
|
+
:const? => false,
|
881
|
+
:str => "void cmock_to_return",
|
882
|
+
:void? => true
|
883
|
+
},
|
884
|
+
:name=>"FunkyTurkey",
|
885
|
+
:modifier=>"",
|
886
|
+
:contains_ptr? => false,
|
887
|
+
:args=>[ {:type=>"cmock_module_func_ptr1", :name=>"func_ptr", :ptr? => false, :const? => false}
|
888
|
+
],
|
889
|
+
:args_string=>"cmock_module_func_ptr1 func_ptr",
|
890
|
+
:args_call=>"func_ptr" }]
|
891
|
+
typedefs = ["typedef unsigned int(*cmock_module_func_ptr1)(int, char);"]
|
892
|
+
result = @parser.parse("module", source)
|
893
|
+
assert_equal(expected, result[:functions])
|
894
|
+
assert_equal(typedefs, result[:typedefs])
|
895
|
+
end
|
896
|
+
|
897
|
+
should "extract functions containing a function pointer with an implied void" do
|
898
|
+
source = "void FunkyTurkey(unsigned int (*func_ptr)())"
|
899
|
+
expected = [{ :var_arg=>nil,
|
900
|
+
:return=>{ :type => "void",
|
901
|
+
:name => 'cmock_to_return',
|
902
|
+
:ptr? => false,
|
903
|
+
:const? => false,
|
904
|
+
:str => "void cmock_to_return",
|
905
|
+
:void? => true
|
906
|
+
},
|
907
|
+
:name=>"FunkyTurkey",
|
908
|
+
:modifier=>"",
|
909
|
+
:contains_ptr? => false,
|
910
|
+
:args=>[ {:type=>"cmock_module_func_ptr1", :name=>"func_ptr", :ptr? => false, :const? => false}
|
911
|
+
],
|
912
|
+
:args_string=>"cmock_module_func_ptr1 func_ptr",
|
913
|
+
:args_call=>"func_ptr" }]
|
914
|
+
typedefs = ["typedef unsigned int(*cmock_module_func_ptr1)();"]
|
915
|
+
result = @parser.parse("module", source)
|
916
|
+
assert_equal(expected, result[:functions])
|
917
|
+
assert_equal(typedefs, result[:typedefs])
|
918
|
+
end
|
919
|
+
|
920
|
+
should "extract functions containing a constant function pointer and a pointer in the nested arg list" do
|
921
|
+
source = "void FunkyChicken(unsigned int (* const func_ptr)(unsigned long int * , char))"
|
922
|
+
expected = [{ :var_arg=>nil,
|
923
|
+
:return=>{ :type => "void",
|
924
|
+
:name => 'cmock_to_return',
|
925
|
+
:ptr? => false,
|
926
|
+
:const? => false,
|
927
|
+
:str => "void cmock_to_return",
|
928
|
+
:void? => true
|
929
|
+
},
|
930
|
+
:name=>"FunkyChicken",
|
931
|
+
:modifier=>"",
|
932
|
+
:contains_ptr? => false,
|
933
|
+
:args=>[ {:type=>"cmock_module_func_ptr1", :name=>"func_ptr", :ptr? => false, :const? => true}
|
934
|
+
],
|
935
|
+
:args_string=>"cmock_module_func_ptr1 const func_ptr",
|
936
|
+
:args_call=>"func_ptr" }]
|
937
|
+
typedefs = ["typedef unsigned int(*cmock_module_func_ptr1)(unsigned long int* , char);"]
|
938
|
+
result = @parser.parse("module", source)
|
939
|
+
assert_equal(expected, result[:functions])
|
940
|
+
assert_equal(typedefs, result[:typedefs])
|
941
|
+
end
|
942
|
+
|
943
|
+
# should "extract functions containing a function pointer taking a vararg" do
|
944
|
+
# source = "void FunkyParrot(unsigned int (*func_ptr)(int, char, ...))"
|
945
|
+
# expected = [{ :var_arg=>nil,
|
946
|
+
# :return=>{ :type => "void",
|
947
|
+
# :name => 'cmock_to_return',
|
948
|
+
# :ptr? => false,
|
949
|
+
# :const? => false,
|
950
|
+
# :str => "void cmock_to_return",
|
951
|
+
# :void? => true
|
952
|
+
# },
|
953
|
+
# :name=>"FunkyParrot",
|
954
|
+
# :modifier=>"",
|
955
|
+
# :contains_ptr? => false,
|
956
|
+
# :args=>[ {:type=>"cmock_module_func_ptr1", :name=>"func_ptr", :ptr? => false, :const? => false}
|
957
|
+
# ],
|
958
|
+
# :args_string=>"cmock_module_func_ptr1 func_ptr",
|
959
|
+
# :args_call=>"func_ptr" }]
|
960
|
+
# typedefs = ["typedef unsigned int(*cmock_module_func_ptr1)(int, char, ...);"]
|
961
|
+
# result = @parser.parse("module", source)
|
962
|
+
# assert_equal(expected, result[:functions])
|
963
|
+
# assert_equal(typedefs, result[:typedefs])
|
964
|
+
# end
|
965
|
+
|
966
|
+
should "extract functions containing a function pointer with extra parenthesis and two sets" do
|
967
|
+
source = "void FunkyBudgie(int (((* func_ptr1)(int, char))), void (*func_ptr2)(void))"
|
968
|
+
expected = [{ :var_arg=>nil,
|
969
|
+
:return=>{ :type => "void",
|
970
|
+
:name => 'cmock_to_return',
|
971
|
+
:ptr? => false,
|
972
|
+
:const? => false,
|
973
|
+
:str => "void cmock_to_return",
|
974
|
+
:void? => true
|
975
|
+
},
|
976
|
+
:name=>"FunkyBudgie",
|
977
|
+
:modifier=>"",
|
978
|
+
:contains_ptr? => false,
|
979
|
+
:args=>[ {:type=>"cmock_module_func_ptr1", :name=>"func_ptr1", :ptr? => false, :const? => false},
|
980
|
+
{:type=>"cmock_module_func_ptr2", :name=>"func_ptr2", :ptr? => false, :const? => false}
|
981
|
+
],
|
982
|
+
:args_string=>"cmock_module_func_ptr1 func_ptr1, cmock_module_func_ptr2 func_ptr2",
|
983
|
+
:args_call=>"func_ptr1, func_ptr2" }]
|
984
|
+
typedefs = ["typedef int(*cmock_module_func_ptr1)(int, char);", "typedef void(*cmock_module_func_ptr2)(void);"]
|
985
|
+
result = @parser.parse("module", source)
|
986
|
+
assert_equal(expected, result[:functions])
|
987
|
+
assert_equal(typedefs, result[:typedefs])
|
988
|
+
end
|
989
|
+
|
990
|
+
should "extract functions containing an anonymous function pointer" do
|
991
|
+
source = "void FunkyFowl(unsigned int (* const)(int, char))"
|
992
|
+
expected = [{ :var_arg=>nil,
|
993
|
+
:return=>{ :type => "void",
|
994
|
+
:name => 'cmock_to_return',
|
995
|
+
:ptr? => false,
|
996
|
+
:const? => false,
|
997
|
+
:str => "void cmock_to_return",
|
998
|
+
:void? => true
|
999
|
+
},
|
1000
|
+
:name=>"FunkyFowl",
|
1001
|
+
:modifier=>"",
|
1002
|
+
:contains_ptr? => false,
|
1003
|
+
:args=>[ {:type=>"cmock_module_func_ptr1", :name=>"cmock_arg1", :ptr? => false, :const? => true}
|
1004
|
+
],
|
1005
|
+
:args_string=>"cmock_module_func_ptr1 const cmock_arg1",
|
1006
|
+
:args_call=>"cmock_arg1" }]
|
1007
|
+
typedefs = ["typedef unsigned int(*cmock_module_func_ptr1)(int, char);"]
|
1008
|
+
result = @parser.parse("module", source)
|
1009
|
+
assert_equal(expected, result[:functions])
|
1010
|
+
assert_equal(typedefs, result[:typedefs])
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
should "extract functions returning a function pointer" do
|
1014
|
+
source = "unsigned short (*FunkyPidgeon( const char op_code ))( int, long int )"
|
1015
|
+
expected = [{ :var_arg=>nil,
|
1016
|
+
:return=>{ :type => "cmock_module_func_ptr1",
|
1017
|
+
:name => 'cmock_to_return',
|
1018
|
+
:ptr? => false,
|
1019
|
+
:const? => false,
|
1020
|
+
:str => "cmock_module_func_ptr1 cmock_to_return",
|
1021
|
+
:void? => false
|
1022
|
+
},
|
1023
|
+
:name=>"FunkyPidgeon",
|
1024
|
+
:modifier=>"",
|
1025
|
+
:contains_ptr? => false,
|
1026
|
+
:args=>[ {:type=>"char", :name=>"op_code", :ptr? => false, :const? => true}
|
1027
|
+
],
|
1028
|
+
:args_string=>"const char op_code",
|
1029
|
+
:args_call=>"op_code" }]
|
1030
|
+
typedefs = ["typedef unsigned short(*cmock_module_func_ptr1)( int, long int );"]
|
1031
|
+
result = @parser.parse("module", source)
|
1032
|
+
assert_equal(expected, result[:functions])
|
1033
|
+
assert_equal(typedefs, result[:typedefs])
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
should "extract functions returning a function pointer with implied void" do
|
1037
|
+
source = "unsigned short (*FunkyTweetie())()"
|
1038
|
+
expected = [{ :var_arg=>nil,
|
1039
|
+
:return=>{ :type => "cmock_module_func_ptr1",
|
1040
|
+
:name => 'cmock_to_return',
|
1041
|
+
:ptr? => false,
|
1042
|
+
:const? => false,
|
1043
|
+
:str => "cmock_module_func_ptr1 cmock_to_return",
|
1044
|
+
:void? => false
|
1045
|
+
},
|
1046
|
+
:name=>"FunkyTweetie",
|
1047
|
+
:modifier=>"",
|
1048
|
+
:contains_ptr? => false,
|
1049
|
+
:args=>[],
|
1050
|
+
:args_string=>"void",
|
1051
|
+
:args_call=>"" }]
|
1052
|
+
typedefs = ["typedef unsigned short(*cmock_module_func_ptr1)();"]
|
1053
|
+
result = @parser.parse("module", source)
|
1054
|
+
assert_equal(expected, result[:functions])
|
1055
|
+
assert_equal(typedefs, result[:typedefs])
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
should "extract functions returning a function pointer where everything is a void" do
|
1059
|
+
source = "void (* FunkySeaGull(void))(void)"
|
1060
|
+
expected = [{ :var_arg=>nil,
|
1061
|
+
:return=>{ :type => "cmock_module_func_ptr1",
|
1062
|
+
:name => 'cmock_to_return',
|
1063
|
+
:ptr? => false,
|
1064
|
+
:const? => false,
|
1065
|
+
:str => "cmock_module_func_ptr1 cmock_to_return",
|
1066
|
+
:void? => false
|
1067
|
+
},
|
1068
|
+
:name=>"FunkySeaGull",
|
1069
|
+
:modifier=>"",
|
1070
|
+
:contains_ptr? => false,
|
1071
|
+
:args=>[],
|
1072
|
+
:args_string=>"void",
|
1073
|
+
:args_call=>"" }]
|
1074
|
+
typedefs = ["typedef void(*cmock_module_func_ptr1)(void);"]
|
1075
|
+
result = @parser.parse("module", source)
|
1076
|
+
assert_equal(expected, result[:functions])
|
1077
|
+
assert_equal(typedefs, result[:typedefs])
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
should "extract functions returning a function pointer with some pointer nonsense" do
|
1081
|
+
source = "unsigned int * (* FunkyMacaw(double* foo, THING *bar))(unsigned int)"
|
1082
|
+
expected = [{ :var_arg=>nil,
|
1083
|
+
:return=>{ :type => "cmock_module_func_ptr1",
|
1084
|
+
:name => 'cmock_to_return',
|
1085
|
+
:ptr? => false,
|
1086
|
+
:const? => false,
|
1087
|
+
:str => "cmock_module_func_ptr1 cmock_to_return",
|
1088
|
+
:void? => false
|
1089
|
+
},
|
1090
|
+
:name=>"FunkyMacaw",
|
1091
|
+
:modifier=>"",
|
1092
|
+
:contains_ptr? => true,
|
1093
|
+
:args=>[ {:type=>"double*", :name=>"foo", :ptr? => true, :const? => false},
|
1094
|
+
{:type=>"THING*", :name=>"bar", :ptr? => true, :const? => false}
|
1095
|
+
],
|
1096
|
+
:args_string=>"double* foo, THING* bar",
|
1097
|
+
:args_call=>"foo, bar" }]
|
1098
|
+
typedefs = ["typedef unsigned int *(*cmock_module_func_ptr1)(unsigned int);"]
|
1099
|
+
result = @parser.parse("module", source)
|
1100
|
+
assert_equal(expected, result[:functions])
|
1101
|
+
assert_equal(typedefs, result[:typedefs])
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
should "extract functions with varargs" do
|
1105
|
+
source = "int XFiles(int Scully, int Mulder, ...);\n"
|
1106
|
+
expected = [{ :var_arg=>"...",
|
1107
|
+
:return=> { :type => "int",
|
1108
|
+
:name => 'cmock_to_return',
|
1109
|
+
:ptr? => false,
|
1110
|
+
:const? => false,
|
1111
|
+
:str => "int cmock_to_return",
|
1112
|
+
:void? => false
|
1113
|
+
},
|
1114
|
+
:name=>"XFiles",
|
1115
|
+
:modifier=>"",
|
1116
|
+
:contains_ptr? => false,
|
1117
|
+
:args=>[ {:type=>"int", :name=>"Scully", :ptr? => false, :const? => false},
|
1118
|
+
{:type=>"int", :name=>"Mulder", :ptr? => false, :const? => false}
|
1119
|
+
],
|
1120
|
+
:args_string=>"int Scully, int Mulder",
|
1121
|
+
:args_call=>"Scully, Mulder"
|
1122
|
+
}]
|
1123
|
+
assert_equal(expected, @parser.parse("module", source)[:functions])
|
1124
|
+
end
|
1125
|
+
|
1126
|
+
should "extract functions with strippable confusing junk like gcc attributes" do
|
1127
|
+
source = "int LaverneAndShirley(int Lenny, int Squiggy) __attribute__((weak)) __attribute__ ((deprecated));\n"
|
1128
|
+
expected = [{ :var_arg=>nil,
|
1129
|
+
:return=> { :type => "int",
|
1130
|
+
:name => 'cmock_to_return',
|
1131
|
+
:ptr? => false,
|
1132
|
+
:const? => false,
|
1133
|
+
:str => "int cmock_to_return",
|
1134
|
+
:void? => false
|
1135
|
+
},
|
1136
|
+
:name=>"LaverneAndShirley",
|
1137
|
+
:modifier=>"",
|
1138
|
+
:contains_ptr? => false,
|
1139
|
+
:args=>[ {:type=>"int", :name=>"Lenny", :ptr? => false, :const? => false},
|
1140
|
+
{:type=>"int", :name=>"Squiggy", :ptr? => false, :const? => false}
|
1141
|
+
],
|
1142
|
+
:args_string=>"int Lenny, int Squiggy",
|
1143
|
+
:args_call=>"Lenny, Squiggy"
|
1144
|
+
}]
|
1145
|
+
assert_equal(expected, @parser.parse("module", source)[:functions])
|
1146
|
+
end
|
1147
|
+
|
1148
|
+
should "extract functions with strippable confusing junk like gcc attributes with parenthesis" do
|
1149
|
+
source = "int TheCosbyShow(int Cliff, int Claire) __attribute__((weak, alias (\"__f\"));\n"
|
1150
|
+
expected = [{ :var_arg=>nil,
|
1151
|
+
:return=> { :type => "int",
|
1152
|
+
:name => 'cmock_to_return',
|
1153
|
+
:ptr? => false,
|
1154
|
+
:const? => false,
|
1155
|
+
:str => "int cmock_to_return",
|
1156
|
+
:void? => false
|
1157
|
+
},
|
1158
|
+
:name=>"TheCosbyShow",
|
1159
|
+
:modifier=>"",
|
1160
|
+
:contains_ptr? => false,
|
1161
|
+
:args=>[ {:type=>"int", :name=>"Cliff", :ptr? => false, :const? => false},
|
1162
|
+
{:type=>"int", :name=>"Claire", :ptr? => false, :const? => false}
|
1163
|
+
],
|
1164
|
+
:args_string=>"int Cliff, int Claire",
|
1165
|
+
:args_call=>"Cliff, Claire"
|
1166
|
+
}]
|
1167
|
+
assert_equal(expected, @parser.parse("module", source)[:functions])
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
end
|