ceedling 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +9 -13
  4. data/README.md +21 -3
  5. data/{rakefile.rb → Rakefile} +0 -0
  6. data/lib/ceedling/version.rb +4 -4
  7. data/lib/ceedling/version.rb.erb +1 -1
  8. data/release/version.info +1 -1
  9. data/vendor/c_exception/Gemfile +1 -1
  10. data/vendor/c_exception/Gemfile.lock +12 -0
  11. data/vendor/c_exception/{docs/license.txt → LICENSE.txt} +9 -9
  12. data/vendor/c_exception/README.md +146 -0
  13. data/vendor/c_exception/{rakefile.rb → Rakefile} +6 -5
  14. data/vendor/c_exception/lib/CException.c +9 -6
  15. data/vendor/c_exception/release/build.info +1 -1
  16. data/vendor/c_exception/release/version.info +1 -1
  17. data/vendor/c_exception/test/CExceptionConfig.h +2 -0
  18. data/vendor/c_exception/test/TestException.c +4 -1
  19. data/vendor/cmock/README.md +24 -0
  20. data/vendor/cmock/{rakefile.rb → Rakefile} +12 -12
  21. data/vendor/cmock/docs/CMock Summary.odt +0 -0
  22. data/vendor/cmock/docs/CMock Summary.pdf +0 -0
  23. data/vendor/cmock/docs/CMock_Summary.md +130 -111
  24. data/vendor/cmock/docs/license.txt +1 -1
  25. data/vendor/cmock/lib/cmock.rb +36 -12
  26. data/vendor/cmock/lib/cmock_config.rb +39 -36
  27. data/vendor/cmock/lib/cmock_generator.rb +33 -25
  28. data/vendor/cmock/lib/cmock_generator_plugin_expect_any_args.rb +68 -0
  29. data/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +18 -42
  30. data/vendor/cmock/lib/cmock_generator_plugin_return_thru_ptr.rb +2 -2
  31. data/vendor/cmock/lib/cmock_generator_utils.rb +39 -29
  32. data/vendor/cmock/lib/cmock_header_parser.rb +46 -39
  33. data/vendor/cmock/rakefile_helper.rb +38 -38
  34. data/vendor/cmock/src/cmock.c +20 -4
  35. data/vendor/cmock/src/cmock.h +6 -1
  36. data/vendor/cmock/src/cmock_internals.h +26 -3
  37. data/vendor/cmock/targets/clang_strict.yml +85 -0
  38. data/vendor/cmock/targets/gcc.yml +4 -2
  39. data/vendor/cmock/targets/gcc_64.yml +55 -0
  40. data/vendor/cmock/test/c/TestCMockC.c +3 -3
  41. data/vendor/cmock/test/c/TestCMockCDynamic.c +11 -11
  42. data/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +4 -2
  43. data/vendor/cmock/test/c/TestCMockC_Runner.c +1 -1
  44. data/vendor/cmock/test/system/systest_generator.rb +38 -26
  45. data/vendor/cmock/test/system/test_compilation/const.h +8 -3
  46. data/vendor/cmock/test/system/test_interactions/all_plugins_but_other_limits.yml +92 -58
  47. data/vendor/cmock/test/system/test_interactions/all_plugins_coexist.yml +53 -48
  48. data/vendor/cmock/test/system/test_interactions/array_and_pointer_handling.yml +58 -56
  49. data/vendor/cmock/test/system/test_interactions/basic_expect_and_return.yml +19 -18
  50. data/vendor/cmock/test/system/test_interactions/expect_and_return_custom_types.yml +13 -13
  51. data/vendor/cmock/test/system/test_interactions/expect_and_return_treat_as.yml +20 -20
  52. data/vendor/cmock/test/system/test_interactions/expect_any_args.yml +238 -0
  53. data/vendor/cmock/test/system/test_interactions/fancy_pointer_handling.yml +36 -34
  54. data/vendor/cmock/test/system/test_interactions/ignore_and_return.yml +24 -15
  55. data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_2.yml +11 -11
  56. data/vendor/cmock/test/system/test_interactions/return_thru_ptr_and_expect_any_args.yml +235 -0
  57. data/vendor/cmock/test/system/test_interactions/return_thru_ptr_ignore_arg.yml +22 -26
  58. data/vendor/cmock/test/system/test_interactions/stubs_with_callbacks.yml +31 -31
  59. data/vendor/cmock/test/unit/cmock_generator_main_test.rb +141 -109
  60. data/vendor/cmock/test/unit/cmock_generator_plugin_expect_any_args_test.rb +82 -0
  61. data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +17 -81
  62. data/vendor/cmock/test/unit/cmock_generator_plugin_return_thru_ptr_test.rb +10 -10
  63. data/vendor/cmock/test/unit/cmock_generator_utils_test.rb +47 -41
  64. data/vendor/cmock/test/unit/cmock_header_parser_test.rb +290 -227
  65. data/vendor/unity/{rakefile.rb → Rakefile} +13 -6
  66. data/vendor/unity/auto/colour_prompt.rb +33 -12
  67. data/vendor/unity/auto/generate_test_runner.rb +67 -63
  68. data/vendor/unity/auto/parseOutput.rb +189 -0
  69. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/makefile +41 -40
  70. data/vendor/unity/examples/example_1/readme.txt +5 -0
  71. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode.c +24 -24
  72. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode.h +3 -3
  73. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode2.c +9 -9
  74. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode2.h +2 -2
  75. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/test/TestProductionCode.c +62 -62
  76. data/vendor/unity/examples/{test → example_1/test}/TestProductionCode2.c +31 -31
  77. data/vendor/unity/examples/{test/no_ruby → example_1/test/test_runners}/TestProductionCode2_Runner.c +46 -46
  78. data/vendor/unity/examples/{test/no_ruby → example_1/test/test_runners}/TestProductionCode_Runner.c +50 -50
  79. data/vendor/unity/examples/example_2/makefile +45 -0
  80. data/vendor/unity/examples/example_2/readme.txt +5 -0
  81. data/vendor/unity/examples/{src → example_2/src}/ProductionCode.c +24 -24
  82. data/vendor/unity/examples/{src → example_2/src}/ProductionCode.h +3 -3
  83. data/vendor/unity/examples/{src → example_2/src}/ProductionCode2.c +9 -9
  84. data/vendor/unity/examples/{src → example_2/src}/ProductionCode2.h +2 -2
  85. data/vendor/unity/examples/{test → example_2/test}/TestProductionCode.c +64 -62
  86. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_2}/test/TestProductionCode2.c +33 -31
  87. data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +9 -0
  88. data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +11 -0
  89. data/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -0
  90. data/vendor/unity/examples/{helper → example_3/helper}/UnityHelper.c +10 -10
  91. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/helper/UnityHelper.h +12 -12
  92. data/vendor/unity/examples/{makefile → example_3/makefile} +41 -40
  93. data/vendor/unity/examples/{rakefile.rb → example_3/rakefile.rb} +44 -43
  94. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/rakefile_helper.rb +256 -256
  95. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/readme.txt +18 -17
  96. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode.c +24 -24
  97. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode.h +3 -3
  98. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode2.c +9 -9
  99. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode2.h +2 -2
  100. data/vendor/{c_exception/vendor/unity/targets/gcc_64.yml → unity/examples/example_3/target_gcc_32.yml} +46 -44
  101. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/test/TestProductionCode.c +62 -62
  102. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/test/TestProductionCode2.c +31 -31
  103. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/test/no_ruby/TestProductionCode2_Runner.c +46 -46
  104. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/test/no_ruby/TestProductionCode_Runner.c +50 -50
  105. data/vendor/unity/extras/eclipse/error_parsers.txt +26 -0
  106. data/vendor/unity/extras/fixture/src/unity_fixture.c +4 -1
  107. data/vendor/unity/extras/fixture/src/unity_fixture.h +17 -16
  108. data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +7 -7
  109. data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +17 -0
  110. data/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +1 -0
  111. data/vendor/unity/makefile +6 -4
  112. data/vendor/unity/rakefile_helper.rb +36 -27
  113. data/vendor/unity/src/unity.c +180 -181
  114. data/vendor/unity/src/unity.h +64 -2
  115. data/vendor/unity/src/unity_internals.h +188 -102
  116. data/vendor/unity/targets/clang_strict.yml +83 -0
  117. data/vendor/unity/targets/gcc_32.yml +5 -0
  118. data/vendor/unity/targets/gcc_64.yml +5 -0
  119. data/vendor/{c_exception/vendor/unity/targets/gcc.yml → unity/targets/gcc_auto_limits.yml} +5 -2
  120. data/vendor/{cmock/vendor/unity/targets/gcc_64.yml → unity/targets/gcc_auto_sizeof.yml} +6 -3
  121. data/vendor/{cmock/vendor/unity/targets/gcc.yml → unity/targets/gcc_auto_stdint.yml} +4 -2
  122. data/vendor/unity/test/expectdata/testsample_cmd.c +57 -54
  123. data/vendor/unity/test/expectdata/testsample_def.c +53 -50
  124. data/vendor/unity/test/expectdata/testsample_mock_cmd.c +79 -76
  125. data/vendor/unity/test/expectdata/testsample_mock_def.c +75 -72
  126. data/vendor/unity/test/expectdata/testsample_mock_new1.c +88 -85
  127. data/vendor/unity/test/expectdata/testsample_mock_new2.c +88 -85
  128. data/vendor/unity/test/expectdata/testsample_mock_param.c +76 -73
  129. data/vendor/unity/test/expectdata/testsample_mock_run1.c +88 -85
  130. data/vendor/unity/test/expectdata/testsample_mock_run2.c +88 -85
  131. data/vendor/unity/test/expectdata/testsample_mock_yaml.c +89 -86
  132. data/vendor/unity/test/expectdata/testsample_new1.c +63 -60
  133. data/vendor/unity/test/expectdata/testsample_new2.c +66 -63
  134. data/vendor/unity/test/expectdata/testsample_param.c +54 -51
  135. data/vendor/unity/test/expectdata/testsample_run1.c +63 -60
  136. data/vendor/unity/test/expectdata/testsample_run2.c +66 -63
  137. data/vendor/unity/test/expectdata/testsample_yaml.c +67 -64
  138. data/vendor/unity/test/test_generate_test_runner.rb +66 -72
  139. data/vendor/unity/test/testunity.c +591 -111
  140. metadata +58 -195
  141. data/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +0 -94
  142. data/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +0 -39
  143. data/vendor/c_exception/vendor/unity/auto/generate_config.yml +0 -36
  144. data/vendor/c_exception/vendor/unity/auto/generate_module.rb +0 -202
  145. data/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +0 -313
  146. data/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +0 -23
  147. data/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +0 -139
  148. data/vendor/c_exception/vendor/unity/docs/Unity Summary.odt +0 -0
  149. data/vendor/c_exception/vendor/unity/docs/Unity Summary.pdf +0 -0
  150. data/vendor/c_exception/vendor/unity/docs/Unity Summary.txt +0 -217
  151. data/vendor/c_exception/vendor/unity/docs/license.txt +0 -31
  152. data/vendor/c_exception/vendor/unity/examples/helper/UnityHelper.c +0 -10
  153. data/vendor/c_exception/vendor/unity/examples/helper/UnityHelper.h +0 -12
  154. data/vendor/c_exception/vendor/unity/examples/makefile +0 -40
  155. data/vendor/c_exception/vendor/unity/examples/rakefile.rb +0 -32
  156. data/vendor/c_exception/vendor/unity/examples/rakefile_helper.rb +0 -256
  157. data/vendor/c_exception/vendor/unity/examples/test/no_ruby/TestProductionCode_Runner.c +0 -50
  158. data/vendor/c_exception/vendor/unity/extras/fixture/build/MakefileWorker.mk +0 -331
  159. data/vendor/c_exception/vendor/unity/extras/fixture/build/filterGcov.sh +0 -61
  160. data/vendor/c_exception/vendor/unity/extras/fixture/rakefile.rb +0 -37
  161. data/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +0 -178
  162. data/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +0 -9
  163. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +0 -381
  164. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +0 -81
  165. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +0 -44
  166. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +0 -16
  167. data/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +0 -21
  168. data/vendor/c_exception/vendor/unity/extras/fixture/test/testunity_fixture.c +0 -39
  169. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +0 -321
  170. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +0 -40
  171. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +0 -56
  172. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +0 -17
  173. data/vendor/c_exception/vendor/unity/makefile +0 -35
  174. data/vendor/c_exception/vendor/unity/rakefile.rb +0 -59
  175. data/vendor/c_exception/vendor/unity/rakefile_helper.rb +0 -240
  176. data/vendor/c_exception/vendor/unity/release/build.info +0 -2
  177. data/vendor/c_exception/vendor/unity/release/version.info +0 -2
  178. data/vendor/c_exception/vendor/unity/src/unity.c +0 -979
  179. data/vendor/c_exception/vendor/unity/src/unity.h +0 -232
  180. data/vendor/c_exception/vendor/unity/src/unity_internals.h +0 -424
  181. data/vendor/c_exception/vendor/unity/targets/hitech_picc18.yml +0 -101
  182. data/vendor/c_exception/vendor/unity/targets/iar_arm_v4.yml +0 -89
  183. data/vendor/c_exception/vendor/unity/targets/iar_arm_v5.yml +0 -79
  184. data/vendor/c_exception/vendor/unity/targets/iar_arm_v5_3.yml +0 -79
  185. data/vendor/c_exception/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +0 -93
  186. data/vendor/c_exception/vendor/unity/targets/iar_cortexm3_v5.yml +0 -83
  187. data/vendor/c_exception/vendor/unity/targets/iar_msp430.yml +0 -94
  188. data/vendor/c_exception/vendor/unity/targets/iar_sh2a_v6.yml +0 -85
  189. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +0 -54
  190. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +0 -50
  191. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +0 -76
  192. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +0 -72
  193. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +0 -85
  194. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +0 -85
  195. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +0 -73
  196. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +0 -85
  197. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +0 -85
  198. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +0 -86
  199. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +0 -60
  200. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +0 -63
  201. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +0 -51
  202. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +0 -60
  203. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +0 -63
  204. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +0 -64
  205. data/vendor/c_exception/vendor/unity/test/test_generate_test_runner.rb +0 -94
  206. data/vendor/c_exception/vendor/unity/test/testdata/mocksample.c +0 -51
  207. data/vendor/c_exception/vendor/unity/test/testdata/sample.yml +0 -9
  208. data/vendor/c_exception/vendor/unity/test/testdata/testsample.c +0 -51
  209. data/vendor/c_exception/vendor/unity/test/testparameterized.c +0 -101
  210. data/vendor/c_exception/vendor/unity/test/testunity.c +0 -2024
  211. data/vendor/cmock/vendor/c_exception/docs/CExceptionSummary.odt +0 -0
  212. data/vendor/cmock/vendor/c_exception/docs/CExceptionSummary.pdf +0 -0
  213. data/vendor/cmock/vendor/c_exception/docs/license.txt +0 -30
  214. data/vendor/cmock/vendor/c_exception/docs/readme.txt +0 -236
  215. data/vendor/cmock/vendor/c_exception/lib/CException.c +0 -39
  216. data/vendor/cmock/vendor/c_exception/lib/CException.h +0 -70
  217. data/vendor/cmock/vendor/c_exception/makefile +0 -24
  218. data/vendor/cmock/vendor/c_exception/rakefile.rb +0 -41
  219. data/vendor/cmock/vendor/c_exception/release/build.info +0 -2
  220. data/vendor/cmock/vendor/c_exception/release/version.info +0 -2
  221. data/vendor/cmock/vendor/c_exception/test/CExceptionConfig.h +0 -27
  222. data/vendor/cmock/vendor/c_exception/test/TestException.c +0 -291
  223. data/vendor/cmock/vendor/c_exception/test/TestException_Runner.c +0 -62
  224. data/vendor/cmock/vendor/unity/auto/colour_prompt.rb +0 -94
  225. data/vendor/cmock/vendor/unity/auto/colour_reporter.rb +0 -39
  226. data/vendor/cmock/vendor/unity/auto/generate_config.yml +0 -36
  227. data/vendor/cmock/vendor/unity/auto/generate_module.rb +0 -202
  228. data/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +0 -313
  229. data/vendor/cmock/vendor/unity/auto/test_file_filter.rb +0 -23
  230. data/vendor/cmock/vendor/unity/auto/unity_test_summary.rb +0 -139
  231. data/vendor/cmock/vendor/unity/docs/Unity Summary.odt +0 -0
  232. data/vendor/cmock/vendor/unity/docs/Unity Summary.pdf +0 -0
  233. data/vendor/cmock/vendor/unity/docs/Unity Summary.txt +0 -217
  234. data/vendor/cmock/vendor/unity/docs/license.txt +0 -31
  235. data/vendor/cmock/vendor/unity/examples/helper/UnityHelper.c +0 -10
  236. data/vendor/cmock/vendor/unity/examples/rakefile.rb +0 -32
  237. data/vendor/cmock/vendor/unity/examples/readme.txt +0 -18
  238. data/vendor/cmock/vendor/unity/examples/test/no_ruby/TestProductionCode2_Runner.c +0 -46
  239. data/vendor/cmock/vendor/unity/extras/fixture/build/MakefileWorker.mk +0 -331
  240. data/vendor/cmock/vendor/unity/extras/fixture/build/filterGcov.sh +0 -61
  241. data/vendor/cmock/vendor/unity/extras/fixture/rakefile.rb +0 -37
  242. data/vendor/cmock/vendor/unity/extras/fixture/rakefile_helper.rb +0 -178
  243. data/vendor/cmock/vendor/unity/extras/fixture/readme.txt +0 -9
  244. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +0 -381
  245. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.h +0 -81
  246. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +0 -44
  247. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +0 -16
  248. data/vendor/cmock/vendor/unity/extras/fixture/test/main/AllTests.c +0 -21
  249. data/vendor/cmock/vendor/unity/extras/fixture/test/testunity_fixture.c +0 -39
  250. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +0 -321
  251. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +0 -40
  252. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.c +0 -56
  253. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.h +0 -17
  254. data/vendor/cmock/vendor/unity/makefile +0 -35
  255. data/vendor/cmock/vendor/unity/rakefile.rb +0 -48
  256. data/vendor/cmock/vendor/unity/rakefile_helper.rb +0 -240
  257. data/vendor/cmock/vendor/unity/release/build.info +0 -2
  258. data/vendor/cmock/vendor/unity/release/version.info +0 -2
  259. data/vendor/cmock/vendor/unity/src/unity.c +0 -979
  260. data/vendor/cmock/vendor/unity/src/unity.h +0 -232
  261. data/vendor/cmock/vendor/unity/src/unity_internals.h +0 -424
  262. data/vendor/cmock/vendor/unity/targets/hitech_picc18.yml +0 -101
  263. data/vendor/cmock/vendor/unity/targets/iar_arm_v4.yml +0 -89
  264. data/vendor/cmock/vendor/unity/targets/iar_arm_v5.yml +0 -79
  265. data/vendor/cmock/vendor/unity/targets/iar_arm_v5_3.yml +0 -79
  266. data/vendor/cmock/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +0 -93
  267. data/vendor/cmock/vendor/unity/targets/iar_cortexm3_v5.yml +0 -83
  268. data/vendor/cmock/vendor/unity/targets/iar_msp430.yml +0 -94
  269. data/vendor/cmock/vendor/unity/targets/iar_sh2a_v6.yml +0 -85
  270. data/vendor/cmock/vendor/unity/test/expectdata/testsample_cmd.c +0 -54
  271. data/vendor/cmock/vendor/unity/test/expectdata/testsample_def.c +0 -50
  272. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_cmd.c +0 -76
  273. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_def.c +0 -72
  274. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new1.c +0 -85
  275. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new2.c +0 -85
  276. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_param.c +0 -73
  277. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run1.c +0 -85
  278. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run2.c +0 -85
  279. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_yaml.c +0 -86
  280. data/vendor/cmock/vendor/unity/test/expectdata/testsample_new1.c +0 -60
  281. data/vendor/cmock/vendor/unity/test/expectdata/testsample_new2.c +0 -63
  282. data/vendor/cmock/vendor/unity/test/expectdata/testsample_param.c +0 -51
  283. data/vendor/cmock/vendor/unity/test/expectdata/testsample_run1.c +0 -60
  284. data/vendor/cmock/vendor/unity/test/expectdata/testsample_run2.c +0 -63
  285. data/vendor/cmock/vendor/unity/test/expectdata/testsample_yaml.c +0 -64
  286. data/vendor/cmock/vendor/unity/test/test_generate_test_runner.rb +0 -94
  287. data/vendor/cmock/vendor/unity/test/testdata/mocksample.c +0 -51
  288. data/vendor/cmock/vendor/unity/test/testdata/sample.yml +0 -9
  289. data/vendor/cmock/vendor/unity/test/testdata/testsample.c +0 -51
  290. data/vendor/cmock/vendor/unity/test/testparameterized.c +0 -101
  291. data/vendor/cmock/vendor/unity/test/testunity.c +0 -2024
  292. data/vendor/unity/Gemfile +0 -4
  293. data/vendor/unity/examples/helper/UnityHelper.h +0 -12
  294. data/vendor/unity/examples/rakefile_helper.rb +0 -256
  295. data/vendor/unity/examples/readme.txt +0 -18
@@ -10,7 +10,7 @@
10
10
  int x;
11
11
  int y;
12
12
  } POINT_T;
13
- #define ARRAY_A_SIZE (5)
13
+ #define ARRAY_A_SIZE (5)
14
14
 
15
15
  :mockable: |
16
16
  void foo(POINT_T* a);
@@ -18,12 +18,12 @@
18
18
  void fooa(POINT_T a[ARRAY_A_SIZE+1-1]);
19
19
  void foos(const char * a);
20
20
  const char * bars(void);
21
- void no_pointers(int a, char* b);
21
+ void no_pointers(int a, const char* b);
22
22
  int mixed(int a, int* b, int c);
23
23
  void potential_packing_problem(short *a);
24
24
 
25
- :source:
26
- :header: |
25
+ :source:
26
+ :header: |
27
27
  void function_a(void);
28
28
  void function_b(void);
29
29
  void function_c(void);
@@ -31,35 +31,35 @@
31
31
  void function_e(void);
32
32
 
33
33
  :code: |
34
- void function_a(void)
34
+ void function_a(void)
35
35
  {
36
36
  foo(bar());
37
- }
37
+ }
38
38
 
39
39
  void function_b(void) {
40
40
  fooa(bar());
41
41
  }
42
-
42
+
43
43
  void function_c(void) {
44
44
  foos(bars());
45
45
  }
46
-
46
+
47
47
  int function_d(void) {
48
48
  int test_list[] = { 1, 2, 3, 4, 5 };
49
49
  no_pointers(1, "silly");
50
50
  return mixed(6, test_list, 7);
51
51
  }
52
-
52
+
53
53
  void function_e(void) {
54
54
  short test_list[] = {-1, -2, -3, -4};
55
55
  potential_packing_problem(&test_list[1]);
56
56
  }
57
-
57
+
58
58
  :tests:
59
59
  :common: |
60
60
  void setUp(void) {}
61
61
  void tearDown(void) {}
62
-
62
+
63
63
  :units:
64
64
  - :pass: TRUE
65
65
  :should: 'handle the situation where we pass nulls to pointers'
@@ -68,10 +68,10 @@
68
68
  {
69
69
  bar_ExpectAndReturn(NULL);
70
70
  foo_Expect(NULL);
71
-
71
+
72
72
  function_a();
73
73
  }
74
-
74
+
75
75
  - :pass: FALSE
76
76
  :should: 'handle the situation where we expected nulls to pointers but did not get that'
77
77
  :code: |
@@ -80,10 +80,10 @@
80
80
  POINT_T pt = {1, 2};
81
81
  bar_ExpectAndReturn(&pt);
82
82
  foo_Expect(NULL);
83
-
83
+
84
84
  function_a();
85
85
  }
86
-
86
+
87
87
  - :pass: FALSE
88
88
  :should: 'handle the situation where we did not expect nulls to pointers but got null'
89
89
  :code: |
@@ -92,10 +92,10 @@
92
92
  POINT_T ex = {1, 2};
93
93
  bar_ExpectAndReturn(NULL);
94
94
  foo_Expect(&ex);
95
-
95
+
96
96
  function_a();
97
97
  }
98
-
98
+
99
99
  - :pass: TRUE
100
100
  :should: 'handle the situation where it falls back to pointers because you asked it to compare 0 elements'
101
101
  :code: |
@@ -104,10 +104,10 @@
104
104
  POINT_T ex = {1, 2};
105
105
  bar_ExpectAndReturn(&ex);
106
106
  foo_ExpectWithArray(&ex, 0);
107
-
107
+
108
108
  function_a();
109
109
  }
110
-
110
+
111
111
  - :pass: FALSE
112
112
  :should: 'handle the situation where it fails because you asked it to compare zero elements and the pointers do not match'
113
113
  :code: |
@@ -117,10 +117,10 @@
117
117
  POINT_T pt = {1, 2};
118
118
  bar_ExpectAndReturn(&pt);
119
119
  foo_ExpectWithArray(&ex, 0);
120
-
120
+
121
121
  function_a();
122
122
  }
123
-
123
+
124
124
  - :pass: TRUE
125
125
  :should: 'handle the situation where we pass single object with expect'
126
126
  :code: |
@@ -130,10 +130,10 @@
130
130
  POINT_T ex = {1, 2};
131
131
  bar_ExpectAndReturn(&pt);
132
132
  foo_Expect(&ex);
133
-
133
+
134
134
  function_a();
135
135
  }
136
-
136
+
137
137
  - :pass: FALSE
138
138
  :should: 'handle the situation where we pass single object with expect and it is wrong'
139
139
  :code: |
@@ -143,10 +143,10 @@
143
143
  POINT_T ex = {1, 3};
144
144
  bar_ExpectAndReturn(&pt);
145
145
  foo_Expect(&ex);
146
-
146
+
147
147
  function_a();
148
148
  }
149
-
149
+
150
150
  - :pass: TRUE
151
151
  :should: 'handle the situation where we pass single object with expect and use array handler'
152
152
  :code: |
@@ -156,10 +156,10 @@
156
156
  POINT_T ex = {1, 2};
157
157
  bar_ExpectAndReturn(&pt);
158
158
  foo_ExpectWithArray(&ex, 1);
159
-
159
+
160
160
  function_a();
161
161
  }
162
-
162
+
163
163
  - :pass: FALSE
164
164
  :should: 'handle the situation where we pass single object with expect and use array handler and it is wrong'
165
165
  :code: |
@@ -169,10 +169,10 @@
169
169
  POINT_T ex = {1, 3};
170
170
  bar_ExpectAndReturn(&pt);
171
171
  foo_ExpectWithArray(&ex, 1);
172
-
172
+
173
173
  function_a();
174
174
  }
175
-
175
+
176
176
  - :pass: TRUE
177
177
  :should: 'handle the situation where we pass multiple objects with expect and use array handler'
178
178
  :code: |
@@ -182,10 +182,10 @@
182
182
  POINT_T ex[] = {{1, 2}, {3, 4}, {5, 6}};
183
183
  bar_ExpectAndReturn(pt);
184
184
  foo_ExpectWithArray(ex, 3);
185
-
185
+
186
186
  function_a();
187
187
  }
188
-
188
+
189
189
  - :pass: FALSE
190
190
  :should: 'handle the situation where we pass multiple objects with expect and use array handler and it is wrong at start'
191
191
  :code: |
@@ -195,10 +195,10 @@
195
195
  POINT_T ex[] = {{9, 2}, {3, 4}, {5, 6}};
196
196
  bar_ExpectAndReturn(pt);
197
197
  foo_ExpectWithArray(ex, 3);
198
-
198
+
199
199
  function_a();
200
200
  }
201
-
201
+
202
202
  - :pass: FALSE
203
203
  :should: 'handle the situation where we pass multiple objects with expect and use array handler and it is wrong at end'
204
204
  :code: |
@@ -208,10 +208,10 @@
208
208
  POINT_T ex[] = {{1, 2}, {3, 4}, {5, 9}};
209
209
  bar_ExpectAndReturn(pt);
210
210
  foo_ExpectWithArray(ex, 3);
211
-
211
+
212
212
  function_a();
213
213
  }
214
-
214
+
215
215
  - :pass: FALSE
216
216
  :should: 'handle the situation where we pass multiple objects with expect and use array handler and it is wrong in middle'
217
217
  :code: |
@@ -221,10 +221,10 @@
221
221
  POINT_T ex[] = {{1, 2}, {3, 9}, {5, 6}};
222
222
  bar_ExpectAndReturn(pt);
223
223
  foo_ExpectWithArray(ex, 3);
224
-
224
+
225
225
  function_a();
226
226
  }
227
-
227
+
228
228
  - :pass: FALSE
229
229
  :should: 'handle the situation where we pass nulls to pointers and fail'
230
230
  :code: |
@@ -233,10 +233,10 @@
233
233
  POINT_T pt = {1, 2};
234
234
  bar_ExpectAndReturn(&pt);
235
235
  foo_Expect(NULL);
236
-
236
+
237
237
  function_a();
238
238
  }
239
-
239
+
240
240
  - :pass: TRUE
241
241
  :should: 'handle the situation where we pass nulls to arrays'
242
242
  :code: |
@@ -244,7 +244,7 @@
244
244
  {
245
245
  bar_ExpectAndReturn(NULL);
246
246
  fooa_Expect(NULL);
247
-
247
+
248
248
  function_b();
249
249
  }
250
250
 
@@ -257,10 +257,10 @@
257
257
  POINT_T ex = {1, 2};
258
258
  bar_ExpectAndReturn(&pt);
259
259
  fooa_Expect(&ex);
260
-
260
+
261
261
  function_b();
262
262
  }
263
-
263
+
264
264
  - :pass: FALSE
265
265
  :should: 'handle the situation where we pass single array element with expect and it is wrong'
266
266
  :code: |
@@ -270,10 +270,10 @@
270
270
  POINT_T ex = {1, 3};
271
271
  bar_ExpectAndReturn(&pt);
272
272
  fooa_Expect(&ex);
273
-
273
+
274
274
  function_b();
275
275
  }
276
-
276
+
277
277
  - :pass: FALSE
278
278
  :should: 'handle the situation where we pass nulls to arrays and fail'
279
279
  :code: |
@@ -282,7 +282,7 @@
282
282
  POINT_T pt = {1, 2};
283
283
  bar_ExpectAndReturn(&pt);
284
284
  fooa_Expect(NULL);
285
-
285
+
286
286
  function_b();
287
287
  }
288
288
 
@@ -291,20 +291,22 @@
291
291
  :code: |
292
292
  test()
293
293
  {
294
- bars_ExpectAndReturn("This is a\0 silly string");
294
+ const char* retval = "This is a\0 silly string";
295
+ bars_ExpectAndReturn((char*)retval);
295
296
  foos_Expect("This is a\0 wacky string");
296
-
297
+
297
298
  function_c();
298
299
  }
299
-
300
+
300
301
  - :pass: FALSE
301
302
  :should: 'handle standard c string as null terminated on not do crappy memory compares of a byte, finding failures'
302
303
  :code: |
303
304
  test()
304
305
  {
305
- bars_ExpectAndReturn("This is a silly string");
306
+ const char* retval = "This is a silly string";
307
+ bars_ExpectAndReturn((char*)retval);
306
308
  foos_Expect("This is a wacky string");
307
-
309
+
308
310
  function_c();
309
311
  }
310
312
 
@@ -316,7 +318,7 @@
316
318
  int expect_list[] = { 1, 9 };
317
319
  no_pointers_Expect(1, "silly");
318
320
  mixed_ExpectAndReturn(6, expect_list, 7, 13);
319
-
321
+
320
322
  TEST_ASSERT_EQUAL(13, function_d());
321
323
  }
322
324
 
@@ -328,7 +330,7 @@
328
330
  int expect_list[] = { 9, 1 };
329
331
  no_pointers_Expect(1, "silly");
330
332
  mixed_ExpectAndReturn(6, expect_list, 7, 13);
331
-
333
+
332
334
  TEST_ASSERT_EQUAL(13, function_d());
333
335
  }
334
336
 
@@ -340,7 +342,7 @@
340
342
  int expect_list[] = { 1, 2, 3, 4, 6 };
341
343
  no_pointers_Expect(1, "silly");
342
344
  mixed_ExpectWithArrayAndReturn(6, expect_list, 4, 7, 13);
343
-
345
+
344
346
  TEST_ASSERT_EQUAL(13, function_d());
345
347
  }
346
348
 
@@ -352,7 +354,7 @@
352
354
  int expect_list[] = { 1, 2, 3, 4, 6 };
353
355
  no_pointers_Expect(1, "silly");
354
356
  mixed_ExpectWithArrayAndReturn(6, expect_list, 5, 7, 13);
355
-
357
+
356
358
  TEST_ASSERT_EQUAL(13, function_d());
357
359
  }
358
360
 
@@ -363,7 +365,7 @@
363
365
  {
364
366
  short expect_list[] = { -2, -3, -4 };
365
367
  potential_packing_problem_ExpectWithArray(expect_list, 3);
366
-
368
+
367
369
  function_e();
368
370
  }
369
371
 
@@ -374,7 +376,7 @@
374
376
  {
375
377
  short expect_list[] = { -2, -3, 4 };
376
378
  potential_packing_problem_ExpectWithArray(expect_list, 3);
377
-
379
+
378
380
  function_e();
379
381
  }
380
382
 
@@ -6,45 +6,45 @@
6
6
  :systest:
7
7
  :types: |
8
8
  #define UINT32 unsigned int
9
-
9
+
10
10
  typedef signed int custom_type;
11
11
 
12
12
  :mockable: |
13
13
  UINT32 foo(custom_type a);
14
14
  UINT32 bar(custom_type b);
15
15
  UINT32 foo_varargs(custom_type a, ...);
16
- char* foo_char_strings(char a[], char* b);
16
+ const char* foo_char_strings(const char a[], const char* b);
17
17
 
18
- :source:
19
- :header: |
18
+ :source:
19
+ :header: |
20
20
  UINT32 function_a(int a, int b);
21
21
  void function_b(void);
22
22
  UINT32 function_c(int a);
23
- char* function_d(char a[], char* b);
23
+ const char* function_d(const char a[], const char* b);
24
24
 
25
25
  :code: |
26
- UINT32 function_a(int a, int b)
26
+ UINT32 function_a(int a, int b)
27
27
  {
28
28
  return foo((custom_type)a) + bar((custom_type)b);
29
- }
29
+ }
30
30
 
31
31
  void function_b(void) { }
32
32
 
33
- UINT32 function_c(int a)
33
+ UINT32 function_c(int a)
34
34
  {
35
35
  return foo_varargs((custom_type)a, "ignored", 5);
36
36
  }
37
-
38
- char* function_d(char a[], char* b)
37
+
38
+ const char* function_d(const char a[], const char* b)
39
39
  {
40
40
  return foo_char_strings(a, b);
41
41
  }
42
-
42
+
43
43
  :tests:
44
44
  :common: |
45
45
  void setUp(void) {}
46
46
  void tearDown(void) {}
47
-
47
+
48
48
  :units:
49
49
  - :pass: TRUE
50
50
  :should: 'successfully exercise two simple ExpectAndReturn mock calls'
@@ -55,7 +55,7 @@
55
55
  bar_ExpectAndReturn((custom_type)2, 20);
56
56
  TEST_ASSERT_EQUAL(30, function_a(1, 2));
57
57
  }
58
-
58
+
59
59
  - :pass: FALSE
60
60
  :should: 'fail because bar() is not called but is expected'
61
61
  :code: |
@@ -88,10 +88,11 @@
88
88
  :code: |
89
89
  test()
90
90
  {
91
- foo_char_strings_ExpectAndReturn("larry", "curly", "moe");
91
+ const char* retval = "moe";
92
+ foo_char_strings_ExpectAndReturn("larry", "curly", (char*)retval);
92
93
  TEST_ASSERT_EQUAL_STRING("moe", function_d("larry", "curly"));
93
94
  }
94
-
95
+
95
96
  - :pass: TRUE
96
97
  :should: 'successfully exercise multiple cycles of expecting and mocking and pass'
97
98
  :code: |
@@ -100,12 +101,12 @@
100
101
  foo_ExpectAndReturn((custom_type)1, 10);
101
102
  bar_ExpectAndReturn((custom_type)2, 20);
102
103
  TEST_ASSERT_EQUAL(30, function_a(1, 2));
103
-
104
+
104
105
  foo_ExpectAndReturn((custom_type)3, 30);
105
106
  bar_ExpectAndReturn((custom_type)4, 40);
106
107
  TEST_ASSERT_EQUAL(70, function_a(3, 4));
107
108
  }
108
-
109
+
109
110
  - :pass: FALSE
110
111
  :should: 'successfully exercise multiple cycles of expecting and mocking and fail'
111
112
  :code: |
@@ -114,7 +115,7 @@
114
115
  foo_ExpectAndReturn((custom_type)1, 10);
115
116
  bar_ExpectAndReturn((custom_type)2, 20);
116
117
  TEST_ASSERT_EQUAL(30, function_a(1, 2));
117
-
118
+
118
119
  foo_ExpectAndReturn((custom_type)3, 30);
119
120
  bar_ExpectAndReturn((custom_type)4, 40);
120
121
  TEST_ASSERT_EQUAL(70, function_a(3, 5));