ceedling 0.31.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2361) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +19 -11
  3. data/Gemfile.lock +31 -24
  4. data/README.md +716 -75
  5. data/Rakefile +15 -0
  6. data/assets/ceedling +6 -0
  7. data/assets/default_gitignore +7 -5
  8. data/assets/example_file.c +11 -0
  9. data/assets/example_file.h +9 -0
  10. data/assets/example_file_call.c +13 -0
  11. data/assets/example_file_call.h +13 -0
  12. data/assets/project_as_gem.yml +360 -50
  13. data/assets/project_with_guts.yml +361 -51
  14. data/assets/test_example_file.c +9 -2
  15. data/assets/test_example_file_boom.c +9 -2
  16. data/assets/test_example_file_crash.c +25 -0
  17. data/assets/test_example_file_success.c +9 -2
  18. data/assets/test_example_file_unity_printf.c +8 -1
  19. data/assets/test_example_file_verbose.c +8 -1
  20. data/assets/test_example_file_with_mock.c +20 -0
  21. data/assets/test_example_with_parameterized_tests.c +12 -3
  22. data/assets/tests_with_defines/src/adc_hardware.c +8 -1
  23. data/assets/tests_with_defines/src/adc_hardware.h +7 -0
  24. data/assets/tests_with_defines/src/adc_hardware_configurator.c +8 -1
  25. data/assets/tests_with_defines/src/adc_hardware_configurator.h +8 -1
  26. data/assets/tests_with_defines/test/test_adc_hardware.c +7 -0
  27. data/assets/tests_with_defines/test/test_adc_hardware_special.c +7 -0
  28. data/assets/tests_with_preprocessing/src/adc_hardwareA.c +17 -0
  29. data/assets/tests_with_preprocessing/src/adc_hardwareA.h +13 -0
  30. data/assets/tests_with_preprocessing/src/adc_hardwareB.c +14 -0
  31. data/assets/tests_with_preprocessing/src/adc_hardwareB.h +13 -0
  32. data/assets/tests_with_preprocessing/src/adc_hardwareC.c +14 -0
  33. data/assets/tests_with_preprocessing/src/adc_hardwareC.h +13 -0
  34. data/assets/tests_with_preprocessing/src/adc_hardware_configuratorA.h +13 -0
  35. data/assets/tests_with_preprocessing/src/adc_hardware_configuratorB.h +15 -0
  36. data/assets/tests_with_preprocessing/src/adc_hardware_configuratorC.h +15 -0
  37. data/assets/tests_with_preprocessing/test/test_adc_hardwareA.c +41 -0
  38. data/assets/tests_with_preprocessing/test/test_adc_hardwareB.c +25 -0
  39. data/assets/tests_with_preprocessing/test/test_adc_hardwareC.c +29 -0
  40. data/assets/uncovered_example_file.c +7 -0
  41. data/bin/actions_wrapper.rb +50 -0
  42. data/bin/app_cfg.rb +134 -0
  43. data/bin/ceedling +139 -329
  44. data/bin/cli.rb +542 -0
  45. data/bin/cli_handler.rb +480 -0
  46. data/bin/cli_helper.rb +507 -0
  47. data/bin/configinator.rb +111 -0
  48. data/bin/mixinator.rb +136 -0
  49. data/bin/mixins.rb +12 -0
  50. data/bin/objects.yml +80 -0
  51. data/bin/path_validator.rb +54 -0
  52. data/bin/projectinator.rb +244 -0
  53. data/bin/versionator.rb +81 -0
  54. data/build/test/dependencies/AdcConductor.d +2 -0
  55. data/build/test/dependencies/AdcHardware.d +3 -0
  56. data/build/test/dependencies/AdcModel.d +3 -0
  57. data/build/test/dependencies/Executor.d +3 -0
  58. data/build/test/dependencies/Main.d +10 -0
  59. data/build/test/dependencies/MockAdcConductor.d +9 -0
  60. data/build/test/dependencies/MockAdcHardware.d +9 -0
  61. data/build/test/dependencies/MockAdcHardwareConfigurator.d +10 -0
  62. data/build/test/dependencies/MockAdcModel.d +9 -0
  63. data/build/test/dependencies/MockAdcTemperatureSensor.d +10 -0
  64. data/build/test/dependencies/MockExecutor.d +9 -0
  65. data/build/test/dependencies/MockIntrinsicsWrapper.d +9 -0
  66. data/build/test/dependencies/MockModel.d +9 -0
  67. data/build/test/dependencies/MockTaskScheduler.d +9 -0
  68. data/build/test/dependencies/MockTemperatureCalculator.d +10 -0
  69. data/build/test/dependencies/MockTemperatureFilter.d +10 -0
  70. data/build/test/dependencies/MockTimerConductor.d +9 -0
  71. data/build/test/dependencies/MockTimerConfigurator.d +10 -0
  72. data/build/test/dependencies/MockTimerHardware.d +9 -0
  73. data/build/test/dependencies/MockTimerInterruptHandler.d +10 -0
  74. data/build/test/dependencies/MockTimerModel.d +9 -0
  75. data/build/test/dependencies/MockUsartBaudRateRegisterCalculator.d +10 -0
  76. data/build/test/dependencies/MockUsartConductor.d +9 -0
  77. data/build/test/dependencies/MockUsartConfigurator.d +10 -0
  78. data/build/test/dependencies/MockUsartHardware.d +9 -0
  79. data/build/test/dependencies/MockUsartModel.d +9 -0
  80. data/build/test/dependencies/MockUsartPutChar.d +9 -0
  81. data/build/test/dependencies/Model.d +2 -0
  82. data/build/test/dependencies/TaskScheduler.d +2 -0
  83. data/build/test/dependencies/TemperatureCalculator.d +2 -0
  84. data/build/test/dependencies/TemperatureFilter.d +2 -0
  85. data/build/test/dependencies/TestAdcConductor.d +7 -0
  86. data/build/test/dependencies/TestAdcConductor_runner.d +10 -0
  87. data/build/test/dependencies/TestAdcHardware.d +8 -0
  88. data/build/test/dependencies/TestAdcHardware_runner.d +11 -0
  89. data/build/test/dependencies/TestAdcModel.d +10 -0
  90. data/build/test/dependencies/TestAdcModel_runner.d +13 -0
  91. data/build/test/dependencies/TestExecutor.d +14 -0
  92. data/build/test/dependencies/TestExecutor_runner.d +17 -0
  93. data/build/test/dependencies/TestMain.d +5 -0
  94. data/build/test/dependencies/TestMain_runner.d +8 -0
  95. data/build/test/dependencies/TestModel.d +7 -0
  96. data/build/test/dependencies/TestModel_runner.d +10 -0
  97. data/build/test/dependencies/TestTaskScheduler.d +4 -0
  98. data/build/test/dependencies/TestTaskScheduler_runner.d +5 -0
  99. data/build/test/dependencies/TestTemperatureCalculator.d +3 -0
  100. data/build/test/dependencies/TestTemperatureCalculator_runner.d +4 -0
  101. data/build/test/dependencies/TestTemperatureFilter.d +4 -0
  102. data/build/test/dependencies/TestTemperatureFilter_runner.d +5 -0
  103. data/build/test/dependencies/TestTimerConductor.d +10 -0
  104. data/build/test/dependencies/TestTimerConductor_runner.d +13 -0
  105. data/build/test/dependencies/TestTimerHardware.d +6 -0
  106. data/build/test/dependencies/TestTimerHardware_runner.d +9 -0
  107. data/build/test/dependencies/TestTimerIntegrated.d +10 -0
  108. data/build/test/dependencies/TestTimerIntegrated_runner.d +13 -0
  109. data/build/test/dependencies/TestTimerModel.d +6 -0
  110. data/build/test/dependencies/TestTimerModel_runner.d +9 -0
  111. data/build/test/dependencies/TestUsartBaudRateRegisterCalculator.d +5 -0
  112. data/build/test/dependencies/TestUsartBaudRateRegisterCalculator_runner.d +5 -0
  113. data/build/test/dependencies/TestUsartConductor.d +10 -0
  114. data/build/test/dependencies/TestUsartConductor_runner.d +13 -0
  115. data/build/test/dependencies/TestUsartHardware.d +8 -0
  116. data/build/test/dependencies/TestUsartHardware_runner.d +11 -0
  117. data/build/test/dependencies/TestUsartIntegrated.d +15 -0
  118. data/build/test/dependencies/TestUsartIntegrated_runner.d +18 -0
  119. data/build/test/dependencies/TestUsartModel.d +8 -0
  120. data/build/test/dependencies/TestUsartModel_runner.d +11 -0
  121. data/build/test/dependencies/TimerConductor.d +3 -0
  122. data/build/test/dependencies/TimerHardware.d +3 -0
  123. data/build/test/dependencies/TimerModel.d +2 -0
  124. data/build/test/dependencies/UnityHelper.d +5 -0
  125. data/build/test/dependencies/UsartBaudRateRegisterCalculator.d +3 -0
  126. data/build/test/dependencies/UsartConductor.d +3 -0
  127. data/build/test/dependencies/UsartHardware.d +3 -0
  128. data/build/test/dependencies/UsartModel.d +3 -0
  129. data/build/test/dependencies/cmock.d +6 -0
  130. data/build/test/dependencies/unity.d +4 -0
  131. data/build/test/mocks/TestAdcConductor/MockAdcHardware.c +445 -0
  132. data/build/test/mocks/TestAdcConductor/MockAdcHardware.h +91 -0
  133. data/build/test/mocks/TestAdcConductor/MockAdcModel.c +618 -0
  134. data/build/test/mocks/TestAdcConductor/MockAdcModel.h +103 -0
  135. data/build/test/mocks/TestAdcHardware/MockAdcHardwareConfigurator.c +317 -0
  136. data/build/test/mocks/TestAdcHardware/MockAdcHardwareConfigurator.h +79 -0
  137. data/build/test/mocks/TestAdcHardware/MockAdcTemperatureSensor.c +351 -0
  138. data/build/test/mocks/TestAdcHardware/MockAdcTemperatureSensor.h +79 -0
  139. data/build/test/mocks/TestAdcModel/MockTaskScheduler.c +458 -0
  140. data/build/test/mocks/TestAdcModel/MockTaskScheduler.h +91 -0
  141. data/build/test/mocks/TestAdcModel/MockTemperatureCalculator.c +159 -0
  142. data/build/test/mocks/TestAdcModel/MockTemperatureCalculator.h +55 -0
  143. data/build/test/mocks/TestAdcModel/MockTemperatureFilter.c +347 -0
  144. data/build/test/mocks/TestAdcModel/MockTemperatureFilter.h +79 -0
  145. data/build/test/mocks/TestExecutor/MockAdcConductor.c +556 -0
  146. data/build/test/mocks/TestExecutor/MockAdcConductor.h +103 -0
  147. data/build/test/mocks/TestExecutor/MockIntrinsicsWrapper.c +223 -0
  148. data/build/test/mocks/TestExecutor/MockIntrinsicsWrapper.h +67 -0
  149. data/build/test/mocks/TestExecutor/MockModel.c +129 -0
  150. data/build/test/mocks/TestExecutor/MockModel.h +55 -0
  151. data/build/test/mocks/TestExecutor/MockTimerConductor.c +223 -0
  152. data/build/test/mocks/TestExecutor/MockTimerConductor.h +67 -0
  153. data/build/test/mocks/TestExecutor/MockUsartConductor.c +223 -0
  154. data/build/test/mocks/TestExecutor/MockUsartConductor.h +67 -0
  155. data/build/test/mocks/TestMain/MockExecutor.c +240 -0
  156. data/build/test/mocks/TestMain/MockExecutor.h +67 -0
  157. data/build/test/mocks/TestModel/MockTaskScheduler.c +458 -0
  158. data/build/test/mocks/TestModel/MockTaskScheduler.h +91 -0
  159. data/build/test/mocks/TestModel/MockTemperatureFilter.c +347 -0
  160. data/build/test/mocks/TestModel/MockTemperatureFilter.h +79 -0
  161. data/build/test/mocks/TestTimerConductor/MockTimerHardware.c +129 -0
  162. data/build/test/mocks/TestTimerConductor/MockTimerHardware.h +55 -0
  163. data/build/test/mocks/TestTimerConductor/MockTimerInterruptHandler.c +347 -0
  164. data/build/test/mocks/TestTimerConductor/MockTimerInterruptHandler.h +79 -0
  165. data/build/test/mocks/TestTimerConductor/MockTimerModel.c +142 -0
  166. data/build/test/mocks/TestTimerConductor/MockTimerModel.h +55 -0
  167. data/build/test/mocks/TestTimerHardware/MockTimerConfigurator.c +787 -0
  168. data/build/test/mocks/TestTimerHardware/MockTimerConfigurator.h +139 -0
  169. data/build/test/mocks/TestTimerIntegrated/MockTaskScheduler.c +458 -0
  170. data/build/test/mocks/TestTimerIntegrated/MockTaskScheduler.h +91 -0
  171. data/build/test/mocks/TestTimerIntegrated/MockTimerConfigurator.c +787 -0
  172. data/build/test/mocks/TestTimerIntegrated/MockTimerConfigurator.h +139 -0
  173. data/build/test/mocks/TestTimerIntegrated/MockTimerInterruptHandler.c +347 -0
  174. data/build/test/mocks/TestTimerIntegrated/MockTimerInterruptHandler.h +79 -0
  175. data/build/test/mocks/TestTimerModel/MockTaskScheduler.c +458 -0
  176. data/build/test/mocks/TestTimerModel/MockTaskScheduler.h +91 -0
  177. data/build/test/mocks/TestUsartConductor/MockTaskScheduler.c +458 -0
  178. data/build/test/mocks/TestUsartConductor/MockTaskScheduler.h +91 -0
  179. data/build/test/mocks/TestUsartConductor/MockUsartHardware.c +249 -0
  180. data/build/test/mocks/TestUsartConductor/MockUsartHardware.h +67 -0
  181. data/build/test/mocks/TestUsartConductor/MockUsartModel.c +368 -0
  182. data/build/test/mocks/TestUsartConductor/MockUsartModel.h +79 -0
  183. data/build/test/mocks/TestUsartHardware/MockUsartConfigurator.c +612 -0
  184. data/build/test/mocks/TestUsartHardware/MockUsartConfigurator.h +115 -0
  185. data/build/test/mocks/TestUsartHardware/MockUsartPutChar.c +142 -0
  186. data/build/test/mocks/TestUsartHardware/MockUsartPutChar.h +55 -0
  187. data/build/test/mocks/TestUsartIntegrated/MockTaskScheduler.c +458 -0
  188. data/build/test/mocks/TestUsartIntegrated/MockTaskScheduler.h +91 -0
  189. data/build/test/mocks/TestUsartIntegrated/MockTemperatureFilter.c +347 -0
  190. data/build/test/mocks/TestUsartIntegrated/MockTemperatureFilter.h +79 -0
  191. data/build/test/mocks/TestUsartIntegrated/MockUsartBaudRateRegisterCalculator.c +166 -0
  192. data/build/test/mocks/TestUsartIntegrated/MockUsartBaudRateRegisterCalculator.h +55 -0
  193. data/build/test/mocks/TestUsartIntegrated/MockUsartConfigurator.c +612 -0
  194. data/build/test/mocks/TestUsartIntegrated/MockUsartConfigurator.h +115 -0
  195. data/build/test/mocks/TestUsartIntegrated/MockUsartPutChar.c +142 -0
  196. data/build/test/mocks/TestUsartIntegrated/MockUsartPutChar.h +55 -0
  197. data/build/test/mocks/TestUsartModel/MockTemperatureFilter.c +347 -0
  198. data/build/test/mocks/TestUsartModel/MockTemperatureFilter.h +79 -0
  199. data/build/test/mocks/TestUsartModel/MockUsartBaudRateRegisterCalculator.c +166 -0
  200. data/build/test/mocks/TestUsartModel/MockUsartBaudRateRegisterCalculator.h +55 -0
  201. data/build/test/out/TestAdcConductor/AdcConductor.o +0 -0
  202. data/build/test/out/TestAdcConductor/MockAdcHardware.o +0 -0
  203. data/build/test/out/TestAdcConductor/MockAdcModel.o +0 -0
  204. data/build/test/out/TestAdcConductor/TestAdcConductor.o +0 -0
  205. data/build/test/out/TestAdcConductor/TestAdcConductor.out +0 -0
  206. data/build/test/out/TestAdcConductor/TestAdcConductor_runner.o +0 -0
  207. data/build/test/out/TestAdcConductor/UnityHelper.o +0 -0
  208. data/build/test/out/TestAdcConductor/cmock.o +0 -0
  209. data/build/test/out/TestAdcConductor/unity.o +0 -0
  210. data/build/test/out/TestAdcHardware/AdcHardware.o +0 -0
  211. data/build/test/out/TestAdcHardware/MockAdcHardwareConfigurator.o +0 -0
  212. data/build/test/out/TestAdcHardware/MockAdcTemperatureSensor.o +0 -0
  213. data/build/test/out/TestAdcHardware/TestAdcHardware.o +0 -0
  214. data/build/test/out/TestAdcHardware/TestAdcHardware.out +0 -0
  215. data/build/test/out/TestAdcHardware/TestAdcHardware_runner.o +0 -0
  216. data/build/test/out/TestAdcHardware/UnityHelper.o +0 -0
  217. data/build/test/out/TestAdcHardware/cmock.o +0 -0
  218. data/build/test/out/TestAdcHardware/unity.o +0 -0
  219. data/build/test/out/TestAdcModel/AdcModel.o +0 -0
  220. data/build/test/out/TestAdcModel/MockTaskScheduler.o +0 -0
  221. data/build/test/out/TestAdcModel/MockTemperatureCalculator.o +0 -0
  222. data/build/test/out/TestAdcModel/MockTemperatureFilter.o +0 -0
  223. data/build/test/out/TestAdcModel/TestAdcModel.o +0 -0
  224. data/build/test/out/TestAdcModel/TestAdcModel.out +0 -0
  225. data/build/test/out/TestAdcModel/TestAdcModel_runner.o +0 -0
  226. data/build/test/out/TestAdcModel/UnityHelper.o +0 -0
  227. data/build/test/out/TestAdcModel/cmock.o +0 -0
  228. data/build/test/out/TestAdcModel/unity.o +0 -0
  229. data/build/test/out/TestExecutor/Executor.o +0 -0
  230. data/build/test/out/TestExecutor/MockAdcConductor.o +0 -0
  231. data/build/test/out/TestExecutor/MockIntrinsicsWrapper.o +0 -0
  232. data/build/test/out/TestExecutor/MockModel.o +0 -0
  233. data/build/test/out/TestExecutor/MockTimerConductor.o +0 -0
  234. data/build/test/out/TestExecutor/MockUsartConductor.o +0 -0
  235. data/build/test/out/TestExecutor/TestExecutor.o +0 -0
  236. data/build/test/out/TestExecutor/TestExecutor.out +0 -0
  237. data/build/test/out/TestExecutor/TestExecutor_runner.o +0 -0
  238. data/build/test/out/TestExecutor/UnityHelper.o +0 -0
  239. data/build/test/out/TestExecutor/cmock.o +0 -0
  240. data/build/test/out/TestExecutor/unity.o +0 -0
  241. data/build/test/out/TestMain/Main.o +0 -0
  242. data/build/test/out/TestMain/MockExecutor.o +0 -0
  243. data/build/test/out/TestMain/TestMain.o +0 -0
  244. data/build/test/out/TestMain/TestMain.out +0 -0
  245. data/build/test/out/TestMain/TestMain_runner.o +0 -0
  246. data/build/test/out/TestMain/UnityHelper.o +0 -0
  247. data/build/test/out/TestMain/cmock.o +0 -0
  248. data/build/test/out/TestMain/unity.o +0 -0
  249. data/build/test/out/TestModel/MockTaskScheduler.o +0 -0
  250. data/build/test/out/TestModel/MockTemperatureFilter.o +0 -0
  251. data/build/test/out/TestModel/Model.o +0 -0
  252. data/build/test/out/TestModel/TestModel.o +0 -0
  253. data/build/test/out/TestModel/TestModel.out +0 -0
  254. data/build/test/out/TestModel/TestModel_runner.o +0 -0
  255. data/build/test/out/TestModel/UnityHelper.o +0 -0
  256. data/build/test/out/TestModel/cmock.o +0 -0
  257. data/build/test/out/TestModel/unity.o +0 -0
  258. data/build/test/out/TestTaskScheduler/TaskScheduler.o +0 -0
  259. data/build/test/out/TestTaskScheduler/TestTaskScheduler.o +0 -0
  260. data/build/test/out/TestTaskScheduler/TestTaskScheduler.out +0 -0
  261. data/build/test/out/TestTaskScheduler/TestTaskScheduler_runner.o +0 -0
  262. data/build/test/out/TestTaskScheduler/UnityHelper.o +0 -0
  263. data/build/test/out/TestTaskScheduler/unity.o +0 -0
  264. data/build/test/out/TestTemperatureCalculator/TemperatureCalculator.o +0 -0
  265. data/build/test/out/TestTemperatureCalculator/TestTemperatureCalculator.o +0 -0
  266. data/build/test/out/TestTemperatureCalculator/TestTemperatureCalculator.out +0 -0
  267. data/build/test/out/TestTemperatureCalculator/TestTemperatureCalculator_runner.o +0 -0
  268. data/build/test/out/TestTemperatureCalculator/UnityHelper.o +0 -0
  269. data/build/test/out/TestTemperatureCalculator/unity.o +0 -0
  270. data/build/test/out/TestTemperatureFilter/TemperatureFilter.o +0 -0
  271. data/build/test/out/TestTemperatureFilter/TestTemperatureFilter.o +0 -0
  272. data/build/test/out/TestTemperatureFilter/TestTemperatureFilter.out +0 -0
  273. data/build/test/out/TestTemperatureFilter/TestTemperatureFilter_runner.o +0 -0
  274. data/build/test/out/TestTemperatureFilter/UnityHelper.o +0 -0
  275. data/build/test/out/TestTemperatureFilter/unity.o +0 -0
  276. data/build/test/out/TestTimerConductor/MockTimerHardware.o +0 -0
  277. data/build/test/out/TestTimerConductor/MockTimerInterruptHandler.o +0 -0
  278. data/build/test/out/TestTimerConductor/MockTimerModel.o +0 -0
  279. data/build/test/out/TestTimerConductor/TestTimerConductor.o +0 -0
  280. data/build/test/out/TestTimerConductor/TestTimerConductor.out +0 -0
  281. data/build/test/out/TestTimerConductor/TestTimerConductor_runner.o +0 -0
  282. data/build/test/out/TestTimerConductor/TimerConductor.o +0 -0
  283. data/build/test/out/TestTimerConductor/UnityHelper.o +0 -0
  284. data/build/test/out/TestTimerConductor/cmock.o +0 -0
  285. data/build/test/out/TestTimerConductor/unity.o +0 -0
  286. data/build/test/out/TestTimerHardware/MockTimerConfigurator.o +0 -0
  287. data/build/test/out/TestTimerHardware/TestTimerHardware.o +0 -0
  288. data/build/test/out/TestTimerHardware/TestTimerHardware.out +0 -0
  289. data/build/test/out/TestTimerHardware/TestTimerHardware_runner.o +0 -0
  290. data/build/test/out/TestTimerHardware/TimerHardware.o +0 -0
  291. data/build/test/out/TestTimerHardware/UnityHelper.o +0 -0
  292. data/build/test/out/TestTimerHardware/cmock.o +0 -0
  293. data/build/test/out/TestTimerHardware/unity.o +0 -0
  294. data/build/test/out/TestTimerIntegrated/MockTaskScheduler.o +0 -0
  295. data/build/test/out/TestTimerIntegrated/MockTimerConfigurator.o +0 -0
  296. data/build/test/out/TestTimerIntegrated/MockTimerInterruptHandler.o +0 -0
  297. data/build/test/out/TestTimerIntegrated/TestTimerIntegrated.o +0 -0
  298. data/build/test/out/TestTimerIntegrated/TestTimerIntegrated.out +0 -0
  299. data/build/test/out/TestTimerIntegrated/TestTimerIntegrated_runner.o +0 -0
  300. data/build/test/out/TestTimerIntegrated/TimerConductor.o +0 -0
  301. data/build/test/out/TestTimerIntegrated/TimerHardware.o +0 -0
  302. data/build/test/out/TestTimerIntegrated/TimerModel.o +0 -0
  303. data/build/test/out/TestTimerIntegrated/UnityHelper.o +0 -0
  304. data/build/test/out/TestTimerIntegrated/cmock.o +0 -0
  305. data/build/test/out/TestTimerIntegrated/unity.o +0 -0
  306. data/build/test/out/TestTimerModel/MockTaskScheduler.o +0 -0
  307. data/build/test/out/TestTimerModel/TestTimerModel.o +0 -0
  308. data/build/test/out/TestTimerModel/TestTimerModel.out +0 -0
  309. data/build/test/out/TestTimerModel/TestTimerModel_runner.o +0 -0
  310. data/build/test/out/TestTimerModel/TimerModel.o +0 -0
  311. data/build/test/out/TestTimerModel/UnityHelper.o +0 -0
  312. data/build/test/out/TestTimerModel/cmock.o +0 -0
  313. data/build/test/out/TestTimerModel/unity.o +0 -0
  314. data/build/test/out/TestUsartBaudRateRegisterCalculator/TestUsartBaudRateRegisterCalculator.o +0 -0
  315. data/build/test/out/TestUsartBaudRateRegisterCalculator/TestUsartBaudRateRegisterCalculator.out +0 -0
  316. data/build/test/out/TestUsartBaudRateRegisterCalculator/TestUsartBaudRateRegisterCalculator_runner.o +0 -0
  317. data/build/test/out/TestUsartBaudRateRegisterCalculator/UnityHelper.o +0 -0
  318. data/build/test/out/TestUsartBaudRateRegisterCalculator/UsartBaudRateRegisterCalculator.o +0 -0
  319. data/build/test/out/TestUsartBaudRateRegisterCalculator/unity.o +0 -0
  320. data/build/test/out/TestUsartConductor/MockTaskScheduler.o +0 -0
  321. data/build/test/out/TestUsartConductor/MockUsartHardware.o +0 -0
  322. data/build/test/out/TestUsartConductor/MockUsartModel.o +0 -0
  323. data/build/test/out/TestUsartConductor/TestUsartConductor.o +0 -0
  324. data/build/test/out/TestUsartConductor/TestUsartConductor.out +0 -0
  325. data/build/test/out/TestUsartConductor/TestUsartConductor_runner.o +0 -0
  326. data/build/test/out/TestUsartConductor/UnityHelper.o +0 -0
  327. data/build/test/out/TestUsartConductor/UsartConductor.o +0 -0
  328. data/build/test/out/TestUsartConductor/cmock.o +0 -0
  329. data/build/test/out/TestUsartConductor/unity.o +0 -0
  330. data/build/test/out/TestUsartHardware/MockUsartConfigurator.o +0 -0
  331. data/build/test/out/TestUsartHardware/MockUsartPutChar.o +0 -0
  332. data/build/test/out/TestUsartHardware/TestUsartHardware.o +0 -0
  333. data/build/test/out/TestUsartHardware/TestUsartHardware.out +0 -0
  334. data/build/test/out/TestUsartHardware/TestUsartHardware_runner.o +0 -0
  335. data/build/test/out/TestUsartHardware/UnityHelper.o +0 -0
  336. data/build/test/out/TestUsartHardware/UsartHardware.o +0 -0
  337. data/build/test/out/TestUsartHardware/cmock.o +0 -0
  338. data/build/test/out/TestUsartHardware/unity.o +0 -0
  339. data/build/test/out/TestUsartIntegrated/MockTaskScheduler.o +0 -0
  340. data/build/test/out/TestUsartIntegrated/MockTemperatureFilter.o +0 -0
  341. data/build/test/out/TestUsartIntegrated/MockUsartBaudRateRegisterCalculator.o +0 -0
  342. data/build/test/out/TestUsartIntegrated/MockUsartConfigurator.o +0 -0
  343. data/build/test/out/TestUsartIntegrated/MockUsartPutChar.o +0 -0
  344. data/build/test/out/TestUsartIntegrated/TestUsartIntegrated.o +0 -0
  345. data/build/test/out/TestUsartIntegrated/TestUsartIntegrated.out +0 -0
  346. data/build/test/out/TestUsartIntegrated/TestUsartIntegrated_runner.o +0 -0
  347. data/build/test/out/TestUsartIntegrated/UnityHelper.o +0 -0
  348. data/build/test/out/TestUsartIntegrated/UsartConductor.o +0 -0
  349. data/build/test/out/TestUsartIntegrated/UsartHardware.o +0 -0
  350. data/build/test/out/TestUsartIntegrated/UsartModel.o +0 -0
  351. data/build/test/out/TestUsartIntegrated/cmock.o +0 -0
  352. data/build/test/out/TestUsartIntegrated/unity.o +0 -0
  353. data/build/test/out/TestUsartModel/MockTemperatureFilter.o +0 -0
  354. data/build/test/out/TestUsartModel/MockUsartBaudRateRegisterCalculator.o +0 -0
  355. data/build/test/out/TestUsartModel/TestUsartModel.o +0 -0
  356. data/build/test/out/TestUsartModel/TestUsartModel.out +0 -0
  357. data/build/test/out/TestUsartModel/TestUsartModel_runner.o +0 -0
  358. data/build/test/out/TestUsartModel/UnityHelper.o +0 -0
  359. data/build/test/out/TestUsartModel/UsartModel.o +0 -0
  360. data/build/test/out/TestUsartModel/cmock.o +0 -0
  361. data/build/test/out/TestUsartModel/unity.o +0 -0
  362. data/build/test/preprocess/files/TestAdcConductor/AdcHardware.h +16 -0
  363. data/build/test/preprocess/files/TestAdcConductor/AdcModel.h +18 -0
  364. data/build/test/preprocess/files/TestAdcConductor/TestAdcConductor.c +106 -0
  365. data/build/test/preprocess/files/TestAdcHardware/AdcHardwareConfigurator.h +14 -0
  366. data/build/test/preprocess/files/TestAdcHardware/AdcTemperatureSensor.h +14 -0
  367. data/build/test/preprocess/files/TestAdcHardware/TestAdcHardware.c +59 -0
  368. data/build/test/preprocess/files/TestAdcModel/TaskScheduler.h +16 -0
  369. data/build/test/preprocess/files/TestAdcModel/TemperatureCalculator.h +10 -0
  370. data/build/test/preprocess/files/TestAdcModel/TemperatureFilter.h +14 -0
  371. data/build/test/preprocess/files/TestAdcModel/TestAdcModel.c +41 -0
  372. data/build/test/preprocess/files/TestExecutor/AdcConductor.h +18 -0
  373. data/build/test/preprocess/files/TestExecutor/IntrinsicsWrapper.h +10 -0
  374. data/build/test/preprocess/files/TestExecutor/Model.h +10 -0
  375. data/build/test/preprocess/files/TestExecutor/TestExecutor.c +45 -0
  376. data/build/test/preprocess/files/TestExecutor/TimerConductor.h +12 -0
  377. data/build/test/preprocess/files/TestExecutor/UsartConductor.h +10 -0
  378. data/build/test/preprocess/files/TestMain/Executor.h +12 -0
  379. data/build/test/preprocess/files/TestMain/TestMain.c +31 -0
  380. data/build/test/preprocess/files/TestModel/TaskScheduler.h +16 -0
  381. data/build/test/preprocess/files/TestModel/TemperatureFilter.h +14 -0
  382. data/build/test/preprocess/files/TestModel/TestModel.c +24 -0
  383. data/build/test/preprocess/files/TestTaskScheduler/TestTaskScheduler.c +168 -0
  384. data/build/test/preprocess/files/TestTemperatureCalculator/TestTemperatureCalculator.c +52 -0
  385. data/build/test/preprocess/files/TestTemperatureFilter/TestTemperatureFilter.c +163 -0
  386. data/build/test/preprocess/files/TestTimerConductor/TestTimerConductor.c +38 -0
  387. data/build/test/preprocess/files/TestTimerConductor/TimerHardware.h +10 -0
  388. data/build/test/preprocess/files/TestTimerConductor/TimerInterruptHandler.h +14 -0
  389. data/build/test/preprocess/files/TestTimerConductor/TimerModel.h +10 -0
  390. data/build/test/preprocess/files/TestTimerHardware/TestTimerHardware.c +35 -0
  391. data/build/test/preprocess/files/TestTimerHardware/TimerConfigurator.h +24 -0
  392. data/build/test/preprocess/files/TestTimerIntegrated/TaskScheduler.h +16 -0
  393. data/build/test/preprocess/files/TestTimerIntegrated/TestTimerIntegrated.c +54 -0
  394. data/build/test/preprocess/files/TestTimerIntegrated/TimerConfigurator.h +24 -0
  395. data/build/test/preprocess/files/TestTimerIntegrated/TimerInterruptHandler.h +14 -0
  396. data/build/test/preprocess/files/TestTimerModel/TaskScheduler.h +16 -0
  397. data/build/test/preprocess/files/TestTimerModel/TestTimerModel.c +21 -0
  398. data/build/test/preprocess/files/TestUsartBaudRateRegisterCalculator/TestUsartBaudRateRegisterCalculator.c +46 -0
  399. data/build/test/preprocess/files/TestUsartConductor/TaskScheduler.h +16 -0
  400. data/build/test/preprocess/files/TestUsartConductor/TestUsartConductor.c +47 -0
  401. data/build/test/preprocess/files/TestUsartConductor/UsartHardware.h +12 -0
  402. data/build/test/preprocess/files/TestUsartConductor/UsartModel.h +14 -0
  403. data/build/test/preprocess/files/TestUsartHardware/TestUsartHardware.c +47 -0
  404. data/build/test/preprocess/files/TestUsartHardware/UsartConfigurator.h +20 -0
  405. data/build/test/preprocess/files/TestUsartHardware/UsartPutChar.h +10 -0
  406. data/build/test/preprocess/files/TestUsartIntegrated/TaskScheduler.h +16 -0
  407. data/build/test/preprocess/files/TestUsartIntegrated/TemperatureFilter.h +14 -0
  408. data/build/test/preprocess/files/TestUsartIntegrated/TestUsartIntegrated.c +57 -0
  409. data/build/test/preprocess/files/TestUsartIntegrated/UsartBaudRateRegisterCalculator.h +10 -0
  410. data/build/test/preprocess/files/TestUsartIntegrated/UsartConfigurator.h +20 -0
  411. data/build/test/preprocess/files/TestUsartIntegrated/UsartPutChar.h +10 -0
  412. data/build/test/preprocess/files/TestUsartModel/TemperatureFilter.h +14 -0
  413. data/build/test/preprocess/files/TestUsartModel/TestUsartModel.c +64 -0
  414. data/build/test/preprocess/files/TestUsartModel/UsartBaudRateRegisterCalculator.h +10 -0
  415. data/build/test/preprocess/includes/TestAdcConductor/TestAdcConductor.c.yml +7 -0
  416. data/build/test/preprocess/includes/TestAdcHardware/TestAdcHardware.c.yml +6 -0
  417. data/build/test/preprocess/includes/TestAdcModel/TestAdcModel.c.yml +7 -0
  418. data/build/test/preprocess/includes/TestExecutor/TestExecutor.c.yml +9 -0
  419. data/build/test/preprocess/includes/TestMain/TestMain.c.yml +5 -0
  420. data/build/test/preprocess/includes/TestModel/TestModel.c.yml +6 -0
  421. data/build/test/preprocess/includes/TestTaskScheduler/TestTaskScheduler.c.yml +4 -0
  422. data/build/test/preprocess/includes/TestTemperatureCalculator/TestTemperatureCalculator.c.yml +3 -0
  423. data/build/test/preprocess/includes/TestTemperatureFilter/TestTemperatureFilter.c.yml +4 -0
  424. data/build/test/preprocess/includes/TestTimerConductor/TestTimerConductor.c.yml +7 -0
  425. data/build/test/preprocess/includes/TestTimerHardware/TestTimerHardware.c.yml +5 -0
  426. data/build/test/preprocess/includes/TestTimerIntegrated/TestTimerIntegrated.c.yml +9 -0
  427. data/build/test/preprocess/includes/TestTimerModel/TaskScheduler.h.yml +2 -0
  428. data/build/test/preprocess/includes/TestTimerModel/TestTimerModel.c.yml +5 -0
  429. data/build/test/preprocess/includes/TestUsartBaudRateRegisterCalculator/TestUsartBaudRateRegisterCalculator.c.yml +4 -0
  430. data/build/test/preprocess/includes/TestUsartConductor/TaskScheduler.h.yml +2 -0
  431. data/build/test/preprocess/includes/TestUsartConductor/TestUsartConductor.c.yml +7 -0
  432. data/build/test/preprocess/includes/TestUsartConductor/UsartHardware.h.yml +2 -0
  433. data/build/test/preprocess/includes/TestUsartConductor/UsartModel.h.yml +2 -0
  434. data/build/test/preprocess/includes/TestUsartHardware/TestUsartHardware.c.yml +6 -0
  435. data/build/test/preprocess/includes/TestUsartHardware/UsartConfigurator.h.yml +2 -0
  436. data/build/test/preprocess/includes/TestUsartHardware/UsartPutChar.h.yml +2 -0
  437. data/build/test/preprocess/includes/TestUsartIntegrated/TaskScheduler.h.yml +2 -0
  438. data/build/test/preprocess/includes/TestUsartIntegrated/TemperatureFilter.h.yml +2 -0
  439. data/build/test/preprocess/includes/TestUsartIntegrated/TestUsartIntegrated.c.yml +12 -0
  440. data/build/test/preprocess/includes/TestUsartIntegrated/UsartBaudRateRegisterCalculator.h.yml +2 -0
  441. data/build/test/preprocess/includes/TestUsartIntegrated/UsartConfigurator.h.yml +2 -0
  442. data/build/test/preprocess/includes/TestUsartIntegrated/UsartPutChar.h.yml +2 -0
  443. data/build/test/preprocess/includes/TestUsartModel/TemperatureFilter.h.yml +2 -0
  444. data/build/test/preprocess/includes/TestUsartModel/TestUsartModel.c.yml +7 -0
  445. data/build/test/preprocess/includes/TestUsartModel/UsartBaudRateRegisterCalculator.h.yml +2 -0
  446. data/build/test/results/TestAdcConductor.pass +47 -0
  447. data/build/test/results/TestAdcHardware.pass +31 -0
  448. data/build/test/results/TestAdcModel.pass +27 -0
  449. data/build/test/results/TestExecutor.pass +23 -0
  450. data/build/test/results/TestMain.pass +19 -0
  451. data/build/test/results/TestModel.pass +19 -0
  452. data/build/test/results/TestTaskScheduler.pass +47 -0
  453. data/build/test/results/TestTemperatureCalculator.pass +23 -0
  454. data/build/test/results/TestTemperatureFilter.pass +31 -0
  455. data/build/test/results/TestTimerConductor.pass +23 -0
  456. data/build/test/results/TestTimerHardware.pass +19 -0
  457. data/build/test/results/TestTimerIntegrated.pass +23 -0
  458. data/build/test/results/TestTimerModel.pass +19 -0
  459. data/build/test/results/TestUsartBaudRateRegisterCalculator.pass +19 -0
  460. data/build/test/results/TestUsartConductor.pass +27 -0
  461. data/build/test/results/TestUsartHardware.pass +23 -0
  462. data/build/test/results/TestUsartIntegrated.pass +23 -0
  463. data/build/test/results/TestUsartModel.pass +31 -0
  464. data/build/test/runners/TestAdcConductor_runner.c +109 -0
  465. data/build/test/runners/TestAdcHardware_runner.c +100 -0
  466. data/build/test/runners/TestAdcModel_runner.c +102 -0
  467. data/build/test/runners/TestExecutor_runner.c +108 -0
  468. data/build/test/runners/TestMain_runner.c +90 -0
  469. data/build/test/runners/TestModel_runner.c +94 -0
  470. data/build/test/runners/TestTaskScheduler_runner.c +98 -0
  471. data/build/test/runners/TestTemperatureCalculator_runner.c +85 -0
  472. data/build/test/runners/TestTemperatureFilter_runner.c +90 -0
  473. data/build/test/runners/TestTimerConductor_runner.c +100 -0
  474. data/build/test/runners/TestTimerHardware_runner.c +90 -0
  475. data/build/test/runners/TestTimerIntegrated_runner.c +102 -0
  476. data/build/test/runners/TestTimerModel_runner.c +90 -0
  477. data/build/test/runners/TestUsartBaudRateRegisterCalculator_runner.c +84 -0
  478. data/build/test/runners/TestUsartConductor_runner.c +102 -0
  479. data/build/test/runners/TestUsartHardware_runner.c +96 -0
  480. data/build/test/runners/TestUsartIntegrated_runner.c +111 -0
  481. data/build/test/runners/TestUsartModel_runner.c +101 -0
  482. data/build/vendor/cmock/src/cmock.c +231 -0
  483. data/build/vendor/cmock/src/cmock.h +47 -0
  484. data/build/vendor/cmock/src/cmock_internals.h +91 -0
  485. data/build/vendor/cmock/src/meson.build +12 -0
  486. data/build/vendor/unity/src/meson.build +17 -0
  487. data/build/vendor/unity/src/unity.c +2501 -0
  488. data/build/vendor/unity/src/unity.h +698 -0
  489. data/build/vendor/unity/src/unity_internals.h +1183 -0
  490. data/ceedling.gemspec +21 -10
  491. data/ceedling.sublime-workspace +5947 -253
  492. data/config/test_environment.rb +6 -2
  493. data/docs/BreakingChanges.md +250 -0
  494. data/docs/CODE_OF_CONDUCT.md +138 -0
  495. data/docs/CONTRIBUTING.md +250 -0
  496. data/docs/CeedlingPacket.md +5002 -1614
  497. data/docs/CeedlingUpgrade.md +1 -1
  498. data/docs/Changelog.md +474 -0
  499. data/docs/PluginDevelopmentGuide.md +764 -0
  500. data/docs/ReleaseNotes.md +345 -0
  501. data/examples/temp_sensor/README.md +18 -0
  502. data/examples/temp_sensor/build/test/dependencies/AdcConductor.d +2 -2
  503. data/examples/temp_sensor/build/test/dependencies/AdcHardware.d +3 -3
  504. data/examples/temp_sensor/build/test/dependencies/AdcModel.d +3 -3
  505. data/examples/temp_sensor/build/test/dependencies/Executor.d +3 -3
  506. data/examples/temp_sensor/build/test/dependencies/Main.d +10 -11
  507. data/examples/temp_sensor/build/test/dependencies/MockAdcConductor.d +7 -6
  508. data/examples/temp_sensor/build/test/dependencies/MockAdcHardware.d +7 -6
  509. data/examples/temp_sensor/build/test/dependencies/MockAdcHardwareConfigurator.d +8 -8
  510. data/examples/temp_sensor/build/test/dependencies/MockAdcModel.d +7 -6
  511. data/examples/temp_sensor/build/test/dependencies/MockAdcTemperatureSensor.d +8 -8
  512. data/examples/temp_sensor/build/test/dependencies/MockExecutor.d +7 -6
  513. data/examples/temp_sensor/build/test/dependencies/MockIntrinsicsWrapper.d +7 -7
  514. data/examples/temp_sensor/build/test/dependencies/MockModel.d +7 -6
  515. data/examples/temp_sensor/build/test/dependencies/MockTaskScheduler.d +7 -7
  516. data/examples/temp_sensor/build/test/dependencies/MockTemperatureCalculator.d +8 -8
  517. data/examples/temp_sensor/build/test/dependencies/MockTemperatureFilter.d +8 -8
  518. data/examples/temp_sensor/build/test/dependencies/MockTimerConductor.d +7 -7
  519. data/examples/temp_sensor/build/test/dependencies/MockTimerConfigurator.d +8 -8
  520. data/examples/temp_sensor/build/test/dependencies/MockTimerHardware.d +7 -7
  521. data/examples/temp_sensor/build/test/dependencies/MockTimerInterruptHandler.d +8 -8
  522. data/examples/temp_sensor/build/test/dependencies/MockTimerModel.d +7 -6
  523. data/examples/temp_sensor/build/test/dependencies/MockUsartBaudRateRegisterCalculator.d +8 -8
  524. data/examples/temp_sensor/build/test/dependencies/MockUsartConductor.d +7 -7
  525. data/examples/temp_sensor/build/test/dependencies/MockUsartConfigurator.d +8 -8
  526. data/examples/temp_sensor/build/test/dependencies/MockUsartHardware.d +7 -7
  527. data/examples/temp_sensor/build/test/dependencies/MockUsartModel.d +7 -6
  528. data/examples/temp_sensor/build/test/dependencies/MockUsartPutChar.d +7 -6
  529. data/examples/temp_sensor/build/test/dependencies/Model.d +2 -2
  530. data/examples/temp_sensor/build/test/dependencies/TaskScheduler.d +2 -2
  531. data/examples/temp_sensor/build/test/dependencies/TemperatureCalculator.d +2 -2
  532. data/examples/temp_sensor/build/test/dependencies/TemperatureFilter.d +2 -2
  533. data/examples/temp_sensor/build/test/dependencies/TestAdcConductor.d +6 -6
  534. data/examples/temp_sensor/build/test/dependencies/TestAdcConductor_runner.d +7 -8
  535. data/examples/temp_sensor/build/test/dependencies/TestAdcHardware.d +8 -7
  536. data/examples/temp_sensor/build/test/dependencies/TestAdcHardware_runner.d +9 -9
  537. data/examples/temp_sensor/build/test/dependencies/TestAdcModel.d +9 -7
  538. data/examples/temp_sensor/build/test/dependencies/TestAdcModel_runner.d +10 -10
  539. data/examples/temp_sensor/build/test/dependencies/TestExecutor.d +10 -8
  540. data/examples/temp_sensor/build/test/dependencies/TestExecutor_runner.d +11 -11
  541. data/examples/temp_sensor/build/test/dependencies/TestMain.d +4 -4
  542. data/examples/temp_sensor/build/test/dependencies/TestMain_runner.d +6 -6
  543. data/examples/temp_sensor/build/test/dependencies/TestModel.d +7 -6
  544. data/examples/temp_sensor/build/test/dependencies/TestModel_runner.d +8 -8
  545. data/examples/temp_sensor/build/test/dependencies/TestTaskScheduler.d +4 -4
  546. data/examples/temp_sensor/build/test/dependencies/TestTaskScheduler_runner.d +4 -4
  547. data/examples/temp_sensor/build/test/dependencies/TestTemperatureCalculator.d +3 -5
  548. data/examples/temp_sensor/build/test/dependencies/TestTemperatureCalculator_runner.d +4 -4
  549. data/examples/temp_sensor/build/test/dependencies/TestTemperatureFilter.d +4 -4
  550. data/examples/temp_sensor/build/test/dependencies/TestTemperatureFilter_runner.d +4 -4
  551. data/examples/temp_sensor/build/test/dependencies/TestTimerConductor.d +9 -7
  552. data/examples/temp_sensor/build/test/dependencies/TestTimerConductor_runner.d +10 -10
  553. data/examples/temp_sensor/build/test/dependencies/TestTimerHardware.d +5 -5
  554. data/examples/temp_sensor/build/test/dependencies/TestTimerHardware_runner.d +7 -8
  555. data/examples/temp_sensor/build/test/dependencies/TestTimerIntegrated.d +10 -0
  556. data/examples/temp_sensor/build/test/dependencies/TestTimerIntegrated_runner.d +12 -0
  557. data/examples/temp_sensor/build/test/dependencies/TestTimerModel.d +5 -5
  558. data/examples/temp_sensor/build/test/dependencies/TestTimerModel_runner.d +7 -7
  559. data/examples/temp_sensor/build/test/dependencies/TestUsartBaudRateRegisterCalculator.d +4 -5
  560. data/examples/temp_sensor/build/test/dependencies/TestUsartBaudRateRegisterCalculator_runner.d +4 -4
  561. data/examples/temp_sensor/build/test/dependencies/TestUsartConductor.d +10 -7
  562. data/examples/temp_sensor/build/test/dependencies/TestUsartConductor_runner.d +11 -9
  563. data/examples/temp_sensor/build/test/dependencies/TestUsartHardware.d +6 -6
  564. data/examples/temp_sensor/build/test/dependencies/TestUsartHardware_runner.d +8 -8
  565. data/examples/temp_sensor/build/test/dependencies/TestUsartIntegrated.d +15 -0
  566. data/examples/temp_sensor/build/test/dependencies/TestUsartIntegrated_runner.d +16 -0
  567. data/examples/temp_sensor/build/test/dependencies/TestUsartModel.d +7 -7
  568. data/examples/temp_sensor/build/test/dependencies/TestUsartModel_runner.d +9 -9
  569. data/examples/temp_sensor/build/test/dependencies/TimerConductor.d +3 -3
  570. data/examples/temp_sensor/build/test/dependencies/TimerHardware.d +2 -2
  571. data/examples/temp_sensor/build/test/dependencies/TimerModel.d +2 -2
  572. data/examples/temp_sensor/build/test/dependencies/UnityHelper.d +4 -4
  573. data/examples/temp_sensor/build/test/dependencies/UsartBaudRateRegisterCalculator.d +3 -3
  574. data/examples/temp_sensor/build/test/dependencies/UsartConductor.d +3 -3
  575. data/examples/temp_sensor/build/test/dependencies/UsartHardware.d +3 -2
  576. data/examples/temp_sensor/build/test/dependencies/UsartModel.d +3 -3
  577. data/examples/temp_sensor/build/test/dependencies/cmock.d +3 -6
  578. data/examples/temp_sensor/build/test/dependencies/unity.d +2 -4
  579. data/examples/temp_sensor/build/test/mocks/TestAdcConductor/MockAdcHardware.c +445 -0
  580. data/examples/temp_sensor/build/test/mocks/TestAdcConductor/MockAdcHardware.h +91 -0
  581. data/examples/temp_sensor/build/test/mocks/TestAdcConductor/MockAdcModel.c +618 -0
  582. data/examples/temp_sensor/build/test/mocks/TestAdcConductor/MockAdcModel.h +103 -0
  583. data/examples/temp_sensor/build/test/mocks/TestAdcHardware/MockAdcHardwareConfigurator.c +317 -0
  584. data/examples/temp_sensor/build/test/mocks/TestAdcHardware/MockAdcHardwareConfigurator.h +79 -0
  585. data/examples/temp_sensor/build/test/mocks/TestAdcHardware/MockAdcTemperatureSensor.c +351 -0
  586. data/examples/temp_sensor/build/test/mocks/TestAdcHardware/MockAdcTemperatureSensor.h +79 -0
  587. data/examples/temp_sensor/build/test/mocks/TestAdcModel/MockTaskScheduler.c +458 -0
  588. data/examples/temp_sensor/build/test/mocks/TestAdcModel/MockTaskScheduler.h +91 -0
  589. data/examples/temp_sensor/build/test/mocks/TestAdcModel/MockTemperatureCalculator.c +159 -0
  590. data/examples/temp_sensor/build/test/mocks/TestAdcModel/MockTemperatureCalculator.h +55 -0
  591. data/examples/temp_sensor/build/test/mocks/TestAdcModel/MockTemperatureFilter.c +347 -0
  592. data/examples/temp_sensor/build/test/mocks/TestAdcModel/MockTemperatureFilter.h +79 -0
  593. data/examples/temp_sensor/build/test/mocks/TestExecutor/MockAdcConductor.c +556 -0
  594. data/examples/temp_sensor/build/test/mocks/TestExecutor/MockAdcConductor.h +103 -0
  595. data/examples/temp_sensor/build/test/mocks/TestExecutor/MockIntrinsicsWrapper.c +223 -0
  596. data/examples/temp_sensor/build/test/mocks/TestExecutor/MockIntrinsicsWrapper.h +67 -0
  597. data/examples/temp_sensor/build/test/mocks/TestExecutor/MockModel.c +129 -0
  598. data/examples/temp_sensor/build/test/mocks/TestExecutor/MockModel.h +55 -0
  599. data/examples/temp_sensor/build/test/mocks/TestExecutor/MockTimerConductor.c +223 -0
  600. data/examples/temp_sensor/build/test/mocks/TestExecutor/MockTimerConductor.h +67 -0
  601. data/examples/temp_sensor/build/test/mocks/TestExecutor/MockUsartConductor.c +223 -0
  602. data/examples/temp_sensor/build/test/mocks/TestExecutor/MockUsartConductor.h +67 -0
  603. data/examples/temp_sensor/build/test/mocks/TestMain/MockExecutor.c +240 -0
  604. data/examples/temp_sensor/build/test/mocks/TestMain/MockExecutor.h +67 -0
  605. data/examples/temp_sensor/build/test/mocks/TestModel/MockTaskScheduler.c +458 -0
  606. data/examples/temp_sensor/build/test/mocks/TestModel/MockTaskScheduler.h +91 -0
  607. data/examples/temp_sensor/build/test/mocks/TestModel/MockTemperatureFilter.c +347 -0
  608. data/examples/temp_sensor/build/test/mocks/TestModel/MockTemperatureFilter.h +79 -0
  609. data/examples/temp_sensor/build/test/mocks/TestTimerConductor/MockTimerHardware.c +129 -0
  610. data/examples/temp_sensor/build/test/mocks/TestTimerConductor/MockTimerHardware.h +55 -0
  611. data/examples/temp_sensor/build/test/mocks/TestTimerConductor/MockTimerInterruptHandler.c +347 -0
  612. data/examples/temp_sensor/build/test/mocks/TestTimerConductor/MockTimerInterruptHandler.h +79 -0
  613. data/examples/temp_sensor/build/test/mocks/TestTimerConductor/MockTimerModel.c +142 -0
  614. data/examples/temp_sensor/build/test/mocks/TestTimerConductor/MockTimerModel.h +55 -0
  615. data/examples/temp_sensor/build/test/mocks/TestTimerHardware/MockTimerConfigurator.c +787 -0
  616. data/examples/temp_sensor/build/test/mocks/TestTimerHardware/MockTimerConfigurator.h +139 -0
  617. data/examples/temp_sensor/build/test/mocks/TestTimerIntegrated/MockTaskScheduler.c +458 -0
  618. data/examples/temp_sensor/build/test/mocks/TestTimerIntegrated/MockTaskScheduler.h +91 -0
  619. data/examples/temp_sensor/build/test/mocks/TestTimerIntegrated/MockTimerConfigurator.c +787 -0
  620. data/examples/temp_sensor/build/test/mocks/TestTimerIntegrated/MockTimerConfigurator.h +139 -0
  621. data/examples/temp_sensor/build/test/mocks/TestTimerIntegrated/MockTimerInterruptHandler.c +347 -0
  622. data/examples/temp_sensor/build/test/mocks/TestTimerIntegrated/MockTimerInterruptHandler.h +79 -0
  623. data/examples/temp_sensor/build/test/mocks/TestTimerModel/MockTaskScheduler.c +458 -0
  624. data/examples/temp_sensor/build/test/mocks/TestTimerModel/MockTaskScheduler.h +91 -0
  625. data/examples/temp_sensor/build/test/mocks/TestUsartConductor/MockTaskScheduler.c +458 -0
  626. data/examples/temp_sensor/build/test/mocks/TestUsartConductor/MockTaskScheduler.h +91 -0
  627. data/examples/temp_sensor/build/test/mocks/TestUsartConductor/MockUsartHardware.c +249 -0
  628. data/examples/temp_sensor/build/test/mocks/TestUsartConductor/MockUsartHardware.h +67 -0
  629. data/examples/temp_sensor/build/test/mocks/TestUsartConductor/MockUsartModel.c +368 -0
  630. data/examples/temp_sensor/build/test/mocks/TestUsartConductor/MockUsartModel.h +79 -0
  631. data/examples/temp_sensor/build/test/mocks/TestUsartHardware/MockUsartConfigurator.c +612 -0
  632. data/examples/temp_sensor/build/test/mocks/TestUsartHardware/MockUsartConfigurator.h +115 -0
  633. data/examples/temp_sensor/build/test/mocks/TestUsartHardware/MockUsartPutChar.c +142 -0
  634. data/examples/temp_sensor/build/test/mocks/TestUsartHardware/MockUsartPutChar.h +55 -0
  635. data/examples/temp_sensor/build/test/mocks/TestUsartIntegrated/MockTaskScheduler.c +458 -0
  636. data/examples/temp_sensor/build/test/mocks/TestUsartIntegrated/MockTaskScheduler.h +91 -0
  637. data/examples/temp_sensor/build/test/mocks/TestUsartIntegrated/MockTemperatureFilter.c +347 -0
  638. data/examples/temp_sensor/build/test/mocks/TestUsartIntegrated/MockTemperatureFilter.h +79 -0
  639. data/examples/temp_sensor/build/test/mocks/TestUsartIntegrated/MockUsartBaudRateRegisterCalculator.c +166 -0
  640. data/examples/temp_sensor/build/test/mocks/TestUsartIntegrated/MockUsartBaudRateRegisterCalculator.h +55 -0
  641. data/examples/temp_sensor/build/test/mocks/TestUsartIntegrated/MockUsartConfigurator.c +612 -0
  642. data/examples/temp_sensor/build/test/mocks/TestUsartIntegrated/MockUsartConfigurator.h +115 -0
  643. data/examples/temp_sensor/build/test/mocks/TestUsartIntegrated/MockUsartPutChar.c +142 -0
  644. data/examples/temp_sensor/build/test/mocks/TestUsartIntegrated/MockUsartPutChar.h +55 -0
  645. data/examples/temp_sensor/build/test/mocks/TestUsartModel/MockTemperatureFilter.c +347 -0
  646. data/examples/temp_sensor/build/test/mocks/TestUsartModel/MockTemperatureFilter.h +79 -0
  647. data/examples/temp_sensor/build/test/mocks/TestUsartModel/MockUsartBaudRateRegisterCalculator.c +166 -0
  648. data/examples/temp_sensor/build/test/mocks/TestUsartModel/MockUsartBaudRateRegisterCalculator.h +55 -0
  649. data/examples/temp_sensor/build/test/out/TestAdcConductor/AdcConductor.o +0 -0
  650. data/examples/temp_sensor/build/test/out/TestAdcConductor/MockAdcHardware.o +0 -0
  651. data/examples/temp_sensor/build/test/out/TestAdcConductor/MockAdcModel.o +0 -0
  652. data/examples/temp_sensor/build/test/out/TestAdcConductor/TestAdcConductor.o +0 -0
  653. data/examples/temp_sensor/build/test/out/TestAdcConductor/TestAdcConductor.out +0 -0
  654. data/examples/temp_sensor/build/test/out/TestAdcConductor/TestAdcConductor_runner.o +0 -0
  655. data/examples/temp_sensor/build/test/out/TestAdcConductor/UnityHelper.o +0 -0
  656. data/examples/temp_sensor/build/test/out/TestAdcConductor/cmock.o +0 -0
  657. data/examples/temp_sensor/build/test/out/TestAdcConductor/unity.o +0 -0
  658. data/examples/temp_sensor/build/test/out/TestAdcHardware/AdcHardware.o +0 -0
  659. data/examples/temp_sensor/build/test/out/TestAdcHardware/MockAdcHardwareConfigurator.o +0 -0
  660. data/examples/temp_sensor/build/test/out/TestAdcHardware/MockAdcTemperatureSensor.o +0 -0
  661. data/examples/temp_sensor/build/test/out/TestAdcHardware/TestAdcHardware.o +0 -0
  662. data/examples/temp_sensor/build/test/out/TestAdcHardware/TestAdcHardware.out +0 -0
  663. data/examples/temp_sensor/build/test/out/TestAdcHardware/TestAdcHardware_runner.o +0 -0
  664. data/examples/temp_sensor/build/test/out/TestAdcHardware/UnityHelper.o +0 -0
  665. data/examples/temp_sensor/build/test/out/TestAdcHardware/cmock.o +0 -0
  666. data/examples/temp_sensor/build/test/out/TestAdcHardware/unity.o +0 -0
  667. data/examples/temp_sensor/build/test/out/TestAdcModel/AdcModel.o +0 -0
  668. data/examples/temp_sensor/build/test/out/TestAdcModel/MockTaskScheduler.o +0 -0
  669. data/examples/temp_sensor/build/test/out/TestAdcModel/MockTemperatureCalculator.o +0 -0
  670. data/examples/temp_sensor/build/test/out/TestAdcModel/MockTemperatureFilter.o +0 -0
  671. data/examples/temp_sensor/build/test/out/TestAdcModel/TestAdcModel.o +0 -0
  672. data/examples/temp_sensor/build/test/out/TestAdcModel/TestAdcModel.out +0 -0
  673. data/examples/temp_sensor/build/test/out/TestAdcModel/TestAdcModel_runner.o +0 -0
  674. data/examples/temp_sensor/build/test/out/TestAdcModel/UnityHelper.o +0 -0
  675. data/examples/temp_sensor/build/test/out/TestAdcModel/cmock.o +0 -0
  676. data/examples/temp_sensor/build/test/out/TestAdcModel/unity.o +0 -0
  677. data/examples/temp_sensor/build/test/out/TestExecutor/Executor.o +0 -0
  678. data/examples/temp_sensor/build/test/out/TestExecutor/MockAdcConductor.o +0 -0
  679. data/examples/temp_sensor/build/test/out/TestExecutor/MockIntrinsicsWrapper.o +0 -0
  680. data/examples/temp_sensor/build/test/out/TestExecutor/MockModel.o +0 -0
  681. data/examples/temp_sensor/build/test/out/TestExecutor/MockTimerConductor.o +0 -0
  682. data/examples/temp_sensor/build/test/out/TestExecutor/MockUsartConductor.o +0 -0
  683. data/examples/temp_sensor/build/test/out/TestExecutor/TestExecutor.o +0 -0
  684. data/examples/temp_sensor/build/test/out/TestExecutor/TestExecutor.out +0 -0
  685. data/examples/temp_sensor/build/test/out/TestExecutor/TestExecutor_runner.o +0 -0
  686. data/examples/temp_sensor/build/test/out/TestExecutor/UnityHelper.o +0 -0
  687. data/examples/temp_sensor/build/test/out/TestExecutor/cmock.o +0 -0
  688. data/examples/temp_sensor/build/test/out/TestExecutor/unity.o +0 -0
  689. data/examples/temp_sensor/build/test/out/TestMain/Main.o +0 -0
  690. data/examples/temp_sensor/build/test/out/TestMain/MockExecutor.o +0 -0
  691. data/examples/temp_sensor/build/test/out/TestMain/TestMain.o +0 -0
  692. data/examples/temp_sensor/build/test/out/TestMain/TestMain.out +0 -0
  693. data/examples/temp_sensor/build/test/out/TestMain/TestMain_runner.o +0 -0
  694. data/examples/temp_sensor/build/test/out/TestMain/UnityHelper.o +0 -0
  695. data/examples/temp_sensor/build/test/out/TestMain/cmock.o +0 -0
  696. data/examples/temp_sensor/build/test/out/TestMain/unity.o +0 -0
  697. data/examples/temp_sensor/build/test/out/TestModel/MockTaskScheduler.o +0 -0
  698. data/examples/temp_sensor/build/test/out/TestModel/MockTemperatureFilter.o +0 -0
  699. data/examples/temp_sensor/build/test/out/TestModel/Model.o +0 -0
  700. data/examples/temp_sensor/build/test/out/TestModel/TestModel.o +0 -0
  701. data/examples/temp_sensor/build/test/out/TestModel/TestModel.out +0 -0
  702. data/examples/temp_sensor/build/test/out/TestModel/TestModel_runner.o +0 -0
  703. data/examples/temp_sensor/build/test/out/TestModel/UnityHelper.o +0 -0
  704. data/examples/temp_sensor/build/test/out/TestModel/cmock.o +0 -0
  705. data/examples/temp_sensor/build/test/out/TestModel/unity.o +0 -0
  706. data/examples/temp_sensor/build/test/out/TestTaskScheduler/TaskScheduler.o +0 -0
  707. data/examples/temp_sensor/build/test/out/TestTaskScheduler/TestTaskScheduler.o +0 -0
  708. data/examples/temp_sensor/build/test/out/TestTaskScheduler/TestTaskScheduler.out +0 -0
  709. data/examples/temp_sensor/build/test/out/TestTaskScheduler/TestTaskScheduler_runner.o +0 -0
  710. data/examples/temp_sensor/build/test/out/TestTaskScheduler/UnityHelper.o +0 -0
  711. data/examples/temp_sensor/build/test/out/TestTaskScheduler/unity.o +0 -0
  712. data/examples/temp_sensor/build/test/out/TestTemperatureCalculator/TemperatureCalculator.o +0 -0
  713. data/examples/temp_sensor/build/test/out/TestTemperatureCalculator/TestTemperatureCalculator.o +0 -0
  714. data/examples/temp_sensor/build/test/out/TestTemperatureCalculator/TestTemperatureCalculator.out +0 -0
  715. data/examples/temp_sensor/build/test/out/TestTemperatureCalculator/TestTemperatureCalculator_runner.o +0 -0
  716. data/examples/temp_sensor/build/test/out/TestTemperatureCalculator/UnityHelper.o +0 -0
  717. data/examples/temp_sensor/build/test/out/TestTemperatureCalculator/unity.o +0 -0
  718. data/examples/temp_sensor/build/test/out/TestTemperatureFilter/TemperatureFilter.o +0 -0
  719. data/examples/temp_sensor/build/test/out/TestTemperatureFilter/TestTemperatureFilter.o +0 -0
  720. data/examples/temp_sensor/build/test/out/TestTemperatureFilter/TestTemperatureFilter.out +0 -0
  721. data/examples/temp_sensor/build/test/out/TestTemperatureFilter/TestTemperatureFilter_runner.o +0 -0
  722. data/examples/temp_sensor/build/test/out/TestTemperatureFilter/UnityHelper.o +0 -0
  723. data/examples/temp_sensor/build/test/out/TestTemperatureFilter/unity.o +0 -0
  724. data/examples/temp_sensor/build/test/out/TestTimerConductor/MockTimerHardware.o +0 -0
  725. data/examples/temp_sensor/build/test/out/TestTimerConductor/MockTimerInterruptHandler.o +0 -0
  726. data/examples/temp_sensor/build/test/out/TestTimerConductor/MockTimerModel.o +0 -0
  727. data/examples/temp_sensor/build/test/out/TestTimerConductor/TestTimerConductor.o +0 -0
  728. data/examples/temp_sensor/build/test/out/TestTimerConductor/TestTimerConductor.out +0 -0
  729. data/examples/temp_sensor/build/test/out/TestTimerConductor/TestTimerConductor_runner.o +0 -0
  730. data/examples/temp_sensor/build/test/out/TestTimerConductor/TimerConductor.o +0 -0
  731. data/examples/temp_sensor/build/test/out/TestTimerConductor/UnityHelper.o +0 -0
  732. data/examples/temp_sensor/build/test/out/TestTimerConductor/cmock.o +0 -0
  733. data/examples/temp_sensor/build/test/out/TestTimerConductor/unity.o +0 -0
  734. data/examples/temp_sensor/build/test/out/TestTimerHardware/MockTimerConfigurator.o +0 -0
  735. data/examples/temp_sensor/build/test/out/TestTimerHardware/TestTimerHardware.o +0 -0
  736. data/examples/temp_sensor/build/test/out/TestTimerHardware/TestTimerHardware.out +0 -0
  737. data/examples/temp_sensor/build/test/out/TestTimerHardware/TestTimerHardware_runner.o +0 -0
  738. data/examples/temp_sensor/build/test/out/TestTimerHardware/TimerHardware.o +0 -0
  739. data/examples/temp_sensor/build/test/out/TestTimerHardware/UnityHelper.o +0 -0
  740. data/examples/temp_sensor/build/test/out/TestTimerHardware/cmock.o +0 -0
  741. data/examples/temp_sensor/build/test/out/TestTimerHardware/unity.o +0 -0
  742. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/MockTaskScheduler.o +0 -0
  743. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/MockTimerConfigurator.o +0 -0
  744. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/MockTimerInterruptHandler.o +0 -0
  745. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/TestTimerIntegrated.o +0 -0
  746. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/TestTimerIntegrated.out +0 -0
  747. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/TestTimerIntegrated_runner.o +0 -0
  748. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/TimerConductor.o +0 -0
  749. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/TimerHardware.o +0 -0
  750. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/TimerModel.o +0 -0
  751. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/UnityHelper.o +0 -0
  752. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/cmock.o +0 -0
  753. data/examples/temp_sensor/build/test/out/TestTimerIntegrated/unity.o +0 -0
  754. data/examples/temp_sensor/build/test/out/TestTimerModel/MockTaskScheduler.o +0 -0
  755. data/examples/temp_sensor/build/test/out/TestTimerModel/TestTimerModel.o +0 -0
  756. data/examples/temp_sensor/build/test/out/TestTimerModel/TestTimerModel.out +0 -0
  757. data/examples/temp_sensor/build/test/out/TestTimerModel/TestTimerModel_runner.o +0 -0
  758. data/examples/temp_sensor/build/test/out/TestTimerModel/TimerModel.o +0 -0
  759. data/examples/temp_sensor/build/test/out/TestTimerModel/UnityHelper.o +0 -0
  760. data/examples/temp_sensor/build/test/out/TestTimerModel/cmock.o +0 -0
  761. data/examples/temp_sensor/build/test/out/TestTimerModel/unity.o +0 -0
  762. data/examples/temp_sensor/build/test/out/TestUsartBaudRateRegisterCalculator/TestUsartBaudRateRegisterCalculator.o +0 -0
  763. data/examples/temp_sensor/build/test/out/TestUsartBaudRateRegisterCalculator/TestUsartBaudRateRegisterCalculator.out +0 -0
  764. data/examples/temp_sensor/build/test/out/TestUsartBaudRateRegisterCalculator/TestUsartBaudRateRegisterCalculator_runner.o +0 -0
  765. data/examples/temp_sensor/build/test/out/TestUsartBaudRateRegisterCalculator/UnityHelper.o +0 -0
  766. data/examples/temp_sensor/build/test/out/TestUsartBaudRateRegisterCalculator/UsartBaudRateRegisterCalculator.o +0 -0
  767. data/examples/temp_sensor/build/test/out/TestUsartBaudRateRegisterCalculator/unity.o +0 -0
  768. data/examples/temp_sensor/build/test/out/TestUsartConductor/MockTaskScheduler.o +0 -0
  769. data/examples/temp_sensor/build/test/out/TestUsartConductor/MockUsartHardware.o +0 -0
  770. data/examples/temp_sensor/build/test/out/TestUsartConductor/MockUsartModel.o +0 -0
  771. data/examples/temp_sensor/build/test/out/TestUsartConductor/TestUsartConductor.o +0 -0
  772. data/examples/temp_sensor/build/test/out/TestUsartConductor/TestUsartConductor.out +0 -0
  773. data/examples/temp_sensor/build/test/out/TestUsartConductor/TestUsartConductor_runner.o +0 -0
  774. data/examples/temp_sensor/build/test/out/TestUsartConductor/UnityHelper.o +0 -0
  775. data/examples/temp_sensor/build/test/out/TestUsartConductor/UsartConductor.o +0 -0
  776. data/examples/temp_sensor/build/test/out/TestUsartConductor/cmock.o +0 -0
  777. data/examples/temp_sensor/build/test/out/TestUsartConductor/unity.o +0 -0
  778. data/examples/temp_sensor/build/test/out/TestUsartHardware/MockUsartConfigurator.o +0 -0
  779. data/examples/temp_sensor/build/test/out/TestUsartHardware/MockUsartPutChar.o +0 -0
  780. data/examples/temp_sensor/build/test/out/TestUsartHardware/TestUsartHardware.o +0 -0
  781. data/examples/temp_sensor/build/test/out/TestUsartHardware/TestUsartHardware.out +0 -0
  782. data/examples/temp_sensor/build/test/out/TestUsartHardware/TestUsartHardware_runner.o +0 -0
  783. data/examples/temp_sensor/build/test/out/TestUsartHardware/UnityHelper.o +0 -0
  784. data/examples/temp_sensor/build/test/out/TestUsartHardware/UsartHardware.o +0 -0
  785. data/examples/temp_sensor/build/test/out/TestUsartHardware/cmock.o +0 -0
  786. data/examples/temp_sensor/build/test/out/TestUsartHardware/unity.o +0 -0
  787. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/MockTaskScheduler.o +0 -0
  788. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/MockTemperatureFilter.o +0 -0
  789. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/MockUsartBaudRateRegisterCalculator.o +0 -0
  790. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/MockUsartConfigurator.o +0 -0
  791. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/MockUsartPutChar.o +0 -0
  792. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/TestUsartIntegrated.o +0 -0
  793. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/TestUsartIntegrated.out +0 -0
  794. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/TestUsartIntegrated_runner.o +0 -0
  795. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/UnityHelper.o +0 -0
  796. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/UsartConductor.o +0 -0
  797. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/UsartHardware.o +0 -0
  798. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/UsartModel.o +0 -0
  799. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/cmock.o +0 -0
  800. data/examples/temp_sensor/build/test/out/TestUsartIntegrated/unity.o +0 -0
  801. data/examples/temp_sensor/build/test/out/TestUsartModel/MockTemperatureFilter.o +0 -0
  802. data/examples/temp_sensor/build/test/out/TestUsartModel/MockUsartBaudRateRegisterCalculator.o +0 -0
  803. data/examples/temp_sensor/build/test/out/TestUsartModel/TestUsartModel.o +0 -0
  804. data/examples/temp_sensor/build/test/out/TestUsartModel/TestUsartModel.out +0 -0
  805. data/examples/temp_sensor/build/test/out/TestUsartModel/TestUsartModel_runner.o +0 -0
  806. data/examples/temp_sensor/build/test/out/TestUsartModel/UnityHelper.o +0 -0
  807. data/examples/temp_sensor/build/test/out/TestUsartModel/UsartModel.o +0 -0
  808. data/examples/temp_sensor/build/test/out/TestUsartModel/cmock.o +0 -0
  809. data/examples/temp_sensor/build/test/out/TestUsartModel/unity.o +0 -0
  810. data/examples/temp_sensor/build/test/preprocess/files/TestAdcConductor/AdcHardware.h +16 -0
  811. data/examples/temp_sensor/build/test/preprocess/files/TestAdcConductor/AdcModel.h +18 -0
  812. data/examples/temp_sensor/build/test/preprocess/files/TestAdcConductor/TestAdcConductor.c +106 -0
  813. data/examples/temp_sensor/build/test/preprocess/files/TestAdcHardware/AdcHardwareConfigurator.h +14 -0
  814. data/examples/temp_sensor/build/test/preprocess/files/TestAdcHardware/AdcTemperatureSensor.h +14 -0
  815. data/examples/temp_sensor/build/test/preprocess/files/TestAdcHardware/TestAdcHardware.c +59 -0
  816. data/examples/temp_sensor/build/test/preprocess/files/TestAdcModel/TaskScheduler.h +16 -0
  817. data/examples/temp_sensor/build/test/preprocess/files/TestAdcModel/TemperatureCalculator.h +10 -0
  818. data/examples/temp_sensor/build/test/preprocess/files/TestAdcModel/TemperatureFilter.h +14 -0
  819. data/examples/temp_sensor/build/test/preprocess/files/TestAdcModel/TestAdcModel.c +41 -0
  820. data/examples/temp_sensor/build/test/preprocess/files/TestExecutor/AdcConductor.h +18 -0
  821. data/examples/temp_sensor/build/test/preprocess/files/TestExecutor/IntrinsicsWrapper.h +10 -0
  822. data/examples/temp_sensor/build/test/preprocess/files/TestExecutor/Model.h +10 -0
  823. data/examples/temp_sensor/build/test/preprocess/files/TestExecutor/TestExecutor.c +45 -0
  824. data/examples/temp_sensor/build/test/preprocess/files/TestExecutor/TimerConductor.h +12 -0
  825. data/examples/temp_sensor/build/test/preprocess/files/TestExecutor/UsartConductor.h +10 -0
  826. data/examples/temp_sensor/build/test/preprocess/files/TestMain/Executor.h +12 -0
  827. data/examples/temp_sensor/build/test/preprocess/files/TestMain/TestMain.c +31 -0
  828. data/examples/temp_sensor/build/test/preprocess/files/TestModel/TaskScheduler.h +16 -0
  829. data/examples/temp_sensor/build/test/preprocess/files/TestModel/TemperatureFilter.h +14 -0
  830. data/examples/temp_sensor/build/test/preprocess/files/TestModel/TestModel.c +24 -0
  831. data/examples/temp_sensor/build/test/preprocess/files/TestTaskScheduler/TestTaskScheduler.c +168 -0
  832. data/examples/temp_sensor/build/test/preprocess/files/TestTemperatureCalculator/TestTemperatureCalculator.c +52 -0
  833. data/examples/temp_sensor/build/test/preprocess/files/TestTemperatureFilter/TestTemperatureFilter.c +163 -0
  834. data/examples/temp_sensor/build/test/preprocess/files/TestTimerConductor/TestTimerConductor.c +38 -0
  835. data/examples/temp_sensor/build/test/preprocess/files/TestTimerConductor/TimerHardware.h +10 -0
  836. data/examples/temp_sensor/build/test/preprocess/files/TestTimerConductor/TimerInterruptHandler.h +14 -0
  837. data/examples/temp_sensor/build/test/preprocess/files/TestTimerConductor/TimerModel.h +10 -0
  838. data/examples/temp_sensor/build/test/preprocess/files/TestTimerHardware/TestTimerHardware.c +35 -0
  839. data/examples/temp_sensor/build/test/preprocess/files/TestTimerHardware/TimerConfigurator.h +24 -0
  840. data/examples/temp_sensor/build/test/preprocess/files/TestTimerIntegrated/TaskScheduler.h +16 -0
  841. data/examples/temp_sensor/build/test/preprocess/files/TestTimerIntegrated/TestTimerIntegrated.c +54 -0
  842. data/examples/temp_sensor/build/test/preprocess/files/TestTimerIntegrated/TimerConfigurator.h +24 -0
  843. data/examples/temp_sensor/build/test/preprocess/files/TestTimerIntegrated/TimerInterruptHandler.h +14 -0
  844. data/examples/temp_sensor/build/test/preprocess/files/TestTimerModel/TaskScheduler.h +16 -0
  845. data/examples/temp_sensor/build/test/preprocess/files/TestTimerModel/TestTimerModel.c +21 -0
  846. data/examples/temp_sensor/build/test/preprocess/files/TestUsartBaudRateRegisterCalculator/TestUsartBaudRateRegisterCalculator.c +46 -0
  847. data/examples/temp_sensor/build/test/preprocess/files/TestUsartConductor/TaskScheduler.h +16 -0
  848. data/examples/temp_sensor/build/test/preprocess/files/TestUsartConductor/TestUsartConductor.c +47 -0
  849. data/examples/temp_sensor/build/test/preprocess/files/TestUsartConductor/UsartHardware.h +12 -0
  850. data/examples/temp_sensor/build/test/preprocess/files/TestUsartConductor/UsartModel.h +14 -0
  851. data/examples/temp_sensor/build/test/preprocess/files/TestUsartHardware/TestUsartHardware.c +47 -0
  852. data/examples/temp_sensor/build/test/preprocess/files/TestUsartHardware/UsartConfigurator.h +20 -0
  853. data/examples/temp_sensor/build/test/preprocess/files/TestUsartHardware/UsartPutChar.h +10 -0
  854. data/examples/temp_sensor/build/test/preprocess/files/TestUsartIntegrated/TaskScheduler.h +16 -0
  855. data/examples/temp_sensor/build/test/preprocess/files/TestUsartIntegrated/TemperatureFilter.h +14 -0
  856. data/examples/temp_sensor/build/test/preprocess/files/TestUsartIntegrated/TestUsartIntegrated.c +57 -0
  857. data/examples/temp_sensor/build/test/preprocess/files/TestUsartIntegrated/UsartBaudRateRegisterCalculator.h +10 -0
  858. data/examples/temp_sensor/build/test/preprocess/files/TestUsartIntegrated/UsartConfigurator.h +20 -0
  859. data/examples/temp_sensor/build/test/preprocess/files/TestUsartIntegrated/UsartPutChar.h +10 -0
  860. data/examples/temp_sensor/build/test/preprocess/files/TestUsartModel/TemperatureFilter.h +14 -0
  861. data/examples/temp_sensor/build/test/preprocess/files/TestUsartModel/TestUsartModel.c +64 -0
  862. data/examples/temp_sensor/build/test/preprocess/files/TestUsartModel/UsartBaudRateRegisterCalculator.h +10 -0
  863. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcConductor/AdcHardware.h.yml +2 -0
  864. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcConductor/AdcModel.h.yml +2 -0
  865. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcConductor/TestAdcConductor.c.yml +7 -0
  866. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcHardware/AdcHardwareConfigurator.h.yml +2 -0
  867. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcHardware/AdcTemperatureSensor.h.yml +2 -0
  868. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcHardware/TestAdcHardware.c.yml +6 -0
  869. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcModel/TaskScheduler.h.yml +2 -0
  870. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcModel/TemperatureCalculator.h.yml +2 -0
  871. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcModel/TemperatureFilter.h.yml +2 -0
  872. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcModel/TestAdcModel.c.yml +7 -0
  873. data/examples/temp_sensor/build/test/preprocess/includes/TestExecutor/AdcConductor.h.yml +2 -0
  874. data/examples/temp_sensor/build/test/preprocess/includes/TestExecutor/IntrinsicsWrapper.h.yml +1 -0
  875. data/examples/temp_sensor/build/test/preprocess/includes/TestExecutor/Model.h.yml +2 -0
  876. data/examples/temp_sensor/build/test/preprocess/includes/TestExecutor/TestExecutor.c.yml +9 -0
  877. data/examples/temp_sensor/build/test/preprocess/includes/TestExecutor/TimerConductor.h.yml +2 -0
  878. data/examples/temp_sensor/build/test/preprocess/includes/TestExecutor/UsartConductor.h.yml +1 -0
  879. data/examples/temp_sensor/build/test/preprocess/includes/TestMain/Executor.h.yml +2 -0
  880. data/examples/temp_sensor/build/test/preprocess/includes/TestMain/TestMain.c.yml +5 -0
  881. data/examples/temp_sensor/build/test/preprocess/includes/TestModel/TaskScheduler.h.yml +2 -0
  882. data/examples/temp_sensor/build/test/preprocess/includes/TestModel/TemperatureFilter.h.yml +2 -0
  883. data/examples/temp_sensor/build/test/preprocess/includes/TestModel/TestModel.c.yml +6 -0
  884. data/examples/temp_sensor/build/test/preprocess/includes/TestTaskScheduler/TestTaskScheduler.c.yml +4 -0
  885. data/examples/temp_sensor/build/test/preprocess/includes/TestTemperatureCalculator/TestTemperatureCalculator.c.yml +3 -0
  886. data/examples/temp_sensor/build/test/preprocess/includes/TestTemperatureFilter/TestTemperatureFilter.c.yml +4 -0
  887. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerConductor/TestTimerConductor.c.yml +7 -0
  888. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerConductor/TimerHardware.h.yml +2 -0
  889. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerConductor/TimerInterruptHandler.h.yml +2 -0
  890. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerConductor/TimerModel.h.yml +2 -0
  891. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerHardware/TestTimerHardware.c.yml +5 -0
  892. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerHardware/TimerConfigurator.h.yml +2 -0
  893. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerIntegrated/TaskScheduler.h.yml +2 -0
  894. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerIntegrated/TestTimerIntegrated.c.yml +9 -0
  895. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerIntegrated/TimerConfigurator.h.yml +2 -0
  896. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerIntegrated/TimerInterruptHandler.h.yml +2 -0
  897. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerModel/TaskScheduler.h.yml +2 -0
  898. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerModel/TestTimerModel.c.yml +5 -0
  899. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartBaudRateRegisterCalculator/TestUsartBaudRateRegisterCalculator.c.yml +4 -0
  900. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartConductor/TaskScheduler.h.yml +2 -0
  901. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartConductor/TestUsartConductor.c.yml +7 -0
  902. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartConductor/UsartHardware.h.yml +2 -0
  903. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartConductor/UsartModel.h.yml +2 -0
  904. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartHardware/TestUsartHardware.c.yml +6 -0
  905. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartHardware/UsartConfigurator.h.yml +2 -0
  906. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartHardware/UsartPutChar.h.yml +2 -0
  907. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartIntegrated/TaskScheduler.h.yml +2 -0
  908. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartIntegrated/TemperatureFilter.h.yml +2 -0
  909. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartIntegrated/TestUsartIntegrated.c.yml +12 -0
  910. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartIntegrated/UsartBaudRateRegisterCalculator.h.yml +2 -0
  911. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartIntegrated/UsartConfigurator.h.yml +2 -0
  912. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartIntegrated/UsartPutChar.h.yml +2 -0
  913. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartModel/TemperatureFilter.h.yml +2 -0
  914. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartModel/TestUsartModel.c.yml +7 -0
  915. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartModel/UsartBaudRateRegisterCalculator.h.yml +2 -0
  916. data/examples/temp_sensor/build/test/results/TestAdcConductor.pass +12 -11
  917. data/examples/temp_sensor/build/test/results/TestAdcHardware.pass +8 -7
  918. data/examples/temp_sensor/build/test/results/TestAdcModel.pass +7 -6
  919. data/examples/temp_sensor/build/test/results/TestExecutor.pass +6 -5
  920. data/examples/temp_sensor/build/test/results/TestMain.pass +5 -4
  921. data/examples/temp_sensor/build/test/results/TestModel.pass +5 -4
  922. data/examples/temp_sensor/build/test/results/TestTaskScheduler.pass +12 -11
  923. data/examples/temp_sensor/build/test/results/TestTemperatureCalculator.pass +6 -5
  924. data/examples/temp_sensor/build/test/results/TestTemperatureFilter.pass +8 -7
  925. data/examples/temp_sensor/build/test/results/TestTimerConductor.pass +6 -5
  926. data/examples/temp_sensor/build/test/results/TestTimerHardware.pass +5 -4
  927. data/examples/temp_sensor/build/test/results/TestTimerIntegrated.pass +23 -0
  928. data/examples/temp_sensor/build/test/results/TestTimerModel.pass +5 -4
  929. data/examples/temp_sensor/build/test/results/TestUsartBaudRateRegisterCalculator.pass +5 -4
  930. data/examples/temp_sensor/build/test/results/TestUsartConductor.pass +7 -6
  931. data/examples/temp_sensor/build/test/results/TestUsartHardware.pass +6 -5
  932. data/examples/temp_sensor/build/test/results/TestUsartIntegrated.pass +23 -0
  933. data/examples/temp_sensor/build/test/results/TestUsartModel.pass +8 -7
  934. data/examples/temp_sensor/build/test/runners/TestAdcConductor_runner.c +14 -10
  935. data/examples/temp_sensor/build/test/runners/TestAdcHardware_runner.c +9 -6
  936. data/examples/temp_sensor/build/test/runners/TestAdcModel_runner.c +8 -5
  937. data/examples/temp_sensor/build/test/runners/TestExecutor_runner.c +7 -4
  938. data/examples/temp_sensor/build/test/runners/TestMain_runner.c +6 -3
  939. data/examples/temp_sensor/build/test/runners/TestModel_runner.c +6 -3
  940. data/examples/temp_sensor/build/test/runners/TestTaskScheduler_runner.c +13 -10
  941. data/examples/temp_sensor/build/test/runners/TestTemperatureCalculator_runner.c +6 -4
  942. data/examples/temp_sensor/build/test/runners/TestTemperatureFilter_runner.c +9 -6
  943. data/examples/temp_sensor/build/test/runners/TestTimerConductor_runner.c +7 -4
  944. data/examples/temp_sensor/build/test/runners/TestTimerHardware_runner.c +6 -3
  945. data/examples/temp_sensor/build/test/runners/TestTimerIntegrated_runner.c +102 -0
  946. data/examples/temp_sensor/build/test/runners/TestTimerModel_runner.c +6 -3
  947. data/examples/temp_sensor/build/test/runners/TestUsartBaudRateRegisterCalculator_runner.c +6 -3
  948. data/examples/temp_sensor/build/test/runners/TestUsartConductor_runner.c +8 -5
  949. data/examples/temp_sensor/build/test/runners/TestUsartHardware_runner.c +7 -4
  950. data/examples/temp_sensor/build/test/runners/TestUsartIntegrated_runner.c +111 -0
  951. data/examples/temp_sensor/build/test/runners/TestUsartModel_runner.c +10 -6
  952. data/examples/temp_sensor/build/vendor/cmock/src/cmock.c +231 -0
  953. data/examples/temp_sensor/build/vendor/cmock/src/cmock.h +47 -0
  954. data/examples/temp_sensor/build/vendor/cmock/src/cmock_internals.h +91 -0
  955. data/examples/temp_sensor/build/vendor/cmock/src/meson.build +12 -0
  956. data/examples/temp_sensor/build/vendor/unity/src/meson.build +17 -0
  957. data/examples/temp_sensor/build/vendor/unity/src/unity.c +2501 -0
  958. data/examples/temp_sensor/build/vendor/unity/src/unity.h +698 -0
  959. data/examples/temp_sensor/build/vendor/unity/src/unity_internals.h +1183 -0
  960. data/examples/temp_sensor/mixin/add_gcov.yml +51 -0
  961. data/examples/temp_sensor/mixin/add_unity_helper.yml +26 -0
  962. data/examples/temp_sensor/project.yml +324 -28
  963. data/examples/temp_sensor/src/AdcConductor.c +7 -0
  964. data/examples/temp_sensor/src/AdcConductor.h +7 -0
  965. data/examples/temp_sensor/src/AdcHardware.c +7 -0
  966. data/examples/temp_sensor/src/AdcHardware.h +7 -0
  967. data/examples/temp_sensor/src/AdcHardwareConfigurator.c +7 -0
  968. data/examples/temp_sensor/src/AdcHardwareConfigurator.h +7 -0
  969. data/examples/temp_sensor/src/AdcModel.c +7 -0
  970. data/examples/temp_sensor/src/AdcModel.h +7 -0
  971. data/examples/temp_sensor/src/AdcTemperatureSensor.c +7 -0
  972. data/examples/temp_sensor/src/AdcTemperatureSensor.h +7 -0
  973. data/examples/temp_sensor/src/Executor.c +7 -0
  974. data/examples/temp_sensor/src/Executor.h +7 -0
  975. data/examples/temp_sensor/src/IntrinsicsWrapper.c +7 -0
  976. data/examples/temp_sensor/src/IntrinsicsWrapper.h +7 -0
  977. data/examples/temp_sensor/src/Main.c +7 -0
  978. data/examples/temp_sensor/src/Main.h +7 -0
  979. data/examples/temp_sensor/src/Model.c +7 -0
  980. data/examples/temp_sensor/src/Model.h +7 -0
  981. data/examples/temp_sensor/src/ModelConfig.h +7 -0
  982. data/examples/temp_sensor/src/TaskScheduler.c +7 -0
  983. data/examples/temp_sensor/src/TaskScheduler.h +7 -0
  984. data/examples/temp_sensor/src/TemperatureCalculator.c +12 -1
  985. data/examples/temp_sensor/src/TemperatureCalculator.h +7 -0
  986. data/examples/temp_sensor/src/TemperatureFilter.c +7 -0
  987. data/examples/temp_sensor/src/TemperatureFilter.h +7 -0
  988. data/examples/temp_sensor/src/TimerConductor.c +7 -0
  989. data/examples/temp_sensor/src/TimerConductor.h +7 -0
  990. data/examples/temp_sensor/src/TimerConfigurator.c +7 -0
  991. data/examples/temp_sensor/src/TimerConfigurator.h +7 -0
  992. data/examples/temp_sensor/src/TimerHardware.c +7 -0
  993. data/examples/temp_sensor/src/TimerHardware.h +7 -0
  994. data/examples/temp_sensor/src/TimerInterruptConfigurator.c +7 -0
  995. data/examples/temp_sensor/src/TimerInterruptConfigurator.h +7 -0
  996. data/examples/temp_sensor/src/TimerInterruptHandler.c +7 -0
  997. data/examples/temp_sensor/src/TimerInterruptHandler.h +7 -0
  998. data/examples/temp_sensor/src/TimerModel.c +7 -0
  999. data/examples/temp_sensor/src/TimerModel.h +7 -0
  1000. data/examples/temp_sensor/src/Types.h +7 -0
  1001. data/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c +7 -0
  1002. data/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +7 -0
  1003. data/examples/temp_sensor/src/UsartConductor.c +7 -0
  1004. data/examples/temp_sensor/src/UsartConductor.h +7 -0
  1005. data/examples/temp_sensor/src/UsartConfigurator.c +7 -0
  1006. data/examples/temp_sensor/src/UsartConfigurator.h +7 -0
  1007. data/examples/temp_sensor/src/UsartHardware.c +7 -0
  1008. data/examples/temp_sensor/src/UsartHardware.h +7 -0
  1009. data/examples/temp_sensor/src/UsartModel.c +7 -0
  1010. data/examples/temp_sensor/src/UsartModel.h +7 -0
  1011. data/examples/temp_sensor/src/UsartPutChar.c +7 -0
  1012. data/examples/temp_sensor/src/UsartPutChar.h +7 -0
  1013. data/examples/temp_sensor/src/UsartTransmitBufferStatus.c +7 -0
  1014. data/examples/temp_sensor/src/UsartTransmitBufferStatus.h +7 -0
  1015. data/examples/temp_sensor/test/TestExecutor.c +8 -1
  1016. data/examples/temp_sensor/test/TestMain.c +7 -0
  1017. data/examples/temp_sensor/test/TestModel.c +7 -0
  1018. data/examples/temp_sensor/test/TestTaskScheduler.c +37 -30
  1019. data/examples/temp_sensor/test/TestTemperatureCalculator.c +8 -1
  1020. data/examples/temp_sensor/test/TestTemperatureFilter.c +7 -0
  1021. data/examples/temp_sensor/test/TestTimerConductor.c +7 -0
  1022. data/examples/temp_sensor/test/TestTimerHardware.c +7 -0
  1023. data/examples/temp_sensor/test/TestTimerIntegrated.c +53 -0
  1024. data/examples/temp_sensor/test/TestTimerModel.c +7 -0
  1025. data/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c +12 -5
  1026. data/examples/temp_sensor/test/TestUsartConductor.c +7 -0
  1027. data/examples/temp_sensor/test/TestUsartHardware.c +7 -0
  1028. data/examples/temp_sensor/test/TestUsartIntegrated.c +63 -0
  1029. data/examples/temp_sensor/test/TestUsartModel.c +8 -1
  1030. data/examples/temp_sensor/test/adc/TestAdcConductor.c +128 -0
  1031. data/examples/temp_sensor/test/adc/TestAdcHardware.c +51 -0
  1032. data/examples/temp_sensor/test/adc/TestAdcModel.c +40 -0
  1033. data/examples/temp_sensor/test/support/UnityHelper.c +11 -4
  1034. data/examples/temp_sensor/test/support/UnityHelper.h +11 -6
  1035. data/lib/ceedling/application.rb +26 -0
  1036. data/lib/ceedling/backtrace.gdb +5 -0
  1037. data/lib/ceedling/build_batchinator.rb +113 -0
  1038. data/lib/ceedling/cacheinator.rb +6 -0
  1039. data/lib/ceedling/cacheinator_helper.rb +6 -0
  1040. data/lib/ceedling/config_matchinator.rb +192 -0
  1041. data/lib/ceedling/config_walkinator.rb +35 -0
  1042. data/lib/ceedling/configurator.rb +543 -185
  1043. data/lib/ceedling/configurator_builder.rb +262 -179
  1044. data/lib/ceedling/configurator_plugins.rb +86 -32
  1045. data/lib/ceedling/configurator_setup.rb +726 -55
  1046. data/lib/ceedling/configurator_validator.rb +152 -142
  1047. data/lib/ceedling/constants.rb +94 -32
  1048. data/lib/ceedling/defaults.rb +239 -206
  1049. data/lib/ceedling/defineinator.rb +88 -0
  1050. data/lib/ceedling/dependinator.rb +9 -75
  1051. data/lib/ceedling/erb_wrapper.rb +8 -1
  1052. data/lib/ceedling/exceptions.rb +47 -0
  1053. data/lib/ceedling/file_finder.rb +136 -102
  1054. data/lib/ceedling/file_finder_helper.rb +81 -35
  1055. data/lib/ceedling/file_path_collection_utils.rb +137 -0
  1056. data/lib/ceedling/file_path_utils.rb +72 -84
  1057. data/lib/ceedling/file_system_wrapper.rb +6 -0
  1058. data/lib/ceedling/file_wrapper.rb +42 -3
  1059. data/lib/ceedling/flaginator.rb +43 -52
  1060. data/lib/ceedling/generator.rb +283 -104
  1061. data/lib/ceedling/generator_helper.rb +62 -24
  1062. data/lib/ceedling/generator_mocks.rb +41 -0
  1063. data/lib/ceedling/generator_test_results.rb +199 -29
  1064. data/lib/ceedling/generator_test_results_backtrace.rb +215 -0
  1065. data/lib/ceedling/generator_test_results_sanity_checker.rb +13 -8
  1066. data/lib/ceedling/generator_test_runner.rb +62 -36
  1067. data/lib/ceedling/include_pathinator.rb +83 -0
  1068. data/lib/ceedling/loginator.rb +314 -19
  1069. data/lib/ceedling/makefile.rb +6 -0
  1070. data/lib/ceedling/objects.yml +114 -81
  1071. data/lib/ceedling/plugin.rb +14 -64
  1072. data/lib/ceedling/plugin_manager.rb +45 -19
  1073. data/lib/ceedling/plugin_manager_helper.rb +8 -2
  1074. data/lib/ceedling/plugin_reportinator.rb +93 -30
  1075. data/lib/ceedling/plugin_reportinator_helper.rb +60 -27
  1076. data/lib/ceedling/preprocessinator.rb +213 -30
  1077. data/lib/ceedling/preprocessinator_extractor.rb +222 -34
  1078. data/lib/ceedling/preprocessinator_file_handler.rb +210 -15
  1079. data/lib/ceedling/preprocessinator_includes_handler.rb +354 -161
  1080. data/lib/ceedling/rake_utils.rb +6 -0
  1081. data/lib/ceedling/rake_wrapper.rb +7 -0
  1082. data/lib/ceedling/rakefile.rb +125 -65
  1083. data/lib/ceedling/release_invoker.rb +11 -41
  1084. data/lib/ceedling/release_invoker_helper.rb +6 -13
  1085. data/lib/ceedling/reportinator.rb +99 -1
  1086. data/lib/ceedling/rules_release.rake +45 -37
  1087. data/lib/ceedling/rules_tests.rake +48 -59
  1088. data/lib/ceedling/setupinator.rb +181 -35
  1089. data/lib/ceedling/stream_wrapper.rb +38 -15
  1090. data/lib/ceedling/system_utils.rb +8 -2
  1091. data/lib/ceedling/system_wrapper.rb +83 -13
  1092. data/lib/ceedling/task_invoker.rb +15 -67
  1093. data/lib/ceedling/tasks_base.rake +15 -92
  1094. data/lib/ceedling/tasks_filesystem.rake +35 -49
  1095. data/lib/ceedling/tasks_release.rake +25 -12
  1096. data/lib/ceedling/tasks_tests.rake +31 -22
  1097. data/lib/ceedling/test_context_extractor.rb +440 -0
  1098. data/lib/ceedling/test_invoker.rb +451 -111
  1099. data/lib/ceedling/test_invoker_helper.rb +332 -17
  1100. data/lib/ceedling/test_runner_manager.rb +47 -0
  1101. data/lib/ceedling/tool_executor.rb +90 -86
  1102. data/lib/ceedling/tool_executor_helper.rb +49 -106
  1103. data/lib/ceedling/tool_validator.rb +149 -0
  1104. data/lib/ceedling/verbosinator.rb +15 -3
  1105. data/lib/ceedling/yaml_wrapper.rb +21 -1
  1106. data/lib/ceedling.rb +12 -97
  1107. data/lib/version.rb +24 -0
  1108. data/license.txt +20 -27
  1109. data/out.fail +3 -2
  1110. data/plugins/beep/README.md +124 -13
  1111. data/plugins/beep/config/defaults.yml +12 -0
  1112. data/plugins/beep/config/defaults_beep.rb +67 -0
  1113. data/plugins/beep/lib/beep.rb +71 -26
  1114. data/plugins/bullseye/README.md +9 -4
  1115. data/plugins/bullseye/bullseye.rake +43 -36
  1116. data/plugins/bullseye/config/defaults.yml +55 -46
  1117. data/plugins/bullseye/lib/bullseye.rb +25 -16
  1118. data/plugins/command_hooks/README.md +230 -42
  1119. data/plugins/command_hooks/lib/command_hooks.rb +198 -59
  1120. data/plugins/compile_commands_json_db/README.md +40 -0
  1121. data/plugins/compile_commands_json_db/lib/compile_commands_json_db.rb +51 -0
  1122. data/plugins/dependencies/README.md +113 -46
  1123. data/plugins/dependencies/Rakefile +188 -0
  1124. data/plugins/dependencies/config/defaults.yml +74 -1
  1125. data/plugins/dependencies/dependencies.rake +28 -18
  1126. data/plugins/dependencies/example/boss/build/artifacts/release/DepTest +0 -0
  1127. data/plugins/dependencies/example/boss/build/artifacts/test/test_boss.log +0 -0
  1128. data/plugins/dependencies/example/boss/build/release/DepTest +0 -0
  1129. data/plugins/dependencies/example/boss/build/release/cache/input.yml +371 -0
  1130. data/plugins/dependencies/example/boss/build/release/dependencies/boss.d +3 -0
  1131. data/plugins/dependencies/example/boss/build/release/dependencies/main.d +2 -0
  1132. data/plugins/dependencies/example/boss/build/release/out/boss.o +0 -0
  1133. data/plugins/dependencies/example/boss/build/release/out/main.o +0 -0
  1134. data/plugins/dependencies/example/boss/build/test/cache/input.yml +371 -0
  1135. data/plugins/dependencies/example/boss/build/test/dependencies/boss.d +3 -0
  1136. data/plugins/dependencies/example/boss/build/test/dependencies/cmock.d +5 -0
  1137. data/plugins/dependencies/example/boss/build/test/dependencies/mock_libworker.d +8 -0
  1138. data/plugins/dependencies/example/boss/build/test/dependencies/mock_supervisor.d +8 -0
  1139. data/plugins/dependencies/example/boss/build/test/dependencies/test_boss.d +7 -0
  1140. data/plugins/dependencies/example/boss/build/test/dependencies/test_boss_runner.d +9 -0
  1141. data/plugins/dependencies/example/boss/build/test/dependencies/unity.d +3 -0
  1142. data/plugins/dependencies/example/boss/build/test/mocks/test_boss/mock_libworker.c +386 -0
  1143. data/plugins/dependencies/example/boss/build/test/mocks/test_boss/mock_libworker.h +82 -0
  1144. data/plugins/dependencies/example/boss/build/test/mocks/test_boss/mock_supervisor.c +309 -0
  1145. data/plugins/dependencies/example/boss/build/test/mocks/test_boss/mock_supervisor.h +72 -0
  1146. data/plugins/dependencies/example/boss/build/test/out/test_boss/boss.o +0 -0
  1147. data/plugins/dependencies/example/boss/build/test/out/test_boss/cmock.o +0 -0
  1148. data/plugins/dependencies/example/boss/build/test/out/test_boss/mock_libworker.o +0 -0
  1149. data/plugins/dependencies/example/boss/build/test/out/test_boss/mock_supervisor.o +0 -0
  1150. data/plugins/dependencies/example/boss/build/test/out/test_boss/test_boss.o +0 -0
  1151. data/plugins/dependencies/example/boss/build/test/out/test_boss/test_boss.out +0 -0
  1152. data/plugins/dependencies/example/boss/build/test/out/test_boss/test_boss_runner.o +0 -0
  1153. data/plugins/dependencies/example/boss/build/test/out/test_boss/unity.o +0 -0
  1154. data/plugins/dependencies/example/boss/build/test/preprocess/files/test_boss/libworker.h +22 -0
  1155. data/plugins/dependencies/example/boss/build/test/preprocess/files/test_boss/supervisor.h +20 -0
  1156. data/plugins/dependencies/example/boss/build/test/preprocess/files/test_boss/test_boss.c +142 -0
  1157. data/plugins/dependencies/example/boss/build/test/preprocess/includes/test_boss/libworker.h.yml +9 -0
  1158. data/plugins/dependencies/example/boss/build/test/preprocess/includes/test_boss/supervisor.h.yml +9 -0
  1159. data/plugins/dependencies/example/boss/build/test/preprocess/includes/test_boss/test_boss.c.yml +15 -0
  1160. data/plugins/dependencies/example/boss/build/test/results/test_boss.pass +27 -0
  1161. data/plugins/dependencies/example/boss/build/test/runners/test_boss_runner.c +148 -0
  1162. data/plugins/dependencies/example/boss/build/vendor/cmock/src/cmock.c +234 -0
  1163. data/plugins/dependencies/example/boss/build/vendor/cmock/src/cmock.h +52 -0
  1164. data/plugins/dependencies/example/boss/build/vendor/cmock/src/cmock_internals.h +96 -0
  1165. data/plugins/dependencies/example/boss/build/vendor/cmock/src/meson.build +12 -0
  1166. data/plugins/dependencies/example/boss/build/vendor/unity/src/meson.build +17 -0
  1167. data/plugins/dependencies/example/boss/build/vendor/unity/src/unity.c +2471 -0
  1168. data/plugins/dependencies/example/boss/build/vendor/unity/src/unity.h +702 -0
  1169. data/plugins/dependencies/example/boss/build/vendor/unity/src/unity_internals.h +1153 -0
  1170. data/plugins/dependencies/example/boss/project.yml +234 -0
  1171. data/plugins/dependencies/example/boss/src/boss.c +80 -0
  1172. data/plugins/dependencies/example/boss/src/boss.h +16 -0
  1173. data/plugins/dependencies/example/boss/src/main.c +45 -0
  1174. data/plugins/dependencies/example/boss/test/test_boss.c +118 -0
  1175. data/plugins/dependencies/example/supervisor/project.yml +168 -0
  1176. data/plugins/dependencies/example/supervisor/src/supervisor.c +45 -0
  1177. data/plugins/dependencies/example/supervisor/src/supervisor.h +14 -0
  1178. data/plugins/dependencies/example/supervisor/test/test_supervisor.c +58 -0
  1179. data/plugins/dependencies/example/version.tar.gzip +0 -0
  1180. data/plugins/dependencies/example/workerbees.zip +0 -0
  1181. data/plugins/dependencies/lib/dependencies.rb +372 -78
  1182. data/plugins/fff/README.md +242 -0
  1183. data/plugins/fff/Rakefile +26 -0
  1184. data/plugins/fff/config/fff.yml +13 -0
  1185. data/plugins/fff/examples/fff_example/build/test/cache/input.yml +263 -0
  1186. data/plugins/fff/examples/fff_example/build/test/dependencies/cmock.d +5 -0
  1187. data/plugins/fff/examples/fff_example/build/test/dependencies/event_processor.d +2 -0
  1188. data/plugins/fff/examples/fff_example/build/test/dependencies/foo.d +2 -0
  1189. data/plugins/fff/examples/fff_example/build/test/dependencies/mock_bar.d +3 -0
  1190. data/plugins/fff/examples/fff_example/build/test/dependencies/mock_display.d +5 -0
  1191. data/plugins/fff/examples/fff_example/build/test/dependencies/mock_zzz.d +3 -0
  1192. data/plugins/fff/examples/fff_example/build/test/dependencies/test_event_processor.d +5 -0
  1193. data/plugins/fff/examples/fff_example/build/test/dependencies/test_event_processor_runner.d +8 -0
  1194. data/plugins/fff/examples/fff_example/build/test/dependencies/test_foo.d +6 -0
  1195. data/plugins/fff/examples/fff_example/build/test/dependencies/test_foo_runner.d +8 -0
  1196. data/plugins/fff/examples/fff_example/build/test/dependencies/unity.d +3 -0
  1197. data/plugins/fff/examples/fff_example/build/test/mocks/test_event_processor/mock_display.c +43 -0
  1198. data/plugins/fff/examples/fff_example/build/test/mocks/test_event_processor/mock_display.h +35 -0
  1199. data/plugins/fff/examples/fff_example/build/test/mocks/test_foo/mock_bar.c +37 -0
  1200. data/plugins/fff/examples/fff_example/build/test/mocks/test_foo/mock_bar.h +31 -0
  1201. data/plugins/fff/examples/fff_example/build/test/mocks/test_foo/mock_zzz.c +25 -0
  1202. data/plugins/fff/examples/fff_example/build/test/mocks/test_foo/mock_zzz.h +25 -0
  1203. data/plugins/fff/examples/fff_example/build/test/out/test_event_processor/cmock.o +0 -0
  1204. data/plugins/fff/examples/fff_example/build/test/out/test_event_processor/event_processor.o +0 -0
  1205. data/plugins/fff/examples/fff_example/build/test/out/test_event_processor/mock_display.o +0 -0
  1206. data/plugins/fff/examples/fff_example/build/test/out/test_event_processor/test_event_processor.o +0 -0
  1207. data/plugins/fff/examples/fff_example/build/test/out/test_event_processor/test_event_processor.out +0 -0
  1208. data/plugins/fff/examples/fff_example/build/test/out/test_event_processor/test_event_processor_runner.o +0 -0
  1209. data/plugins/fff/examples/fff_example/build/test/out/test_event_processor/unity.o +0 -0
  1210. data/plugins/fff/examples/fff_example/build/test/out/test_foo/cmock.o +0 -0
  1211. data/plugins/fff/examples/fff_example/build/test/out/test_foo/foo.o +0 -0
  1212. data/plugins/fff/examples/fff_example/build/test/out/test_foo/mock_bar.o +0 -0
  1213. data/plugins/fff/examples/fff_example/build/test/out/test_foo/mock_zzz.o +0 -0
  1214. data/plugins/fff/examples/fff_example/build/test/out/test_foo/test_foo.o +0 -0
  1215. data/plugins/fff/examples/fff_example/build/test/out/test_foo/test_foo.out +0 -0
  1216. data/plugins/fff/examples/fff_example/build/test/out/test_foo/test_foo_runner.o +0 -0
  1217. data/plugins/fff/examples/fff_example/build/test/out/test_foo/unity.o +0 -0
  1218. data/plugins/fff/examples/fff_example/build/test/preprocess/files/test_event_processor/display.h +38 -0
  1219. data/plugins/fff/examples/fff_example/build/test/preprocess/files/test_event_processor/test_event_processor.c +140 -0
  1220. data/plugins/fff/examples/fff_example/build/test/preprocess/files/test_foo/bar.h +32 -0
  1221. data/plugins/fff/examples/fff_example/build/test/preprocess/files/test_foo/test_foo.c +58 -0
  1222. data/plugins/fff/examples/fff_example/build/test/preprocess/files/test_foo/zzz.h +18 -0
  1223. data/plugins/fff/examples/fff_example/build/test/preprocess/includes/test_event_processor/display.h.yml +10 -0
  1224. data/plugins/fff/examples/fff_example/build/test/preprocess/includes/test_event_processor/test_event_processor.c.yml +12 -0
  1225. data/plugins/fff/examples/fff_example/build/test/preprocess/includes/test_foo/bar.h.yml +10 -0
  1226. data/plugins/fff/examples/fff_example/build/test/preprocess/includes/test_foo/test_foo.c.yml +13 -0
  1227. data/plugins/fff/examples/fff_example/build/test/preprocess/includes/test_foo/zzz.h.yml +9 -0
  1228. data/plugins/fff/examples/fff_example/build/test/results/test_event_processor.pass +43 -0
  1229. data/plugins/fff/examples/fff_example/build/test/results/test_foo.pass +31 -0
  1230. data/plugins/fff/examples/fff_example/build/test/runners/test_event_processor_runner.c +148 -0
  1231. data/plugins/fff/examples/fff_example/build/test/runners/test_foo_runner.c +146 -0
  1232. data/plugins/fff/examples/fff_example/build/vendor/cmock/src/cmock.c +234 -0
  1233. data/plugins/fff/examples/fff_example/build/vendor/cmock/src/cmock.h +52 -0
  1234. data/plugins/fff/examples/fff_example/build/vendor/cmock/src/cmock_internals.h +96 -0
  1235. data/plugins/fff/examples/fff_example/build/vendor/cmock/src/meson.build +12 -0
  1236. data/plugins/fff/examples/fff_example/build/vendor/unity/src/meson.build +17 -0
  1237. data/plugins/fff/examples/fff_example/build/vendor/unity/src/unity.c +2471 -0
  1238. data/plugins/fff/examples/fff_example/build/vendor/unity/src/unity.h +702 -0
  1239. data/plugins/fff/examples/fff_example/build/vendor/unity/src/unity_internals.h +1153 -0
  1240. data/plugins/fff/examples/fff_example/project.yml +145 -0
  1241. data/plugins/fff/examples/fff_example/src/bar.c +8 -0
  1242. data/plugins/fff/examples/fff_example/src/bar.h +21 -0
  1243. data/plugins/fff/examples/fff_example/src/custom_types.h +13 -0
  1244. data/plugins/fff/examples/fff_example/src/display.c +14 -0
  1245. data/plugins/fff/examples/fff_example/src/display.h +23 -0
  1246. data/plugins/fff/examples/fff_example/src/event_processor.c +100 -0
  1247. data/plugins/fff/examples/fff_example/src/event_processor.h +18 -0
  1248. data/plugins/fff/examples/fff_example/src/foo.c +23 -0
  1249. data/plugins/fff/examples/fff_example/src/foo.h +15 -0
  1250. data/plugins/fff/examples/fff_example/src/subfolder/zzz.c +8 -0
  1251. data/plugins/fff/examples/fff_example/src/subfolder/zzz.h +13 -0
  1252. data/plugins/fff/examples/fff_example/test/test_event_processor.c +160 -0
  1253. data/plugins/fff/examples/fff_example/test/test_foo.c +54 -0
  1254. data/plugins/fff/lib/fff.rb +90 -0
  1255. data/plugins/fff/lib/fff_mock_generator.rb +170 -0
  1256. data/plugins/fff/spec/fff_mock_header_generator_spec.rb +311 -0
  1257. data/plugins/fff/spec/fff_mock_source_generator_spec.rb +156 -0
  1258. data/plugins/fff/spec/header_generator.rb +58 -0
  1259. data/plugins/fff/spec/spec_helper.rb +103 -0
  1260. data/plugins/fff/src/fff_unity_helper.h +40 -0
  1261. data/plugins/fff/vendor/fff/LICENSE +25 -0
  1262. data/plugins/fff/vendor/fff/Makefile +10 -0
  1263. data/plugins/fff/vendor/fff/README.md +454 -0
  1264. data/plugins/fff/vendor/fff/buildandtest +15 -0
  1265. data/plugins/fff/vendor/fff/examples/Makefile +7 -0
  1266. data/plugins/fff/vendor/fff/examples/driver_testing/Makefile +64 -0
  1267. data/plugins/fff/vendor/fff/examples/driver_testing/driver.c +32 -0
  1268. data/plugins/fff/vendor/fff/examples/driver_testing/driver.h +21 -0
  1269. data/plugins/fff/vendor/fff/examples/driver_testing/driver.test.cpp +58 -0
  1270. data/plugins/fff/vendor/fff/examples/driver_testing/driver.test.fff.cpp +70 -0
  1271. data/plugins/fff/vendor/fff/examples/driver_testing/hardware_abstraction.h +25 -0
  1272. data/plugins/fff/vendor/fff/examples/driver_testing/registers.h +23 -0
  1273. data/plugins/fff/vendor/fff/examples/embedded_ui/DISPLAY.h +27 -0
  1274. data/plugins/fff/vendor/fff/examples/embedded_ui/Kata.txt +25 -0
  1275. data/plugins/fff/vendor/fff/examples/embedded_ui/Makefile +67 -0
  1276. data/plugins/fff/vendor/fff/examples/embedded_ui/SYSTEM.h +31 -0
  1277. data/plugins/fff/vendor/fff/examples/embedded_ui/UI.c +56 -0
  1278. data/plugins/fff/vendor/fff/examples/embedded_ui/UI.h +22 -0
  1279. data/plugins/fff/vendor/fff/examples/embedded_ui/UI_test_ansic.c +191 -0
  1280. data/plugins/fff/vendor/fff/examples/embedded_ui/UI_test_cpp.cpp +144 -0
  1281. data/plugins/fff/vendor/fff/examples/embedded_ui/test_suite_template.c +42 -0
  1282. data/plugins/fff/vendor/fff/fakegen.rb +428 -0
  1283. data/plugins/fff/vendor/fff/fff.h +5122 -0
  1284. data/plugins/fff/vendor/fff/gtest/Makefile +22 -0
  1285. data/plugins/fff/vendor/fff/gtest/gtest-all.cc +9118 -0
  1286. data/plugins/fff/vendor/fff/gtest/gtest-main.cc +6 -0
  1287. data/plugins/fff/vendor/fff/gtest/gtest.h +19547 -0
  1288. data/plugins/fff/vendor/fff/test/Makefile +81 -0
  1289. data/plugins/fff/vendor/fff/test/c_test_framework.h +25 -0
  1290. data/plugins/fff/vendor/fff/test/fff_test_c.c +116 -0
  1291. data/plugins/fff/vendor/fff/test/fff_test_cpp.cpp +53 -0
  1292. data/plugins/fff/vendor/fff/test/fff_test_global_c.c +84 -0
  1293. data/plugins/fff/vendor/fff/test/fff_test_global_cpp.cpp +31 -0
  1294. data/plugins/fff/vendor/fff/test/global_fakes.c +21 -0
  1295. data/plugins/fff/vendor/fff/test/global_fakes.h +47 -0
  1296. data/plugins/fff/vendor/fff/test/test_cases.include +276 -0
  1297. data/plugins/gcov/README.md +631 -171
  1298. data/plugins/gcov/config/defaults.yml +27 -52
  1299. data/plugins/gcov/config/defaults_gcov.rb +109 -0
  1300. data/plugins/gcov/gcov.rake +43 -152
  1301. data/plugins/gcov/lib/gcov.rb +234 -88
  1302. data/plugins/gcov/lib/gcov_constants.rb +25 -10
  1303. data/plugins/gcov/lib/gcovr_reportinator.rb +245 -151
  1304. data/plugins/gcov/lib/reportgenerator_reportinator.rb +93 -68
  1305. data/plugins/gcov/lib/reportinator_helper.rb +23 -8
  1306. data/plugins/module_generator/README.md +123 -16
  1307. data/plugins/module_generator/Rakefile +205 -0
  1308. data/plugins/module_generator/assets/stubby1.h +13 -0
  1309. data/plugins/module_generator/assets/stubby2.h +15 -0
  1310. data/plugins/module_generator/config/module_generator.yml +12 -2
  1311. data/plugins/module_generator/example/build/test/cache/input.yml +269 -0
  1312. data/plugins/module_generator/example/build/vendor/cmock/src/meson.build +12 -0
  1313. data/plugins/module_generator/example/build/vendor/unity/src/meson.build +17 -0
  1314. data/plugins/module_generator/example/project.yml +175 -0
  1315. data/plugins/module_generator/lib/module_generator.rb +63 -20
  1316. data/plugins/module_generator/module_generator.rake +7 -0
  1317. data/plugins/report_build_warnings_log/README.md +40 -0
  1318. data/plugins/report_build_warnings_log/config/defaults.yml +12 -0
  1319. data/plugins/report_build_warnings_log/lib/report_build_warnings_log.rb +143 -0
  1320. data/plugins/report_tests_gtestlike_stdout/README.md +96 -0
  1321. data/plugins/report_tests_gtestlike_stdout/assets/template.erb +83 -0
  1322. data/plugins/report_tests_gtestlike_stdout/config/report_tests_gtestlike_stdout.yml +11 -0
  1323. data/plugins/report_tests_gtestlike_stdout/lib/report_tests_gtestlike_stdout.rb +69 -0
  1324. data/plugins/report_tests_ide_stdout/README.md +62 -0
  1325. data/plugins/report_tests_ide_stdout/config/report_tests_ide_stdout.yml +11 -0
  1326. data/plugins/report_tests_ide_stdout/lib/report_tests_ide_stdout.rb +72 -0
  1327. data/plugins/report_tests_log_factory/README.md +446 -0
  1328. data/plugins/report_tests_log_factory/config/defaults.yml +11 -0
  1329. data/plugins/report_tests_log_factory/lib/cppunit_tests_reporter.rb +100 -0
  1330. data/plugins/report_tests_log_factory/lib/html_tests_reporter.rb +181 -0
  1331. data/plugins/report_tests_log_factory/lib/json_tests_reporter.rb +72 -0
  1332. data/plugins/report_tests_log_factory/lib/junit_tests_reporter.rb +197 -0
  1333. data/plugins/report_tests_log_factory/lib/report_tests_log_factory.rb +135 -0
  1334. data/plugins/report_tests_log_factory/lib/tests_reporter.rb +70 -0
  1335. data/plugins/report_tests_log_factory/sample_html_report.png +0 -0
  1336. data/plugins/report_tests_pretty_stdout/README.md +54 -0
  1337. data/plugins/report_tests_pretty_stdout/assets/template.erb +63 -0
  1338. data/plugins/report_tests_pretty_stdout/config/report_tests_pretty_stdout.yml +11 -0
  1339. data/plugins/report_tests_pretty_stdout/lib/report_tests_pretty_stdout.rb +73 -0
  1340. data/plugins/report_tests_raw_output_log/README.md +50 -0
  1341. data/plugins/report_tests_raw_output_log/lib/report_tests_raw_output_log.rb +129 -0
  1342. data/plugins/report_tests_teamcity_stdout/README.md +94 -0
  1343. data/plugins/report_tests_teamcity_stdout/config/defaults.yml +12 -0
  1344. data/plugins/report_tests_teamcity_stdout/config/report_tests_teamcity_stdout.yml +11 -0
  1345. data/plugins/report_tests_teamcity_stdout/lib/report_tests_teamcity_stdout.rb +163 -0
  1346. data/spec/config_walkinator_spec.rb +62 -0
  1347. data/spec/configurator_builder_spec.rb +9 -0
  1348. data/spec/configurator_helper_spec.rb +7 -0
  1349. data/spec/configurator_spec.rb +8 -0
  1350. data/spec/file_finder_helper_spec.rb +30 -10
  1351. data/spec/gcov/gcov_deployment_spec.rb +82 -20
  1352. data/spec/gcov/gcov_test_cases_spec.rb +211 -64
  1353. data/spec/generator_test_results_sanity_checker_spec.rb +26 -10
  1354. data/spec/generator_test_results_spec.rb +44 -20
  1355. data/spec/manual/stress_test.rb +31 -0
  1356. data/spec/preprocessinator_extractor_spec.rb +303 -54
  1357. data/spec/preprocessinator_includes_handler_spec.rb +269 -233
  1358. data/spec/reportinator_spec.rb +7 -0
  1359. data/spec/spec_helper.rb +8 -3
  1360. data/spec/spec_system_helper.rb +522 -184
  1361. data/spec/support/other_target.yml +7 -0
  1362. data/spec/support/target.yml +7 -0
  1363. data/spec/support/test_example.fail +3 -2
  1364. data/spec/support/test_example.pass +3 -2
  1365. data/spec/support/test_example_empty.pass +3 -2
  1366. data/spec/support/test_example_ignore.pass +3 -2
  1367. data/spec/support/test_example_mangled.pass +3 -2
  1368. data/spec/support/test_example_with_time.pass +3 -2
  1369. data/spec/system/deployment_as_gem_spec.rb +76 -0
  1370. data/spec/system/deployment_as_vendor_spec.rb +123 -0
  1371. data/spec/system/example_temp_sensor_spec.rb +264 -0
  1372. data/spec/system/upgrade_as_vendor_spec.rb +68 -0
  1373. data/spec/system_utils_spec.rb +15 -6
  1374. data/spec/test_context_extractor_spec.rb +358 -0
  1375. data/spec/tool_executor_helper_spec.rb +116 -207
  1376. data/spec/uncategorized_specs_spec.rb +15 -0
  1377. data/vendor/c_exception/README.md +1 -12
  1378. data/vendor/c_exception/docs/CException.md +4 -47
  1379. data/vendor/c_exception/docs/CODE_OF_CONDUCT.md +138 -0
  1380. data/vendor/c_exception/docs/CONTRIBUTING.md +238 -0
  1381. data/vendor/c_exception/lib/CException.c +13 -0
  1382. data/vendor/c_exception/lib/CException.h +8 -1
  1383. data/vendor/c_exception/license.txt +22 -0
  1384. data/vendor/c_exception/project.yml +232 -6
  1385. data/vendor/c_exception/test/TestException.c +10 -3
  1386. data/vendor/c_exception/test/support/CExceptionConfig.h +7 -0
  1387. data/vendor/cmock/Gemfile +0 -7
  1388. data/vendor/cmock/LICENSE.txt +3 -1
  1389. data/vendor/cmock/README.md +27 -11
  1390. data/vendor/cmock/cmock.gemspec +34 -0
  1391. data/vendor/cmock/config/production_environment.rb +7 -6
  1392. data/vendor/cmock/config/test_environment.rb +7 -6
  1393. data/vendor/cmock/docs/CMockChangeLog.md +166 -0
  1394. data/vendor/cmock/docs/CMockKnownIssues.md +13 -0
  1395. data/vendor/cmock/docs/CMock_ArgumentValidation.md +274 -0
  1396. data/vendor/cmock/docs/CMock_Summary.md +43 -8
  1397. data/vendor/cmock/docs/CODE_OF_CONDUCT.md +138 -0
  1398. data/vendor/cmock/docs/CONTRIBUTING.md +238 -0
  1399. data/vendor/cmock/examples/make_example/Makefile +1 -1
  1400. data/vendor/cmock/examples/make_example/src/foo.c +7 -0
  1401. data/vendor/cmock/examples/make_example/src/foo.h +7 -0
  1402. data/vendor/cmock/examples/make_example/src/main.c +7 -0
  1403. data/vendor/cmock/examples/make_example/test/test_foo.c +8 -1
  1404. data/vendor/cmock/examples/make_example/test/test_main.c +7 -0
  1405. data/vendor/cmock/examples/temp_sensor/rakefile.rb +8 -1
  1406. data/vendor/cmock/examples/temp_sensor/rakefile_helper.rb +33 -21
  1407. data/vendor/cmock/examples/temp_sensor/src/AT91SAM7X256.h +20 -12
  1408. data/vendor/cmock/examples/temp_sensor/src/AdcConductor.c +7 -0
  1409. data/vendor/cmock/examples/temp_sensor/src/AdcConductor.h +7 -0
  1410. data/vendor/cmock/examples/temp_sensor/src/AdcHardware.c +7 -0
  1411. data/vendor/cmock/examples/temp_sensor/src/AdcHardware.h +7 -0
  1412. data/vendor/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.c +7 -0
  1413. data/vendor/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.h +7 -0
  1414. data/vendor/cmock/examples/temp_sensor/src/AdcModel.c +7 -0
  1415. data/vendor/cmock/examples/temp_sensor/src/AdcModel.h +7 -0
  1416. data/vendor/cmock/examples/temp_sensor/src/AdcTemperatureSensor.c +7 -0
  1417. data/vendor/cmock/examples/temp_sensor/src/AdcTemperatureSensor.h +7 -0
  1418. data/vendor/cmock/examples/temp_sensor/src/Executor.c +7 -0
  1419. data/vendor/cmock/examples/temp_sensor/src/Executor.h +7 -0
  1420. data/vendor/cmock/examples/temp_sensor/src/IntrinsicsWrapper.c +7 -0
  1421. data/vendor/cmock/examples/temp_sensor/src/IntrinsicsWrapper.h +7 -0
  1422. data/vendor/cmock/examples/temp_sensor/src/Main.c +7 -0
  1423. data/vendor/cmock/examples/temp_sensor/src/Main.h +7 -0
  1424. data/vendor/cmock/examples/temp_sensor/src/Model.c +7 -0
  1425. data/vendor/cmock/examples/temp_sensor/src/Model.h +7 -0
  1426. data/vendor/cmock/examples/temp_sensor/src/ModelConfig.h +7 -0
  1427. data/vendor/cmock/examples/temp_sensor/src/TaskScheduler.c +7 -0
  1428. data/vendor/cmock/examples/temp_sensor/src/TaskScheduler.h +7 -0
  1429. data/vendor/cmock/examples/temp_sensor/src/TemperatureCalculator.c +7 -0
  1430. data/vendor/cmock/examples/temp_sensor/src/TemperatureCalculator.h +7 -0
  1431. data/vendor/cmock/examples/temp_sensor/src/TemperatureFilter.c +15 -5
  1432. data/vendor/cmock/examples/temp_sensor/src/TemperatureFilter.h +7 -0
  1433. data/vendor/cmock/examples/temp_sensor/src/TimerConductor.c +7 -0
  1434. data/vendor/cmock/examples/temp_sensor/src/TimerConductor.h +7 -0
  1435. data/vendor/cmock/examples/temp_sensor/src/TimerConfigurator.c +7 -0
  1436. data/vendor/cmock/examples/temp_sensor/src/TimerConfigurator.h +7 -0
  1437. data/vendor/cmock/examples/temp_sensor/src/TimerHardware.c +7 -0
  1438. data/vendor/cmock/examples/temp_sensor/src/TimerHardware.h +7 -0
  1439. data/vendor/cmock/examples/temp_sensor/src/TimerInterruptConfigurator.c +8 -1
  1440. data/vendor/cmock/examples/temp_sensor/src/TimerInterruptConfigurator.h +7 -0
  1441. data/vendor/cmock/examples/temp_sensor/src/TimerInterruptHandler.c +7 -0
  1442. data/vendor/cmock/examples/temp_sensor/src/TimerInterruptHandler.h +7 -0
  1443. data/vendor/cmock/examples/temp_sensor/src/TimerModel.c +7 -0
  1444. data/vendor/cmock/examples/temp_sensor/src/TimerModel.h +7 -0
  1445. data/vendor/cmock/examples/temp_sensor/src/Types.h +7 -0
  1446. data/vendor/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c +7 -0
  1447. data/vendor/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +7 -0
  1448. data/vendor/cmock/examples/temp_sensor/src/UsartConductor.c +7 -0
  1449. data/vendor/cmock/examples/temp_sensor/src/UsartConductor.h +7 -0
  1450. data/vendor/cmock/examples/temp_sensor/src/UsartConfigurator.c +7 -0
  1451. data/vendor/cmock/examples/temp_sensor/src/UsartConfigurator.h +7 -0
  1452. data/vendor/cmock/examples/temp_sensor/src/UsartHardware.c +7 -0
  1453. data/vendor/cmock/examples/temp_sensor/src/UsartHardware.h +7 -0
  1454. data/vendor/cmock/examples/temp_sensor/src/UsartModel.c +7 -0
  1455. data/vendor/cmock/examples/temp_sensor/src/UsartModel.h +7 -0
  1456. data/vendor/cmock/examples/temp_sensor/src/UsartPutChar.c +7 -0
  1457. data/vendor/cmock/examples/temp_sensor/src/UsartPutChar.h +7 -0
  1458. data/vendor/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.c +7 -0
  1459. data/vendor/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.h +7 -0
  1460. data/vendor/cmock/examples/temp_sensor/targets/gcc.yml +97 -0
  1461. data/vendor/cmock/examples/temp_sensor/targets/iar_v4.yml +143 -0
  1462. data/vendor/cmock/examples/temp_sensor/targets/iar_v5.yml +132 -0
  1463. data/vendor/cmock/examples/temp_sensor/test/TestAdcConductor.c +7 -0
  1464. data/vendor/cmock/examples/temp_sensor/test/TestAdcHardware.c +7 -0
  1465. data/vendor/cmock/examples/temp_sensor/test/TestAdcHardwareConfigurator.c +7 -0
  1466. data/vendor/cmock/examples/temp_sensor/test/TestAdcModel.c +7 -0
  1467. data/vendor/cmock/examples/temp_sensor/test/TestAdcTemperatureSensor.c +7 -0
  1468. data/vendor/cmock/examples/temp_sensor/test/TestExecutor.c +7 -0
  1469. data/vendor/cmock/examples/temp_sensor/test/TestMain.c +7 -0
  1470. data/vendor/cmock/examples/temp_sensor/test/TestModel.c +7 -0
  1471. data/vendor/cmock/examples/temp_sensor/test/TestTaskScheduler.c +7 -0
  1472. data/vendor/cmock/examples/temp_sensor/test/TestTemperatureCalculator.c +7 -0
  1473. data/vendor/cmock/examples/temp_sensor/test/TestTemperatureFilter.c +7 -0
  1474. data/vendor/cmock/examples/temp_sensor/test/TestTimerConductor.c +7 -0
  1475. data/vendor/cmock/examples/temp_sensor/test/TestTimerConfigurator.c +7 -0
  1476. data/vendor/cmock/examples/temp_sensor/test/TestTimerHardware.c +7 -0
  1477. data/vendor/cmock/examples/temp_sensor/test/TestTimerInterruptConfigurator.c +9 -2
  1478. data/vendor/cmock/examples/temp_sensor/test/TestTimerInterruptHandler.c +7 -0
  1479. data/vendor/cmock/examples/temp_sensor/test/TestTimerModel.c +7 -0
  1480. data/vendor/cmock/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c +7 -0
  1481. data/vendor/cmock/examples/temp_sensor/test/TestUsartConductor.c +7 -0
  1482. data/vendor/cmock/examples/temp_sensor/test/TestUsartConfigurator.c +7 -0
  1483. data/vendor/cmock/examples/temp_sensor/test/TestUsartHardware.c +7 -0
  1484. data/vendor/cmock/examples/temp_sensor/test/TestUsartModel.c +7 -0
  1485. data/vendor/cmock/examples/temp_sensor/test/TestUsartPutChar.c +7 -0
  1486. data/vendor/cmock/examples/temp_sensor/test/TestUsartTransmitBufferStatus.c +7 -0
  1487. data/vendor/cmock/lib/cmock.rb +27 -11
  1488. data/vendor/cmock/lib/cmock_config.rb +22 -12
  1489. data/vendor/cmock/lib/cmock_file_writer.rb +12 -12
  1490. data/vendor/cmock/lib/cmock_generator.rb +111 -83
  1491. data/vendor/cmock/lib/cmock_generator_plugin_array.rb +15 -10
  1492. data/vendor/cmock/lib/cmock_generator_plugin_callback.rb +7 -7
  1493. data/vendor/cmock/lib/cmock_generator_plugin_cexception.rb +7 -7
  1494. data/vendor/cmock/lib/cmock_generator_plugin_expect.rb +14 -9
  1495. data/vendor/cmock/lib/cmock_generator_plugin_expect_any_args.rb +11 -9
  1496. data/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +10 -8
  1497. data/vendor/cmock/lib/cmock_generator_plugin_ignore_arg.rb +7 -0
  1498. data/vendor/cmock/lib/cmock_generator_plugin_ignore_stateless.rb +10 -8
  1499. data/vendor/cmock/lib/cmock_generator_plugin_return_thru_ptr.rb +31 -8
  1500. data/vendor/cmock/lib/cmock_generator_utils.rb +11 -10
  1501. data/vendor/cmock/lib/cmock_header_parser.rb +70 -62
  1502. data/vendor/cmock/lib/cmock_plugin_manager.rb +8 -7
  1503. data/vendor/cmock/lib/cmock_unityhelper_parser.rb +13 -8
  1504. data/vendor/cmock/lib/cmock_version.rb +29 -0
  1505. data/vendor/cmock/scripts/create_makefile.rb +13 -6
  1506. data/vendor/cmock/scripts/create_mock.rb +7 -0
  1507. data/vendor/cmock/scripts/create_runner.rb +7 -0
  1508. data/vendor/cmock/scripts/test_summary.rb +7 -0
  1509. data/vendor/cmock/src/cmock.c +24 -2
  1510. data/vendor/cmock/src/cmock.h +9 -2
  1511. data/vendor/cmock/src/cmock_internals.h +7 -0
  1512. data/vendor/cmock/test/c/TestCMockC.c +8 -1
  1513. data/vendor/cmock/test/c/TestCMockC.yml +7 -0
  1514. data/vendor/cmock/test/c/TestCMockCDynamic.c +7 -0
  1515. data/vendor/cmock/test/c/TestCMockCDynamic.yml +7 -0
  1516. data/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +7 -0
  1517. data/vendor/cmock/test/c/TestCMockC_Runner.c +7 -0
  1518. data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X-EK.h +7 -0
  1519. data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256_inc.h +7 -0
  1520. data/vendor/cmock/test/iar/iar_v4/incIAR/ioat91sam7x256.h +7 -0
  1521. data/vendor/cmock/test/iar/iar_v4/srcIAR/Cstartup_SAM7.c +7 -0
  1522. data/vendor/cmock/test/iar/iar_v5/incIAR/AT91SAM7X-EK.h +7 -0
  1523. data/vendor/cmock/test/iar/iar_v5/incIAR/AT91SAM7X256_inc.h +7 -0
  1524. data/vendor/cmock/test/iar/iar_v5/incIAR/project.h +7 -0
  1525. data/vendor/cmock/test/iar/iar_v5/srcIAR/Cstartup_SAM7.c +7 -0
  1526. data/vendor/cmock/test/rakefile +6 -3
  1527. data/vendor/cmock/test/rakefile_helper.rb +25 -11
  1528. data/vendor/cmock/test/system/systest_generator.rb +6 -5
  1529. data/vendor/cmock/test/system/test_compilation/callingconv.h +7 -0
  1530. data/vendor/cmock/test/system/test_compilation/config.yml +7 -0
  1531. data/vendor/cmock/test/system/test_compilation/const.h +7 -0
  1532. data/vendor/cmock/test/system/test_compilation/inline.h +7 -0
  1533. data/vendor/cmock/test/system/test_compilation/osek.h +8 -1
  1534. data/vendor/cmock/test/system/test_compilation/parsing.h +12 -2
  1535. data/vendor/cmock/test/system/test_interactions/all_plugins_but_other_limits.yml +7 -0
  1536. data/vendor/cmock/test/system/test_interactions/all_plugins_coexist.yml +7 -0
  1537. data/vendor/cmock/test/system/test_interactions/array_and_pointer_handling.yml +7 -0
  1538. data/vendor/cmock/test/system/test_interactions/basic_expect_and_return.yml +7 -0
  1539. data/vendor/cmock/test/system/test_interactions/const_primitives_handling.yml +7 -0
  1540. data/vendor/cmock/test/system/test_interactions/doesnt_leave_details_behind.yml +7 -0
  1541. data/vendor/cmock/test/system/test_interactions/enforce_strict_ordering.yml +7 -0
  1542. data/vendor/cmock/test/system/test_interactions/expect_and_return_custom_types.yml +7 -0
  1543. data/vendor/cmock/test/system/test_interactions/expect_and_return_treat_as.yml +7 -0
  1544. data/vendor/cmock/test/system/test_interactions/expect_and_throw.yml +7 -0
  1545. data/vendor/cmock/test/system/test_interactions/expect_any_args.yml +7 -0
  1546. data/vendor/cmock/test/system/test_interactions/fancy_pointer_handling.yml +7 -0
  1547. data/vendor/cmock/test/system/test_interactions/function_pointer_handling.yml +7 -0
  1548. data/vendor/cmock/test/system/test_interactions/ignore_and_return.yml +7 -0
  1549. data/vendor/cmock/test/system/test_interactions/ignore_and_return_stateless.yml +7 -0
  1550. data/vendor/cmock/test/system/test_interactions/ignore_strict_mock_calling.yml +7 -0
  1551. data/vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml +7 -0
  1552. data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_1.yml +7 -0
  1553. data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_2.yml +7 -0
  1554. data/vendor/cmock/test/system/test_interactions/out_of_memory.yml +7 -0
  1555. data/vendor/cmock/test/system/test_interactions/parsing_challenges.yml +7 -0
  1556. data/vendor/cmock/test/system/test_interactions/return_thru_ptr_and_expect_any_args.yml +7 -0
  1557. data/vendor/cmock/test/system/test_interactions/return_thru_ptr_ignore_arg.yml +7 -0
  1558. data/vendor/cmock/test/system/test_interactions/skeleton.yml +7 -0
  1559. data/vendor/cmock/test/system/test_interactions/skeleton_update.yml +8 -1
  1560. data/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return.yml +7 -0
  1561. data/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return_with_plugins.yml +7 -0
  1562. data/vendor/cmock/test/system/test_interactions/stubs_with_callbacks.yml +7 -0
  1563. data/vendor/cmock/test/system/test_interactions/unity_64bit_support.yml +7 -0
  1564. data/vendor/cmock/test/system/test_interactions/unity_ignores.yml +7 -0
  1565. data/vendor/cmock/test/system/test_interactions/unity_void_pointer_compare.yml +7 -0
  1566. data/vendor/cmock/test/system/test_interactions/wrong_expect_and_return.yml +149 -0
  1567. data/vendor/cmock/test/targets/clang_strict.yml +7 -0
  1568. data/vendor/cmock/test/targets/gcc.yml +7 -0
  1569. data/vendor/cmock/test/targets/gcc_64.yml +7 -0
  1570. data/vendor/cmock/test/targets/gcc_tiny.yml +7 -0
  1571. data/vendor/cmock/test/targets/iar_arm_v4.yml +7 -0
  1572. data/vendor/cmock/test/targets/iar_arm_v5.yml +7 -0
  1573. data/vendor/cmock/test/test_helper.rb +6 -5
  1574. data/vendor/cmock/test/unit/cmock_config_test.rb +6 -5
  1575. data/vendor/cmock/test/unit/cmock_config_test.yml +7 -0
  1576. data/vendor/cmock/test/unit/cmock_file_writer_test.rb +6 -5
  1577. data/vendor/cmock/test/unit/cmock_generator_main_test.rb +75 -58
  1578. data/vendor/cmock/test/unit/cmock_generator_plugin_array_test.rb +12 -8
  1579. data/vendor/cmock/test/unit/cmock_generator_plugin_callback_test.rb +6 -5
  1580. data/vendor/cmock/test/unit/cmock_generator_plugin_cexception_test.rb +6 -5
  1581. data/vendor/cmock/test/unit/cmock_generator_plugin_expect_a_test.rb +12 -8
  1582. data/vendor/cmock/test/unit/cmock_generator_plugin_expect_any_args_test.rb +11 -7
  1583. data/vendor/cmock/test/unit/cmock_generator_plugin_expect_b_test.rb +12 -8
  1584. data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_arg_test.rb +6 -5
  1585. data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_stateless_test.rb +13 -8
  1586. data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +13 -8
  1587. data/vendor/cmock/test/unit/cmock_generator_plugin_return_thru_ptr_test.rb +87 -14
  1588. data/vendor/cmock/test/unit/cmock_generator_utils_test.rb +6 -5
  1589. data/vendor/cmock/test/unit/cmock_header_parser_test.rb +94 -51
  1590. data/vendor/cmock/test/unit/cmock_plugin_manager_test.rb +6 -5
  1591. data/vendor/cmock/test/unit/cmock_unityhelper_parser_test.rb +6 -5
  1592. data/vendor/cmock/vendor/c_exception/README.md +1 -12
  1593. data/vendor/cmock/vendor/c_exception/docs/CException.md +4 -47
  1594. data/vendor/cmock/vendor/c_exception/docs/CODE_OF_CONDUCT.md +138 -0
  1595. data/vendor/cmock/vendor/c_exception/docs/CONTRIBUTING.md +238 -0
  1596. data/vendor/cmock/vendor/c_exception/lib/CException.c +13 -0
  1597. data/vendor/cmock/vendor/c_exception/lib/CException.h +8 -1
  1598. data/vendor/cmock/vendor/c_exception/license.txt +22 -0
  1599. data/vendor/cmock/vendor/c_exception/project.yml +232 -6
  1600. data/vendor/cmock/vendor/c_exception/test/TestException.c +10 -3
  1601. data/vendor/cmock/vendor/c_exception/test/support/CExceptionConfig.h +7 -0
  1602. data/vendor/cmock/vendor/unity/CMakeLists.txt +46 -33
  1603. data/vendor/cmock/vendor/unity/LICENSE.txt +1 -1
  1604. data/vendor/cmock/vendor/unity/README.md +106 -72
  1605. data/vendor/cmock/vendor/unity/auto/__init__.py +7 -0
  1606. data/vendor/cmock/vendor/unity/auto/colour_prompt.rb +6 -5
  1607. data/vendor/cmock/vendor/unity/auto/colour_reporter.rb +7 -6
  1608. data/vendor/cmock/vendor/unity/auto/extract_version.py +22 -0
  1609. data/vendor/cmock/vendor/unity/auto/generate_config.yml +7 -0
  1610. data/vendor/cmock/vendor/unity/auto/generate_module.rb +32 -27
  1611. data/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +71 -35
  1612. data/vendor/cmock/vendor/unity/auto/parse_output.rb +90 -22
  1613. data/vendor/cmock/vendor/unity/auto/run_test.erb +2 -2
  1614. data/vendor/cmock/vendor/unity/auto/stylize_as_junit.py +161 -0
  1615. data/vendor/cmock/vendor/unity/auto/stylize_as_junit.rb +8 -6
  1616. data/vendor/cmock/vendor/unity/auto/test_file_filter.rb +11 -8
  1617. data/vendor/cmock/vendor/unity/auto/type_sanitizer.rb +8 -1
  1618. data/vendor/cmock/vendor/unity/auto/unity_test_summary.py +7 -6
  1619. data/vendor/cmock/vendor/unity/auto/unity_test_summary.rb +13 -8
  1620. data/vendor/cmock/vendor/unity/auto/yaml_helper.rb +23 -0
  1621. data/vendor/cmock/vendor/unity/docs/CODE_OF_CONDUCT.md +138 -0
  1622. data/vendor/cmock/vendor/unity/docs/CONTRIBUTING.md +238 -0
  1623. data/vendor/cmock/vendor/unity/docs/MesonGeneratorRunner.md +18 -0
  1624. data/vendor/cmock/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +107 -126
  1625. data/vendor/cmock/vendor/unity/docs/UnityAssertionsReference.md +273 -244
  1626. data/vendor/cmock/vendor/unity/docs/UnityChangeLog.md +110 -0
  1627. data/vendor/cmock/vendor/unity/docs/UnityConfigurationGuide.md +385 -294
  1628. data/vendor/cmock/vendor/unity/docs/UnityGettingStartedGuide.md +112 -121
  1629. data/vendor/cmock/vendor/unity/docs/UnityHelperScriptsGuide.md +366 -111
  1630. data/vendor/cmock/vendor/unity/docs/UnityKnownIssues.md +13 -0
  1631. data/vendor/cmock/vendor/unity/examples/example_1/makefile +6 -5
  1632. data/vendor/cmock/vendor/unity/examples/example_1/meson.build +48 -0
  1633. data/vendor/cmock/vendor/unity/examples/example_1/readme.txt +8 -1
  1634. data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.c +6 -0
  1635. data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.h +6 -0
  1636. data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.c +6 -0
  1637. data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.h +6 -0
  1638. data/vendor/cmock/vendor/unity/examples/example_1/subprojects/unity.wrap +3 -0
  1639. data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode.c +6 -0
  1640. data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode2.c +6 -0
  1641. data/vendor/cmock/vendor/unity/examples/example_2/makefile +6 -5
  1642. data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.c +6 -0
  1643. data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.h +6 -0
  1644. data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.c +6 -0
  1645. data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.h +6 -0
  1646. data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode.c +7 -0
  1647. data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode2.c +7 -0
  1648. data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +7 -0
  1649. data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +7 -0
  1650. data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/all_tests.c +7 -0
  1651. data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.c +7 -0
  1652. data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.h +7 -0
  1653. data/vendor/cmock/vendor/unity/examples/example_3/rakefile.rb +7 -0
  1654. data/vendor/cmock/vendor/unity/examples/example_3/rakefile_helper.rb +26 -21
  1655. data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.c +6 -0
  1656. data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.h +6 -0
  1657. data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.c +6 -0
  1658. data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.h +6 -0
  1659. data/vendor/cmock/vendor/unity/examples/example_3/target_gcc_32.yml +7 -0
  1660. data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode.c +6 -0
  1661. data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode2.c +6 -0
  1662. data/vendor/cmock/vendor/unity/examples/example_4/meson.build +2 -2
  1663. data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode.c +6 -0
  1664. data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode.h +6 -0
  1665. data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode2.c +6 -0
  1666. data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode2.h +6 -0
  1667. data/vendor/cmock/vendor/unity/examples/example_4/subprojects/unity.wrap +3 -1
  1668. data/vendor/cmock/vendor/unity/examples/example_4/test/TestProductionCode.c +6 -0
  1669. data/vendor/cmock/vendor/unity/examples/example_4/test/TestProductionCode2.c +6 -0
  1670. data/vendor/cmock/vendor/unity/examples/example_4/test/test_runners/meson.build +3 -3
  1671. data/vendor/cmock/vendor/unity/examples/unity_config.h +8 -1
  1672. data/vendor/cmock/vendor/unity/extras/bdd/readme.md +40 -0
  1673. data/vendor/cmock/vendor/unity/extras/bdd/src/unity_bdd.h +44 -0
  1674. data/vendor/cmock/vendor/unity/extras/bdd/test/meson.build +9 -0
  1675. data/vendor/cmock/vendor/unity/extras/bdd/test/test_bdd.c +129 -0
  1676. data/vendor/cmock/vendor/unity/extras/fixture/readme.md +16 -19
  1677. data/vendor/cmock/vendor/unity/extras/fixture/src/meson.build +10 -0
  1678. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +6 -6
  1679. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.h +18 -7
  1680. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +6 -6
  1681. data/vendor/cmock/vendor/unity/extras/fixture/test/main/AllTests.c +6 -6
  1682. data/vendor/cmock/vendor/unity/extras/fixture/test/template_fixture_tests.c +6 -6
  1683. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +6 -6
  1684. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +6 -6
  1685. data/vendor/cmock/vendor/unity/extras/memory/readme.md +27 -34
  1686. data/vendor/cmock/vendor/unity/extras/memory/src/meson.build +9 -0
  1687. data/vendor/cmock/vendor/unity/extras/memory/src/unity_memory.c +6 -5
  1688. data/vendor/cmock/vendor/unity/extras/memory/src/unity_memory.h +6 -5
  1689. data/vendor/cmock/vendor/unity/extras/memory/test/Makefile +7 -0
  1690. data/vendor/cmock/vendor/unity/extras/memory/test/unity_memory_Test.c +6 -5
  1691. data/vendor/cmock/vendor/unity/extras/memory/test/unity_memory_TestRunner.c +6 -5
  1692. data/vendor/cmock/vendor/unity/extras/memory/test/unity_output_Spy.c +6 -5
  1693. data/vendor/cmock/vendor/unity/extras/memory/test/unity_output_Spy.h +6 -5
  1694. data/vendor/cmock/vendor/unity/library.json +25 -0
  1695. data/vendor/cmock/vendor/unity/meson.build +71 -5
  1696. data/vendor/cmock/vendor/unity/meson_options.txt +3 -0
  1697. data/vendor/cmock/vendor/unity/platformio-build.py +24 -0
  1698. data/vendor/cmock/vendor/unity/src/meson.build +11 -5
  1699. data/vendor/cmock/vendor/unity/src/unity.c +535 -144
  1700. data/vendor/cmock/vendor/unity/src/unity.h +50 -13
  1701. data/vendor/cmock/vendor/unity/src/unity_internals.h +199 -55
  1702. data/vendor/cmock/vendor/unity/test/Makefile +7 -0
  1703. data/vendor/cmock/vendor/unity/test/rakefile +6 -5
  1704. data/vendor/cmock/vendor/unity/test/rakefile_helper.rb +9 -8
  1705. data/vendor/cmock/vendor/unity/test/spec/generate_module_existing_file_spec.rb +6 -0
  1706. data/vendor/cmock/vendor/unity/test/targets/ansi.yml +7 -0
  1707. data/vendor/cmock/vendor/unity/test/targets/clang_file.yml +7 -0
  1708. data/vendor/cmock/vendor/unity/test/targets/clang_strict.yml +8 -0
  1709. data/vendor/cmock/vendor/unity/test/targets/gcc_32.yml +7 -0
  1710. data/vendor/cmock/vendor/unity/test/targets/gcc_64.yml +7 -0
  1711. data/vendor/cmock/vendor/unity/test/targets/gcc_auto_limits.yml +7 -0
  1712. data/vendor/cmock/vendor/unity/test/targets/gcc_auto_stdint.yml +7 -0
  1713. data/vendor/cmock/vendor/unity/test/targets/gcc_manual_math.yml +7 -0
  1714. data/vendor/cmock/vendor/unity/test/targets/hitech_picc18.yml +7 -0
  1715. data/vendor/cmock/vendor/unity/test/targets/iar_arm_v4.yml +7 -0
  1716. data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5.yml +7 -0
  1717. data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5_3.yml +7 -0
  1718. data/vendor/cmock/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +7 -0
  1719. data/vendor/cmock/vendor/unity/test/targets/iar_cortexm3_v5.yml +7 -0
  1720. data/vendor/cmock/vendor/unity/test/targets/iar_msp430.yml +7 -0
  1721. data/vendor/cmock/vendor/unity/test/targets/iar_sh2a_v6.yml +7 -0
  1722. data/vendor/cmock/vendor/unity/test/testdata/CException.h +7 -0
  1723. data/vendor/cmock/vendor/unity/test/testdata/Defs.h +8 -0
  1724. data/vendor/cmock/vendor/unity/test/testdata/cmock.h +7 -0
  1725. data/vendor/cmock/vendor/unity/test/testdata/mockMock.h +7 -0
  1726. data/vendor/cmock/vendor/unity/test/testdata/testRunnerGenerator.c +18 -3
  1727. data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +8 -5
  1728. data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +7 -4
  1729. data/vendor/cmock/vendor/unity/test/tests/self_assessment_utils.h +12 -5
  1730. data/vendor/cmock/vendor/unity/test/tests/test_generate_test_runner.rb +107 -26
  1731. data/vendor/cmock/vendor/unity/test/tests/test_unity_arrays.c +73 -6
  1732. data/vendor/cmock/vendor/unity/test/tests/test_unity_core.c +12 -8
  1733. data/vendor/cmock/vendor/unity/test/tests/test_unity_doubles.c +517 -5
  1734. data/vendor/cmock/vendor/unity/test/tests/test_unity_floats.c +516 -5
  1735. data/vendor/cmock/vendor/unity/test/tests/test_unity_integers.c +21 -5
  1736. data/vendor/cmock/vendor/unity/test/tests/test_unity_integers_64.c +16 -6
  1737. data/vendor/cmock/vendor/unity/test/tests/test_unity_memory.c +6 -5
  1738. data/vendor/cmock/vendor/unity/test/tests/test_unity_parameterized.c +146 -8
  1739. data/vendor/cmock/vendor/unity/test/tests/test_unity_parameterizedDemo.c +28 -0
  1740. data/vendor/cmock/vendor/unity/test/tests/test_unity_strings.c +6 -5
  1741. data/vendor/cmock/vendor/unity/test/tests/types_for_test.h +21 -0
  1742. data/vendor/diy/LICENSE.txt +7 -0
  1743. data/vendor/diy/README.rdoc +21 -39
  1744. data/vendor/diy/lib/diy/factory.rb +8 -0
  1745. data/vendor/diy/lib/diy.rb +8 -0
  1746. data/vendor/diy/sample_code/car.rb +8 -0
  1747. data/vendor/diy/sample_code/chassis.rb +8 -0
  1748. data/vendor/diy/sample_code/diy_example.rb +8 -0
  1749. data/vendor/diy/sample_code/engine.rb +8 -0
  1750. data/vendor/diy/sample_code/objects.yml +8 -0
  1751. data/vendor/diy/test/constructor.rb +8 -0
  1752. data/vendor/diy/test/diy_test.rb +8 -0
  1753. data/vendor/diy/test/factory_test.rb +8 -0
  1754. data/vendor/diy/test/files/broken_construction.yml +8 -0
  1755. data/vendor/diy/test/files/cat/cat.rb +8 -0
  1756. data/vendor/diy/test/files/cat/extra_conflict.yml +8 -0
  1757. data/vendor/diy/test/files/cat/heritage.rb +8 -0
  1758. data/vendor/diy/test/files/cat/needs_input.yml +8 -0
  1759. data/vendor/diy/test/files/cat/the_cat_lineage.rb +8 -0
  1760. data/vendor/diy/test/files/dog/dog_model.rb +8 -0
  1761. data/vendor/diy/test/files/dog/dog_presenter.rb +8 -0
  1762. data/vendor/diy/test/files/dog/dog_view.rb +8 -0
  1763. data/vendor/diy/test/files/dog/file_resolver.rb +8 -0
  1764. data/vendor/diy/test/files/dog/other_thing.rb +8 -0
  1765. data/vendor/diy/test/files/dog/simple.yml +8 -0
  1766. data/vendor/diy/test/files/donkey/foo/bar/qux.rb +8 -0
  1767. data/vendor/diy/test/files/donkey/foo.rb +8 -0
  1768. data/vendor/diy/test/files/factory/beef.rb +8 -0
  1769. data/vendor/diy/test/files/factory/dog.rb +8 -0
  1770. data/vendor/diy/test/files/factory/factory.yml +8 -0
  1771. data/vendor/diy/test/files/factory/farm/llama.rb +8 -0
  1772. data/vendor/diy/test/files/factory/farm/pork.rb +8 -0
  1773. data/vendor/diy/test/files/factory/kitten.rb +8 -0
  1774. data/vendor/diy/test/files/fud/objects.yml +8 -0
  1775. data/vendor/diy/test/files/fud/toy.rb +8 -0
  1776. data/vendor/diy/test/files/functions/attached_things_builder.rb +8 -0
  1777. data/vendor/diy/test/files/functions/invalid_method.yml +8 -0
  1778. data/vendor/diy/test/files/functions/method_extractor.rb +8 -0
  1779. data/vendor/diy/test/files/functions/nonsingleton_objects.yml +8 -0
  1780. data/vendor/diy/test/files/functions/objects.yml +8 -0
  1781. data/vendor/diy/test/files/functions/thing.rb +8 -0
  1782. data/vendor/diy/test/files/functions/thing_builder.rb +8 -0
  1783. data/vendor/diy/test/files/functions/things_builder.rb +8 -0
  1784. data/vendor/diy/test/files/gnu/objects.yml +8 -0
  1785. data/vendor/diy/test/files/gnu/thinger.rb +8 -0
  1786. data/vendor/diy/test/files/goat/base.rb +8 -0
  1787. data/vendor/diy/test/files/goat/can.rb +8 -0
  1788. data/vendor/diy/test/files/goat/goat.rb +8 -0
  1789. data/vendor/diy/test/files/goat/objects.yml +8 -0
  1790. data/vendor/diy/test/files/goat/paper.rb +8 -0
  1791. data/vendor/diy/test/files/goat/plane.rb +8 -0
  1792. data/vendor/diy/test/files/goat/shirt.rb +8 -0
  1793. data/vendor/diy/test/files/goat/wings.rb +8 -0
  1794. data/vendor/diy/test/files/horse/holder_thing.rb +8 -0
  1795. data/vendor/diy/test/files/horse/objects.yml +8 -0
  1796. data/vendor/diy/test/files/namespace/animal/bird.rb +8 -0
  1797. data/vendor/diy/test/files/namespace/animal/cat.rb +8 -0
  1798. data/vendor/diy/test/files/namespace/animal/reptile/hardshell/turtle.rb +8 -0
  1799. data/vendor/diy/test/files/namespace/animal/reptile/lizard.rb +8 -0
  1800. data/vendor/diy/test/files/namespace/bad_module_specified.yml +8 -0
  1801. data/vendor/diy/test/files/namespace/class_name_combine.yml +8 -0
  1802. data/vendor/diy/test/files/namespace/no_module_specified.yml +8 -0
  1803. data/vendor/diy/test/files/namespace/objects.yml +8 -0
  1804. data/vendor/diy/test/files/namespace/road.rb +8 -0
  1805. data/vendor/diy/test/files/namespace/sky.rb +8 -0
  1806. data/vendor/diy/test/files/namespace/subcontext.yml +8 -0
  1807. data/vendor/diy/test/files/non_singleton/air.rb +8 -0
  1808. data/vendor/diy/test/files/non_singleton/fat_cat.rb +8 -0
  1809. data/vendor/diy/test/files/non_singleton/objects.yml +8 -0
  1810. data/vendor/diy/test/files/non_singleton/pig.rb +8 -0
  1811. data/vendor/diy/test/files/non_singleton/thread_spinner.rb +8 -0
  1812. data/vendor/diy/test/files/non_singleton/tick.rb +8 -0
  1813. data/vendor/diy/test/files/non_singleton/yard.rb +8 -0
  1814. data/vendor/diy/test/files/yak/core_model.rb +8 -0
  1815. data/vendor/diy/test/files/yak/core_presenter.rb +8 -0
  1816. data/vendor/diy/test/files/yak/core_view.rb +8 -0
  1817. data/vendor/diy/test/files/yak/data_source.rb +8 -0
  1818. data/vendor/diy/test/files/yak/fringe_model.rb +8 -0
  1819. data/vendor/diy/test/files/yak/fringe_presenter.rb +8 -0
  1820. data/vendor/diy/test/files/yak/fringe_view.rb +8 -0
  1821. data/vendor/diy/test/files/yak/giant_squid.rb +8 -0
  1822. data/vendor/diy/test/files/yak/krill.rb +8 -0
  1823. data/vendor/diy/test/files/yak/my_objects.yml +8 -0
  1824. data/vendor/diy/test/files/yak/sub_sub_context_test.yml +8 -0
  1825. data/vendor/diy/test/test_helper.rb +8 -0
  1826. data/vendor/unity/CMakeLists.txt +46 -33
  1827. data/vendor/unity/LICENSE.txt +1 -1
  1828. data/vendor/unity/README.md +106 -72
  1829. data/vendor/unity/auto/__init__.py +7 -0
  1830. data/vendor/unity/auto/colour_prompt.rb +6 -5
  1831. data/vendor/unity/auto/colour_reporter.rb +7 -6
  1832. data/vendor/unity/auto/extract_version.py +22 -0
  1833. data/vendor/unity/auto/generate_config.yml +7 -0
  1834. data/vendor/unity/auto/generate_module.rb +32 -27
  1835. data/vendor/unity/auto/generate_test_runner.rb +71 -35
  1836. data/vendor/unity/auto/parse_output.rb +90 -22
  1837. data/vendor/unity/auto/run_test.erb +2 -2
  1838. data/vendor/unity/auto/stylize_as_junit.py +161 -0
  1839. data/vendor/unity/auto/stylize_as_junit.rb +8 -6
  1840. data/vendor/unity/auto/test_file_filter.rb +11 -8
  1841. data/vendor/unity/auto/type_sanitizer.rb +8 -1
  1842. data/vendor/unity/auto/unity_test_summary.py +7 -6
  1843. data/vendor/unity/auto/unity_test_summary.rb +13 -8
  1844. data/vendor/unity/auto/yaml_helper.rb +23 -0
  1845. data/vendor/unity/docs/CODE_OF_CONDUCT.md +138 -0
  1846. data/vendor/unity/docs/CONTRIBUTING.md +238 -0
  1847. data/vendor/unity/docs/MesonGeneratorRunner.md +18 -0
  1848. data/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +107 -126
  1849. data/vendor/unity/docs/UnityAssertionsReference.md +273 -244
  1850. data/vendor/unity/docs/UnityChangeLog.md +110 -0
  1851. data/vendor/unity/docs/UnityConfigurationGuide.md +385 -294
  1852. data/vendor/unity/docs/UnityGettingStartedGuide.md +112 -121
  1853. data/vendor/unity/docs/UnityHelperScriptsGuide.md +366 -111
  1854. data/vendor/unity/docs/UnityKnownIssues.md +13 -0
  1855. data/vendor/unity/examples/example_1/makefile +6 -5
  1856. data/vendor/unity/examples/example_1/meson.build +48 -0
  1857. data/vendor/unity/examples/example_1/readme.txt +8 -1
  1858. data/vendor/unity/examples/example_1/src/ProductionCode.c +6 -0
  1859. data/vendor/unity/examples/example_1/src/ProductionCode.h +6 -0
  1860. data/vendor/unity/examples/example_1/src/ProductionCode2.c +6 -0
  1861. data/vendor/unity/examples/example_1/src/ProductionCode2.h +6 -0
  1862. data/vendor/unity/examples/example_1/subprojects/unity.wrap +3 -0
  1863. data/vendor/unity/examples/example_1/test/TestProductionCode.c +6 -0
  1864. data/vendor/unity/examples/example_1/test/TestProductionCode2.c +6 -0
  1865. data/vendor/unity/examples/example_2/makefile +6 -5
  1866. data/vendor/unity/examples/example_2/src/ProductionCode.c +6 -0
  1867. data/vendor/unity/examples/example_2/src/ProductionCode.h +6 -0
  1868. data/vendor/unity/examples/example_2/src/ProductionCode2.c +6 -0
  1869. data/vendor/unity/examples/example_2/src/ProductionCode2.h +6 -0
  1870. data/vendor/unity/examples/example_2/test/TestProductionCode.c +7 -0
  1871. data/vendor/unity/examples/example_2/test/TestProductionCode2.c +7 -0
  1872. data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +7 -0
  1873. data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +7 -0
  1874. data/vendor/unity/examples/example_2/test/test_runners/all_tests.c +7 -0
  1875. data/vendor/unity/examples/example_3/helper/UnityHelper.c +7 -0
  1876. data/vendor/unity/examples/example_3/helper/UnityHelper.h +7 -0
  1877. data/vendor/unity/examples/example_3/rakefile.rb +7 -0
  1878. data/vendor/unity/examples/example_3/rakefile_helper.rb +26 -21
  1879. data/vendor/unity/examples/example_3/src/ProductionCode.c +6 -0
  1880. data/vendor/unity/examples/example_3/src/ProductionCode.h +6 -0
  1881. data/vendor/unity/examples/example_3/src/ProductionCode2.c +6 -0
  1882. data/vendor/unity/examples/example_3/src/ProductionCode2.h +6 -0
  1883. data/vendor/unity/examples/example_3/target_gcc_32.yml +7 -0
  1884. data/vendor/unity/examples/example_3/test/TestProductionCode.c +6 -0
  1885. data/vendor/unity/examples/example_3/test/TestProductionCode2.c +6 -0
  1886. data/vendor/unity/examples/example_4/meson.build +2 -2
  1887. data/vendor/unity/examples/example_4/src/ProductionCode.c +6 -0
  1888. data/vendor/unity/examples/example_4/src/ProductionCode.h +6 -0
  1889. data/vendor/unity/examples/example_4/src/ProductionCode2.c +6 -0
  1890. data/vendor/unity/examples/example_4/src/ProductionCode2.h +6 -0
  1891. data/vendor/unity/examples/example_4/subprojects/unity.wrap +3 -1
  1892. data/vendor/unity/examples/example_4/test/TestProductionCode.c +6 -0
  1893. data/vendor/unity/examples/example_4/test/TestProductionCode2.c +6 -0
  1894. data/vendor/unity/examples/example_4/test/test_runners/meson.build +3 -3
  1895. data/vendor/unity/examples/unity_config.h +8 -1
  1896. data/vendor/unity/extras/bdd/readme.md +40 -0
  1897. data/vendor/unity/extras/bdd/src/unity_bdd.h +44 -0
  1898. data/vendor/unity/extras/bdd/test/meson.build +9 -0
  1899. data/vendor/unity/extras/bdd/test/test_bdd.c +129 -0
  1900. data/vendor/unity/extras/fixture/readme.md +16 -19
  1901. data/vendor/unity/extras/fixture/src/meson.build +10 -0
  1902. data/vendor/unity/extras/fixture/src/unity_fixture.c +6 -6
  1903. data/vendor/unity/extras/fixture/src/unity_fixture.h +18 -7
  1904. data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +6 -6
  1905. data/vendor/unity/extras/fixture/test/main/AllTests.c +6 -6
  1906. data/vendor/unity/extras/fixture/test/template_fixture_tests.c +6 -6
  1907. data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +6 -6
  1908. data/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +6 -6
  1909. data/vendor/unity/extras/memory/readme.md +27 -34
  1910. data/vendor/unity/extras/memory/src/meson.build +9 -0
  1911. data/vendor/unity/extras/memory/src/unity_memory.c +6 -5
  1912. data/vendor/unity/extras/memory/src/unity_memory.h +6 -5
  1913. data/vendor/unity/extras/memory/test/Makefile +7 -0
  1914. data/vendor/unity/extras/memory/test/unity_memory_Test.c +6 -5
  1915. data/vendor/unity/extras/memory/test/unity_memory_TestRunner.c +6 -5
  1916. data/vendor/unity/extras/memory/test/unity_output_Spy.c +6 -5
  1917. data/vendor/unity/extras/memory/test/unity_output_Spy.h +6 -5
  1918. data/vendor/unity/library.json +25 -0
  1919. data/vendor/unity/meson.build +71 -5
  1920. data/vendor/unity/meson_options.txt +3 -0
  1921. data/vendor/unity/platformio-build.py +24 -0
  1922. data/vendor/unity/src/meson.build +11 -5
  1923. data/vendor/unity/src/unity.c +535 -144
  1924. data/vendor/unity/src/unity.h +50 -13
  1925. data/vendor/unity/src/unity_internals.h +199 -55
  1926. data/vendor/unity/test/Makefile +7 -0
  1927. data/vendor/unity/test/rakefile +6 -5
  1928. data/vendor/unity/test/rakefile_helper.rb +9 -8
  1929. data/vendor/unity/test/spec/generate_module_existing_file_spec.rb +6 -0
  1930. data/vendor/unity/test/targets/ansi.yml +7 -0
  1931. data/vendor/unity/test/targets/clang_file.yml +7 -0
  1932. data/vendor/unity/test/targets/clang_strict.yml +8 -0
  1933. data/vendor/unity/test/targets/gcc_32.yml +7 -0
  1934. data/vendor/unity/test/targets/gcc_64.yml +7 -0
  1935. data/vendor/unity/test/targets/gcc_auto_limits.yml +7 -0
  1936. data/vendor/unity/test/targets/gcc_auto_stdint.yml +7 -0
  1937. data/vendor/unity/test/targets/gcc_manual_math.yml +7 -0
  1938. data/vendor/unity/test/targets/hitech_picc18.yml +7 -0
  1939. data/vendor/unity/test/targets/iar_arm_v4.yml +7 -0
  1940. data/vendor/unity/test/targets/iar_arm_v5.yml +7 -0
  1941. data/vendor/unity/test/targets/iar_arm_v5_3.yml +7 -0
  1942. data/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +7 -0
  1943. data/vendor/unity/test/targets/iar_cortexm3_v5.yml +7 -0
  1944. data/vendor/unity/test/targets/iar_msp430.yml +7 -0
  1945. data/vendor/unity/test/targets/iar_sh2a_v6.yml +7 -0
  1946. data/vendor/unity/test/testdata/CException.h +7 -0
  1947. data/vendor/unity/test/testdata/Defs.h +8 -0
  1948. data/vendor/unity/test/testdata/cmock.h +7 -0
  1949. data/vendor/unity/test/testdata/mockMock.h +7 -0
  1950. data/vendor/unity/test/testdata/testRunnerGenerator.c +18 -3
  1951. data/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +8 -5
  1952. data/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +7 -4
  1953. data/vendor/unity/test/tests/self_assessment_utils.h +12 -5
  1954. data/vendor/unity/test/tests/test_generate_test_runner.rb +107 -26
  1955. data/vendor/unity/test/tests/test_unity_arrays.c +73 -6
  1956. data/vendor/unity/test/tests/test_unity_core.c +12 -8
  1957. data/vendor/unity/test/tests/test_unity_doubles.c +517 -5
  1958. data/vendor/unity/test/tests/test_unity_floats.c +516 -5
  1959. data/vendor/unity/test/tests/test_unity_integers.c +21 -5
  1960. data/vendor/unity/test/tests/test_unity_integers_64.c +16 -6
  1961. data/vendor/unity/test/tests/test_unity_memory.c +6 -5
  1962. data/vendor/unity/test/tests/test_unity_parameterized.c +146 -8
  1963. data/vendor/unity/test/tests/test_unity_parameterizedDemo.c +28 -0
  1964. data/vendor/unity/test/tests/test_unity_strings.c +6 -5
  1965. data/vendor/unity/test/tests/types_for_test.h +21 -0
  1966. metadata +1231 -438
  1967. data/assets/auto_link_deep_dependencies/src/a.c +0 -7
  1968. data/assets/auto_link_deep_dependencies/src/b.c +0 -7
  1969. data/assets/auto_link_deep_dependencies/src/c.c +0 -8
  1970. data/assets/auto_link_deep_dependencies/src/internal_inc/a.h +0 -6
  1971. data/assets/auto_link_deep_dependencies/src/internal_inc/b.h +0 -6
  1972. data/assets/auto_link_deep_dependencies/src/internal_inc/c.h +0 -6
  1973. data/assets/auto_link_deep_dependencies/src/internal_inc/never_compiled.h +0 -6
  1974. data/assets/auto_link_deep_dependencies/src/never_compiled.c +0 -6
  1975. data/assets/auto_link_deep_dependencies/test/test_a.c +0 -11
  1976. data/assets/auto_link_deep_dependencies/test/test_b.c +0 -11
  1977. data/assets/auto_link_deep_dependencies/test/test_c.c +0 -11
  1978. data/assets/project_with_guts_gcov.yml +0 -102
  1979. data/docs/Ceedling Powerful Plugins.pdf +0 -0
  1980. data/examples/blinky/project.yml +0 -101
  1981. data/examples/blinky/rakefile.rb +0 -30
  1982. data/examples/blinky/src/BlinkTask.c +0 -21
  1983. data/examples/blinky/src/BlinkTask.h +0 -6
  1984. data/examples/blinky/src/Configure.c +0 -36
  1985. data/examples/blinky/src/Configure.h +0 -6
  1986. data/examples/blinky/src/main.c +0 -51
  1987. data/examples/blinky/src/main.h +0 -9
  1988. data/examples/blinky/test/support/stub_interrupt.h +0 -347
  1989. data/examples/blinky/test/support/stub_io.h +0 -421
  1990. data/examples/blinky/test/support/stub_iom328p.h +0 -883
  1991. data/examples/blinky/test/support/stub_sfr_defs.h +0 -269
  1992. data/examples/blinky/test/test_BlinkTask.c +0 -42
  1993. data/examples/blinky/test/test_Configure.c +0 -29
  1994. data/examples/blinky/test/test_main.c +0 -60
  1995. data/examples/temp_sensor/build/test/cache/AdcConductor.h +0 -20
  1996. data/examples/temp_sensor/build/test/cache/AdcHardware.h +0 -16
  1997. data/examples/temp_sensor/build/test/cache/AdcHardwareConfigurator.h +0 -14
  1998. data/examples/temp_sensor/build/test/cache/AdcModel.h +0 -20
  1999. data/examples/temp_sensor/build/test/cache/AdcTemperatureSensor.h +0 -14
  2000. data/examples/temp_sensor/build/test/cache/Executor.h +0 -12
  2001. data/examples/temp_sensor/build/test/cache/IntrinsicsWrapper.h +0 -9
  2002. data/examples/temp_sensor/build/test/cache/Model.h +0 -10
  2003. data/examples/temp_sensor/build/test/cache/TaskScheduler.h +0 -16
  2004. data/examples/temp_sensor/build/test/cache/TemperatureCalculator.h +0 -10
  2005. data/examples/temp_sensor/build/test/cache/TemperatureFilter.h +0 -14
  2006. data/examples/temp_sensor/build/test/cache/TestAdcConductor.c +0 -169
  2007. data/examples/temp_sensor/build/test/cache/TestAdcHardware.c +0 -82
  2008. data/examples/temp_sensor/build/test/cache/TestAdcModel.c +0 -59
  2009. data/examples/temp_sensor/build/test/cache/TestExecutor.c +0 -63
  2010. data/examples/temp_sensor/build/test/cache/TestMain.c +0 -43
  2011. data/examples/temp_sensor/build/test/cache/TestModel.c +0 -34
  2012. data/examples/temp_sensor/build/test/cache/TestTaskScheduler.c +0 -204
  2013. data/examples/temp_sensor/build/test/cache/TestTemperatureCalculator.c +0 -70
  2014. data/examples/temp_sensor/build/test/cache/TestTemperatureFilter.c +0 -154
  2015. data/examples/temp_sensor/build/test/cache/TestTimerConductor.c +0 -57
  2016. data/examples/temp_sensor/build/test/cache/TestTimerHardware.c +0 -47
  2017. data/examples/temp_sensor/build/test/cache/TestTimerModel.c +0 -31
  2018. data/examples/temp_sensor/build/test/cache/TestUsartBaudRateRegisterCalculator.c +0 -38
  2019. data/examples/temp_sensor/build/test/cache/TestUsartConductor.c +0 -73
  2020. data/examples/temp_sensor/build/test/cache/TestUsartHardware.c +0 -66
  2021. data/examples/temp_sensor/build/test/cache/TestUsartModel.c +0 -73
  2022. data/examples/temp_sensor/build/test/cache/TimerConductor.h +0 -12
  2023. data/examples/temp_sensor/build/test/cache/TimerConfigurator.h +0 -24
  2024. data/examples/temp_sensor/build/test/cache/TimerHardware.h +0 -10
  2025. data/examples/temp_sensor/build/test/cache/TimerInterruptHandler.h +0 -14
  2026. data/examples/temp_sensor/build/test/cache/TimerModel.h +0 -10
  2027. data/examples/temp_sensor/build/test/cache/UsartBaudRateRegisterCalculator.h +0 -10
  2028. data/examples/temp_sensor/build/test/cache/UsartConductor.h +0 -9
  2029. data/examples/temp_sensor/build/test/cache/UsartConfigurator.h +0 -20
  2030. data/examples/temp_sensor/build/test/cache/UsartHardware.h +0 -12
  2031. data/examples/temp_sensor/build/test/cache/UsartModel.h +0 -14
  2032. data/examples/temp_sensor/build/test/cache/UsartPutChar.h +0 -10
  2033. data/examples/temp_sensor/build/test/cache/defines_dependency.yml +0 -77
  2034. data/examples/temp_sensor/build/test/cache/input.yml +0 -310
  2035. data/examples/temp_sensor/build/test/mocks/MockAdcConductor.c +0 -391
  2036. data/examples/temp_sensor/build/test/mocks/MockAdcConductor.h +0 -64
  2037. data/examples/temp_sensor/build/test/mocks/MockAdcHardware.c +0 -313
  2038. data/examples/temp_sensor/build/test/mocks/MockAdcHardware.h +0 -58
  2039. data/examples/temp_sensor/build/test/mocks/MockAdcHardwareConfigurator.c +0 -218
  2040. data/examples/temp_sensor/build/test/mocks/MockAdcHardwareConfigurator.h +0 -52
  2041. data/examples/temp_sensor/build/test/mocks/MockAdcModel.c +0 -453
  2042. data/examples/temp_sensor/build/test/mocks/MockAdcModel.h +0 -64
  2043. data/examples/temp_sensor/build/test/mocks/MockAdcTemperatureSensor.c +0 -252
  2044. data/examples/temp_sensor/build/test/mocks/MockAdcTemperatureSensor.h +0 -52
  2045. data/examples/temp_sensor/build/test/mocks/MockExecutor.c +0 -174
  2046. data/examples/temp_sensor/build/test/mocks/MockExecutor.h +0 -46
  2047. data/examples/temp_sensor/build/test/mocks/MockIntrinsicsWrapper.c +0 -157
  2048. data/examples/temp_sensor/build/test/mocks/MockIntrinsicsWrapper.h +0 -46
  2049. data/examples/temp_sensor/build/test/mocks/MockModel.c +0 -96
  2050. data/examples/temp_sensor/build/test/mocks/MockModel.h +0 -40
  2051. data/examples/temp_sensor/build/test/mocks/MockTaskScheduler.c +0 -326
  2052. data/examples/temp_sensor/build/test/mocks/MockTaskScheduler.h +0 -58
  2053. data/examples/temp_sensor/build/test/mocks/MockTemperatureCalculator.c +0 -126
  2054. data/examples/temp_sensor/build/test/mocks/MockTemperatureCalculator.h +0 -40
  2055. data/examples/temp_sensor/build/test/mocks/MockTemperatureFilter.c +0 -248
  2056. data/examples/temp_sensor/build/test/mocks/MockTemperatureFilter.h +0 -52
  2057. data/examples/temp_sensor/build/test/mocks/MockTimerConductor.c +0 -157
  2058. data/examples/temp_sensor/build/test/mocks/MockTimerConductor.h +0 -46
  2059. data/examples/temp_sensor/build/test/mocks/MockTimerConfigurator.c +0 -523
  2060. data/examples/temp_sensor/build/test/mocks/MockTimerConfigurator.h +0 -82
  2061. data/examples/temp_sensor/build/test/mocks/MockTimerHardware.c +0 -96
  2062. data/examples/temp_sensor/build/test/mocks/MockTimerHardware.h +0 -40
  2063. data/examples/temp_sensor/build/test/mocks/MockTimerInterruptHandler.c +0 -248
  2064. data/examples/temp_sensor/build/test/mocks/MockTimerInterruptHandler.h +0 -52
  2065. data/examples/temp_sensor/build/test/mocks/MockTimerModel.c +0 -109
  2066. data/examples/temp_sensor/build/test/mocks/MockTimerModel.h +0 -40
  2067. data/examples/temp_sensor/build/test/mocks/MockUsartBaudRateRegisterCalculator.c +0 -133
  2068. data/examples/temp_sensor/build/test/mocks/MockUsartBaudRateRegisterCalculator.h +0 -40
  2069. data/examples/temp_sensor/build/test/mocks/MockUsartConductor.c +0 -157
  2070. data/examples/temp_sensor/build/test/mocks/MockUsartConductor.h +0 -46
  2071. data/examples/temp_sensor/build/test/mocks/MockUsartConfigurator.c +0 -414
  2072. data/examples/temp_sensor/build/test/mocks/MockUsartConfigurator.h +0 -70
  2073. data/examples/temp_sensor/build/test/mocks/MockUsartHardware.c +0 -183
  2074. data/examples/temp_sensor/build/test/mocks/MockUsartHardware.h +0 -46
  2075. data/examples/temp_sensor/build/test/mocks/MockUsartModel.c +0 -269
  2076. data/examples/temp_sensor/build/test/mocks/MockUsartModel.h +0 -52
  2077. data/examples/temp_sensor/build/test/mocks/MockUsartPutChar.c +0 -109
  2078. data/examples/temp_sensor/build/test/mocks/MockUsartPutChar.h +0 -40
  2079. data/examples/temp_sensor/build/test/out/TestAdcConductor.out +0 -0
  2080. data/examples/temp_sensor/build/test/out/TestAdcHardware.out +0 -0
  2081. data/examples/temp_sensor/build/test/out/TestAdcModel.out +0 -0
  2082. data/examples/temp_sensor/build/test/out/TestExecutor.out +0 -0
  2083. data/examples/temp_sensor/build/test/out/TestMain.out +0 -0
  2084. data/examples/temp_sensor/build/test/out/TestModel.out +0 -0
  2085. data/examples/temp_sensor/build/test/out/TestTaskScheduler.out +0 -0
  2086. data/examples/temp_sensor/build/test/out/TestTemperatureCalculator.out +0 -0
  2087. data/examples/temp_sensor/build/test/out/TestTemperatureFilter.out +0 -0
  2088. data/examples/temp_sensor/build/test/out/TestTimerConductor.out +0 -0
  2089. data/examples/temp_sensor/build/test/out/TestTimerHardware.out +0 -0
  2090. data/examples/temp_sensor/build/test/out/TestTimerModel.out +0 -0
  2091. data/examples/temp_sensor/build/test/out/TestUsartBaudRateRegisterCalculator.out +0 -0
  2092. data/examples/temp_sensor/build/test/out/TestUsartConductor.out +0 -0
  2093. data/examples/temp_sensor/build/test/out/TestUsartHardware.out +0 -0
  2094. data/examples/temp_sensor/build/test/out/TestUsartModel.out +0 -0
  2095. data/examples/temp_sensor/build/test/out/c/AdcConductor.o +0 -0
  2096. data/examples/temp_sensor/build/test/out/c/AdcHardware.o +0 -0
  2097. data/examples/temp_sensor/build/test/out/c/AdcModel.o +0 -0
  2098. data/examples/temp_sensor/build/test/out/c/Executor.o +0 -0
  2099. data/examples/temp_sensor/build/test/out/c/Main.o +0 -0
  2100. data/examples/temp_sensor/build/test/out/c/MockAdcConductor.o +0 -0
  2101. data/examples/temp_sensor/build/test/out/c/MockAdcHardware.o +0 -0
  2102. data/examples/temp_sensor/build/test/out/c/MockAdcHardwareConfigurator.o +0 -0
  2103. data/examples/temp_sensor/build/test/out/c/MockAdcModel.o +0 -0
  2104. data/examples/temp_sensor/build/test/out/c/MockAdcTemperatureSensor.o +0 -0
  2105. data/examples/temp_sensor/build/test/out/c/MockExecutor.o +0 -0
  2106. data/examples/temp_sensor/build/test/out/c/MockIntrinsicsWrapper.o +0 -0
  2107. data/examples/temp_sensor/build/test/out/c/MockModel.o +0 -0
  2108. data/examples/temp_sensor/build/test/out/c/MockTaskScheduler.o +0 -0
  2109. data/examples/temp_sensor/build/test/out/c/MockTemperatureCalculator.o +0 -0
  2110. data/examples/temp_sensor/build/test/out/c/MockTemperatureFilter.o +0 -0
  2111. data/examples/temp_sensor/build/test/out/c/MockTimerConductor.o +0 -0
  2112. data/examples/temp_sensor/build/test/out/c/MockTimerConfigurator.o +0 -0
  2113. data/examples/temp_sensor/build/test/out/c/MockTimerHardware.o +0 -0
  2114. data/examples/temp_sensor/build/test/out/c/MockTimerInterruptHandler.o +0 -0
  2115. data/examples/temp_sensor/build/test/out/c/MockTimerModel.o +0 -0
  2116. data/examples/temp_sensor/build/test/out/c/MockUsartBaudRateRegisterCalculator.o +0 -0
  2117. data/examples/temp_sensor/build/test/out/c/MockUsartConductor.o +0 -0
  2118. data/examples/temp_sensor/build/test/out/c/MockUsartConfigurator.o +0 -0
  2119. data/examples/temp_sensor/build/test/out/c/MockUsartHardware.o +0 -0
  2120. data/examples/temp_sensor/build/test/out/c/MockUsartModel.o +0 -0
  2121. data/examples/temp_sensor/build/test/out/c/MockUsartPutChar.o +0 -0
  2122. data/examples/temp_sensor/build/test/out/c/Model.o +0 -0
  2123. data/examples/temp_sensor/build/test/out/c/TaskScheduler.o +0 -0
  2124. data/examples/temp_sensor/build/test/out/c/TemperatureCalculator.o +0 -0
  2125. data/examples/temp_sensor/build/test/out/c/TemperatureFilter.o +0 -0
  2126. data/examples/temp_sensor/build/test/out/c/TestAdcConductor.o +0 -0
  2127. data/examples/temp_sensor/build/test/out/c/TestAdcConductor_runner.o +0 -0
  2128. data/examples/temp_sensor/build/test/out/c/TestAdcHardware.o +0 -0
  2129. data/examples/temp_sensor/build/test/out/c/TestAdcHardware_runner.o +0 -0
  2130. data/examples/temp_sensor/build/test/out/c/TestAdcModel.o +0 -0
  2131. data/examples/temp_sensor/build/test/out/c/TestAdcModel_runner.o +0 -0
  2132. data/examples/temp_sensor/build/test/out/c/TestExecutor.o +0 -0
  2133. data/examples/temp_sensor/build/test/out/c/TestExecutor_runner.o +0 -0
  2134. data/examples/temp_sensor/build/test/out/c/TestMain.o +0 -0
  2135. data/examples/temp_sensor/build/test/out/c/TestMain_runner.o +0 -0
  2136. data/examples/temp_sensor/build/test/out/c/TestModel.o +0 -0
  2137. data/examples/temp_sensor/build/test/out/c/TestModel_runner.o +0 -0
  2138. data/examples/temp_sensor/build/test/out/c/TestTaskScheduler.o +0 -0
  2139. data/examples/temp_sensor/build/test/out/c/TestTaskScheduler_runner.o +0 -0
  2140. data/examples/temp_sensor/build/test/out/c/TestTemperatureCalculator.o +0 -0
  2141. data/examples/temp_sensor/build/test/out/c/TestTemperatureCalculator_runner.o +0 -0
  2142. data/examples/temp_sensor/build/test/out/c/TestTemperatureFilter.o +0 -0
  2143. data/examples/temp_sensor/build/test/out/c/TestTemperatureFilter_runner.o +0 -0
  2144. data/examples/temp_sensor/build/test/out/c/TestTimerConductor.o +0 -0
  2145. data/examples/temp_sensor/build/test/out/c/TestTimerConductor_runner.o +0 -0
  2146. data/examples/temp_sensor/build/test/out/c/TestTimerHardware.o +0 -0
  2147. data/examples/temp_sensor/build/test/out/c/TestTimerHardware_runner.o +0 -0
  2148. data/examples/temp_sensor/build/test/out/c/TestTimerModel.o +0 -0
  2149. data/examples/temp_sensor/build/test/out/c/TestTimerModel_runner.o +0 -0
  2150. data/examples/temp_sensor/build/test/out/c/TestUsartBaudRateRegisterCalculator.o +0 -0
  2151. data/examples/temp_sensor/build/test/out/c/TestUsartBaudRateRegisterCalculator_runner.o +0 -0
  2152. data/examples/temp_sensor/build/test/out/c/TestUsartConductor.o +0 -0
  2153. data/examples/temp_sensor/build/test/out/c/TestUsartConductor_runner.o +0 -0
  2154. data/examples/temp_sensor/build/test/out/c/TestUsartHardware.o +0 -0
  2155. data/examples/temp_sensor/build/test/out/c/TestUsartHardware_runner.o +0 -0
  2156. data/examples/temp_sensor/build/test/out/c/TestUsartModel.o +0 -0
  2157. data/examples/temp_sensor/build/test/out/c/TestUsartModel_runner.o +0 -0
  2158. data/examples/temp_sensor/build/test/out/c/TimerConductor.o +0 -0
  2159. data/examples/temp_sensor/build/test/out/c/TimerHardware.o +0 -0
  2160. data/examples/temp_sensor/build/test/out/c/TimerModel.o +0 -0
  2161. data/examples/temp_sensor/build/test/out/c/UnityHelper.o +0 -0
  2162. data/examples/temp_sensor/build/test/out/c/UsartBaudRateRegisterCalculator.o +0 -0
  2163. data/examples/temp_sensor/build/test/out/c/UsartConductor.o +0 -0
  2164. data/examples/temp_sensor/build/test/out/c/UsartHardware.o +0 -0
  2165. data/examples/temp_sensor/build/test/out/c/UsartModel.o +0 -0
  2166. data/examples/temp_sensor/build/test/out/c/cmock.o +0 -0
  2167. data/examples/temp_sensor/build/test/out/c/unity.o +0 -0
  2168. data/examples/temp_sensor/build/test/preprocess/files/AdcConductor.h +0 -20
  2169. data/examples/temp_sensor/build/test/preprocess/files/AdcHardware.h +0 -16
  2170. data/examples/temp_sensor/build/test/preprocess/files/AdcHardwareConfigurator.h +0 -14
  2171. data/examples/temp_sensor/build/test/preprocess/files/AdcModel.h +0 -20
  2172. data/examples/temp_sensor/build/test/preprocess/files/AdcTemperatureSensor.h +0 -14
  2173. data/examples/temp_sensor/build/test/preprocess/files/Executor.h +0 -12
  2174. data/examples/temp_sensor/build/test/preprocess/files/IntrinsicsWrapper.h +0 -9
  2175. data/examples/temp_sensor/build/test/preprocess/files/Model.h +0 -10
  2176. data/examples/temp_sensor/build/test/preprocess/files/TaskScheduler.h +0 -16
  2177. data/examples/temp_sensor/build/test/preprocess/files/TemperatureCalculator.h +0 -10
  2178. data/examples/temp_sensor/build/test/preprocess/files/TemperatureFilter.h +0 -14
  2179. data/examples/temp_sensor/build/test/preprocess/files/TestAdcConductor.c +0 -169
  2180. data/examples/temp_sensor/build/test/preprocess/files/TestAdcHardware.c +0 -82
  2181. data/examples/temp_sensor/build/test/preprocess/files/TestAdcModel.c +0 -59
  2182. data/examples/temp_sensor/build/test/preprocess/files/TestExecutor.c +0 -63
  2183. data/examples/temp_sensor/build/test/preprocess/files/TestMain.c +0 -43
  2184. data/examples/temp_sensor/build/test/preprocess/files/TestModel.c +0 -34
  2185. data/examples/temp_sensor/build/test/preprocess/files/TestTaskScheduler.c +0 -204
  2186. data/examples/temp_sensor/build/test/preprocess/files/TestTemperatureCalculator.c +0 -70
  2187. data/examples/temp_sensor/build/test/preprocess/files/TestTemperatureFilter.c +0 -154
  2188. data/examples/temp_sensor/build/test/preprocess/files/TestTimerConductor.c +0 -57
  2189. data/examples/temp_sensor/build/test/preprocess/files/TestTimerHardware.c +0 -47
  2190. data/examples/temp_sensor/build/test/preprocess/files/TestTimerModel.c +0 -31
  2191. data/examples/temp_sensor/build/test/preprocess/files/TestUsartBaudRateRegisterCalculator.c +0 -38
  2192. data/examples/temp_sensor/build/test/preprocess/files/TestUsartConductor.c +0 -73
  2193. data/examples/temp_sensor/build/test/preprocess/files/TestUsartHardware.c +0 -66
  2194. data/examples/temp_sensor/build/test/preprocess/files/TestUsartModel.c +0 -73
  2195. data/examples/temp_sensor/build/test/preprocess/files/TimerConductor.h +0 -12
  2196. data/examples/temp_sensor/build/test/preprocess/files/TimerConfigurator.h +0 -24
  2197. data/examples/temp_sensor/build/test/preprocess/files/TimerHardware.h +0 -10
  2198. data/examples/temp_sensor/build/test/preprocess/files/TimerInterruptHandler.h +0 -14
  2199. data/examples/temp_sensor/build/test/preprocess/files/TimerModel.h +0 -10
  2200. data/examples/temp_sensor/build/test/preprocess/files/UsartBaudRateRegisterCalculator.h +0 -10
  2201. data/examples/temp_sensor/build/test/preprocess/files/UsartConductor.h +0 -9
  2202. data/examples/temp_sensor/build/test/preprocess/files/UsartConfigurator.h +0 -20
  2203. data/examples/temp_sensor/build/test/preprocess/files/UsartHardware.h +0 -12
  2204. data/examples/temp_sensor/build/test/preprocess/files/UsartModel.h +0 -14
  2205. data/examples/temp_sensor/build/test/preprocess/files/UsartPutChar.h +0 -10
  2206. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcConductor.c +0 -7
  2207. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcHardware.c +0 -6
  2208. data/examples/temp_sensor/build/test/preprocess/includes/TestAdcModel.c +0 -7
  2209. data/examples/temp_sensor/build/test/preprocess/includes/TestExecutor.c +0 -9
  2210. data/examples/temp_sensor/build/test/preprocess/includes/TestMain.c +0 -5
  2211. data/examples/temp_sensor/build/test/preprocess/includes/TestModel.c +0 -6
  2212. data/examples/temp_sensor/build/test/preprocess/includes/TestTaskScheduler.c +0 -4
  2213. data/examples/temp_sensor/build/test/preprocess/includes/TestTemperatureCalculator.c +0 -4
  2214. data/examples/temp_sensor/build/test/preprocess/includes/TestTemperatureFilter.c +0 -4
  2215. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerConductor.c +0 -7
  2216. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerHardware.c +0 -5
  2217. data/examples/temp_sensor/build/test/preprocess/includes/TestTimerModel.c +0 -5
  2218. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartBaudRateRegisterCalculator.c +0 -4
  2219. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartConductor.c +0 -7
  2220. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartHardware.c +0 -6
  2221. data/examples/temp_sensor/build/test/preprocess/includes/TestUsartModel.c +0 -7
  2222. data/examples/temp_sensor/test/TestAdcConductor.c +0 -121
  2223. data/examples/temp_sensor/test/TestAdcHardware.c +0 -44
  2224. data/examples/temp_sensor/test/TestAdcModel.c +0 -33
  2225. data/lib/ceedling/build_invoker_utils.rb +0 -39
  2226. data/lib/ceedling/cmock_builder.rb +0 -15
  2227. data/lib/ceedling/file_system_utils.rb +0 -69
  2228. data/lib/ceedling/par_map.rb +0 -19
  2229. data/lib/ceedling/plugin_builder.rb +0 -53
  2230. data/lib/ceedling/preprocessinator_helper.rb +0 -50
  2231. data/lib/ceedling/project_config_manager.rb +0 -52
  2232. data/lib/ceedling/project_file_loader.rb +0 -99
  2233. data/lib/ceedling/rules_cmock.rake +0 -9
  2234. data/lib/ceedling/rules_preprocess.rake +0 -26
  2235. data/lib/ceedling/rules_release_deep_dependencies.rake +0 -15
  2236. data/lib/ceedling/rules_tests_deep_dependencies.rake +0 -15
  2237. data/lib/ceedling/streaminator.rb +0 -40
  2238. data/lib/ceedling/streaminator_helper.rb +0 -15
  2239. data/lib/ceedling/target_loader.rb +0 -38
  2240. data/lib/ceedling/tasks_release_deep_dependencies.rake +0 -9
  2241. data/lib/ceedling/tasks_tests_deep_dependencies.rake +0 -9
  2242. data/lib/ceedling/tasks_vendor.rake +0 -35
  2243. data/lib/ceedling/test_includes_extractor.rb +0 -111
  2244. data/lib/ceedling/version.rb +0 -50
  2245. data/plugins/colour_report/README.md +0 -20
  2246. data/plugins/colour_report/lib/colour_report.rb +0 -16
  2247. data/plugins/compile_commands_json/README.md +0 -29
  2248. data/plugins/compile_commands_json/lib/compile_commands_json.rb +0 -35
  2249. data/plugins/gcov/assets/template.erb +0 -15
  2250. data/plugins/json_tests_report/README.md +0 -36
  2251. data/plugins/json_tests_report/lib/json_tests_report.rb +0 -83
  2252. data/plugins/junit_tests_report/README.md +0 -36
  2253. data/plugins/junit_tests_report/lib/junit_tests_report.rb +0 -134
  2254. data/plugins/raw_output_report/README.md +0 -19
  2255. data/plugins/raw_output_report/lib/raw_output_report.rb +0 -41
  2256. data/plugins/stdout_gtestlike_tests_report/README.md +0 -19
  2257. data/plugins/stdout_gtestlike_tests_report/assets/template.erb +0 -84
  2258. data/plugins/stdout_gtestlike_tests_report/assets/template.erb copy +0 -59
  2259. data/plugins/stdout_gtestlike_tests_report/config/stdout_gtestlike_tests_report.yml +0 -4
  2260. data/plugins/stdout_gtestlike_tests_report/lib/stdout_gtestlike_tests_report.rb +0 -43
  2261. data/plugins/stdout_ide_tests_report/README.md +0 -18
  2262. data/plugins/stdout_ide_tests_report/config/stdout_ide_tests_report.yml +0 -4
  2263. data/plugins/stdout_ide_tests_report/lib/stdout_ide_tests_report.rb +0 -44
  2264. data/plugins/stdout_pretty_tests_report/README.md +0 -20
  2265. data/plugins/stdout_pretty_tests_report/assets/template.erb +0 -59
  2266. data/plugins/stdout_pretty_tests_report/config/stdout_pretty_tests_report.yml +0 -4
  2267. data/plugins/stdout_pretty_tests_report/lib/stdout_pretty_tests_report.rb +0 -47
  2268. data/plugins/subprojects/README.md +0 -63
  2269. data/plugins/subprojects/config/defaults.yml +0 -33
  2270. data/plugins/subprojects/lib/subprojects.rb +0 -92
  2271. data/plugins/subprojects/subprojects.rake +0 -78
  2272. data/plugins/teamcity_tests_report/README.md +0 -18
  2273. data/plugins/teamcity_tests_report/config/teamcity_tests_report.yml +0 -4
  2274. data/plugins/teamcity_tests_report/lib/teamcity_tests_report.rb +0 -57
  2275. data/plugins/warnings_report/README.md +0 -19
  2276. data/plugins/warnings_report/lib/warnings_report.rb +0 -69
  2277. data/plugins/xml_tests_report/README.md +0 -36
  2278. data/plugins/xml_tests_report/lib/xml_tests_report.rb +0 -110
  2279. data/spec/build_invoker_utils_spec.rb +0 -54
  2280. data/spec/ceedling_spec.rb +0 -154
  2281. data/spec/par_map_spec.rb +0 -57
  2282. data/spec/system/deployment_spec.rb +0 -255
  2283. data/spec/target_loader_spec.rb +0 -30
  2284. data/spec/uncatagorized_specs_spec.rb +0 -8
  2285. data/vendor/behaviors/Manifest.txt +0 -9
  2286. data/vendor/behaviors/Rakefile +0 -19
  2287. data/vendor/behaviors/lib/behaviors/reporttask.rb +0 -158
  2288. data/vendor/behaviors/lib/behaviors.rb +0 -76
  2289. data/vendor/behaviors/test/behaviors_tasks_test.rb +0 -73
  2290. data/vendor/behaviors/test/behaviors_test.rb +0 -50
  2291. data/vendor/behaviors/test/tasks_test/Rakefile +0 -19
  2292. data/vendor/behaviors/test/tasks_test/lib/user.rb +0 -2
  2293. data/vendor/behaviors/test/tasks_test/test/user_test.rb +0 -17
  2294. data/vendor/c_exception/Gemfile +0 -4
  2295. data/vendor/c_exception/Gemfile.lock +0 -12
  2296. data/vendor/cmock/examples/temp_sensor/gcc.yml +0 -44
  2297. data/vendor/cmock/examples/temp_sensor/iar_v4.yml +0 -92
  2298. data/vendor/cmock/examples/temp_sensor/iar_v5.yml +0 -81
  2299. data/vendor/cmock/vendor/c_exception/Gemfile +0 -4
  2300. data/vendor/cmock/vendor/c_exception/Gemfile.lock +0 -12
  2301. data/vendor/cmock/vendor/unity/auto/unity_to_junit.py +0 -146
  2302. data/vendor/hardmock/CHANGES +0 -78
  2303. data/vendor/hardmock/LICENSE +0 -7
  2304. data/vendor/hardmock/README +0 -70
  2305. data/vendor/hardmock/Rakefile +0 -8
  2306. data/vendor/hardmock/config/environment.rb +0 -12
  2307. data/vendor/hardmock/lib/assert_error.rb +0 -23
  2308. data/vendor/hardmock/lib/extend_test_unit.rb +0 -14
  2309. data/vendor/hardmock/lib/hardmock/errors.rb +0 -22
  2310. data/vendor/hardmock/lib/hardmock/expectation.rb +0 -229
  2311. data/vendor/hardmock/lib/hardmock/expectation_builder.rb +0 -9
  2312. data/vendor/hardmock/lib/hardmock/expector.rb +0 -26
  2313. data/vendor/hardmock/lib/hardmock/method_cleanout.rb +0 -33
  2314. data/vendor/hardmock/lib/hardmock/mock.rb +0 -180
  2315. data/vendor/hardmock/lib/hardmock/mock_control.rb +0 -53
  2316. data/vendor/hardmock/lib/hardmock/stubbing.rb +0 -210
  2317. data/vendor/hardmock/lib/hardmock/trapper.rb +0 -31
  2318. data/vendor/hardmock/lib/hardmock/utils.rb +0 -9
  2319. data/vendor/hardmock/lib/hardmock.rb +0 -86
  2320. data/vendor/hardmock/lib/test_unit_before_after.rb +0 -169
  2321. data/vendor/hardmock/rake_tasks/rdoc.rake +0 -19
  2322. data/vendor/hardmock/rake_tasks/rdoc_options.rb +0 -4
  2323. data/vendor/hardmock/rake_tasks/test.rake +0 -22
  2324. data/vendor/hardmock/test/functional/assert_error_test.rb +0 -52
  2325. data/vendor/hardmock/test/functional/auto_verify_test.rb +0 -178
  2326. data/vendor/hardmock/test/functional/direct_mock_usage_test.rb +0 -396
  2327. data/vendor/hardmock/test/functional/hardmock_test.rb +0 -434
  2328. data/vendor/hardmock/test/functional/stubbing_test.rb +0 -479
  2329. data/vendor/hardmock/test/test_helper.rb +0 -43
  2330. data/vendor/hardmock/test/unit/expectation_builder_test.rb +0 -19
  2331. data/vendor/hardmock/test/unit/expectation_test.rb +0 -372
  2332. data/vendor/hardmock/test/unit/expector_test.rb +0 -57
  2333. data/vendor/hardmock/test/unit/method_cleanout_test.rb +0 -36
  2334. data/vendor/hardmock/test/unit/mock_control_test.rb +0 -175
  2335. data/vendor/hardmock/test/unit/mock_test.rb +0 -279
  2336. data/vendor/hardmock/test/unit/test_unit_before_after_test.rb +0 -452
  2337. data/vendor/hardmock/test/unit/trapper_test.rb +0 -62
  2338. data/vendor/hardmock/test/unit/verify_error_test.rb +0 -40
  2339. data/vendor/unity/auto/unity_to_junit.py +0 -146
  2340. /data/{examples/temp_sensor/build/test/preprocess/includes/AdcConductor.h → build/test/preprocess/includes/TestAdcConductor/AdcHardware.h.yml} +0 -0
  2341. /data/{examples/temp_sensor/build/test/preprocess/includes/AdcHardware.h → build/test/preprocess/includes/TestAdcConductor/AdcModel.h.yml} +0 -0
  2342. /data/{examples/temp_sensor/build/test/preprocess/includes/AdcHardwareConfigurator.h → build/test/preprocess/includes/TestAdcHardware/AdcHardwareConfigurator.h.yml} +0 -0
  2343. /data/{examples/temp_sensor/build/test/preprocess/includes/AdcModel.h → build/test/preprocess/includes/TestAdcHardware/AdcTemperatureSensor.h.yml} +0 -0
  2344. /data/{examples/temp_sensor/build/test/preprocess/includes/AdcTemperatureSensor.h → build/test/preprocess/includes/TestAdcModel/TaskScheduler.h.yml} +0 -0
  2345. /data/{examples/temp_sensor/build/test/preprocess/includes/Executor.h → build/test/preprocess/includes/TestAdcModel/TemperatureCalculator.h.yml} +0 -0
  2346. /data/{examples/temp_sensor/build/test/preprocess/includes/Model.h → build/test/preprocess/includes/TestAdcModel/TemperatureFilter.h.yml} +0 -0
  2347. /data/{examples/temp_sensor/build/test/preprocess/includes/TaskScheduler.h → build/test/preprocess/includes/TestExecutor/AdcConductor.h.yml} +0 -0
  2348. /data/{examples/temp_sensor/build/test/preprocess/includes/IntrinsicsWrapper.h → build/test/preprocess/includes/TestExecutor/IntrinsicsWrapper.h.yml} +0 -0
  2349. /data/{examples/temp_sensor/build/test/preprocess/includes/TemperatureCalculator.h → build/test/preprocess/includes/TestExecutor/Model.h.yml} +0 -0
  2350. /data/{examples/temp_sensor/build/test/preprocess/includes/TemperatureFilter.h → build/test/preprocess/includes/TestExecutor/TimerConductor.h.yml} +0 -0
  2351. /data/{examples/temp_sensor/build/test/preprocess/includes/UsartConductor.h → build/test/preprocess/includes/TestExecutor/UsartConductor.h.yml} +0 -0
  2352. /data/{examples/temp_sensor/build/test/preprocess/includes/TimerConductor.h → build/test/preprocess/includes/TestMain/Executor.h.yml} +0 -0
  2353. /data/{examples/temp_sensor/build/test/preprocess/includes/TimerConfigurator.h → build/test/preprocess/includes/TestModel/TaskScheduler.h.yml} +0 -0
  2354. /data/{examples/temp_sensor/build/test/preprocess/includes/TimerHardware.h → build/test/preprocess/includes/TestModel/TemperatureFilter.h.yml} +0 -0
  2355. /data/{examples/temp_sensor/build/test/preprocess/includes/TimerInterruptHandler.h → build/test/preprocess/includes/TestTimerConductor/TimerHardware.h.yml} +0 -0
  2356. /data/{examples/temp_sensor/build/test/preprocess/includes/TimerModel.h → build/test/preprocess/includes/TestTimerConductor/TimerInterruptHandler.h.yml} +0 -0
  2357. /data/{examples/temp_sensor/build/test/preprocess/includes/UsartBaudRateRegisterCalculator.h → build/test/preprocess/includes/TestTimerConductor/TimerModel.h.yml} +0 -0
  2358. /data/{examples/temp_sensor/build/test/preprocess/includes/UsartConfigurator.h → build/test/preprocess/includes/TestTimerHardware/TimerConfigurator.h.yml} +0 -0
  2359. /data/{examples/temp_sensor/build/test/preprocess/includes/UsartHardware.h → build/test/preprocess/includes/TestTimerIntegrated/TaskScheduler.h.yml} +0 -0
  2360. /data/{examples/temp_sensor/build/test/preprocess/includes/UsartModel.h → build/test/preprocess/includes/TestTimerIntegrated/TimerConfigurator.h.yml} +0 -0
  2361. /data/{examples/temp_sensor/build/test/preprocess/includes/UsartPutChar.h → build/test/preprocess/includes/TestTimerIntegrated/TimerInterruptHandler.h.yml} +0 -0
@@ -0,0 +1,2471 @@
1
+ /* =========================================================================
2
+ Ceedling - Test-Centered Build System for C
3
+ ThrowTheSwitch.org
4
+ Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5
+ SPDX-License-Identifier: MIT
6
+ ========================================================================= */
7
+
8
+
9
+
10
+ #include "unity.h"
11
+
12
+ #ifndef UNITY_PROGMEM
13
+ #define UNITY_PROGMEM
14
+ #endif
15
+
16
+ /* If omitted from header, declare overrideable prototypes here so they're ready for use */
17
+ #ifdef UNITY_OMIT_OUTPUT_CHAR_HEADER_DECLARATION
18
+ void UNITY_OUTPUT_CHAR(int);
19
+ #endif
20
+
21
+ /* Helpful macros for us to use here in Assert functions */
22
+ #define UNITY_FAIL_AND_BAIL do { Unity.CurrentTestFailed = 1; UNITY_OUTPUT_FLUSH(); TEST_ABORT(); } while (0)
23
+ #define UNITY_IGNORE_AND_BAIL do { Unity.CurrentTestIgnored = 1; UNITY_OUTPUT_FLUSH(); TEST_ABORT(); } while (0)
24
+ #define RETURN_IF_FAIL_OR_IGNORE do { if (Unity.CurrentTestFailed || Unity.CurrentTestIgnored) { TEST_ABORT(); } } while (0)
25
+
26
+ struct UNITY_STORAGE_T Unity;
27
+
28
+ #ifdef UNITY_OUTPUT_COLOR
29
+ const char UNITY_PROGMEM UnityStrOk[] = "\033[42mOK\033[0m";
30
+ const char UNITY_PROGMEM UnityStrPass[] = "\033[42mPASS\033[0m";
31
+ const char UNITY_PROGMEM UnityStrFail[] = "\033[41mFAIL\033[0m";
32
+ const char UNITY_PROGMEM UnityStrIgnore[] = "\033[43mIGNORE\033[0m";
33
+ #else
34
+ const char UNITY_PROGMEM UnityStrOk[] = "OK";
35
+ const char UNITY_PROGMEM UnityStrPass[] = "PASS";
36
+ const char UNITY_PROGMEM UnityStrFail[] = "FAIL";
37
+ const char UNITY_PROGMEM UnityStrIgnore[] = "IGNORE";
38
+ #endif
39
+ static const char UNITY_PROGMEM UnityStrNull[] = "NULL";
40
+ static const char UNITY_PROGMEM UnityStrSpacer[] = ". ";
41
+ static const char UNITY_PROGMEM UnityStrExpected[] = " Expected ";
42
+ static const char UNITY_PROGMEM UnityStrWas[] = " Was ";
43
+ static const char UNITY_PROGMEM UnityStrGt[] = " to be greater than ";
44
+ static const char UNITY_PROGMEM UnityStrLt[] = " to be less than ";
45
+ static const char UNITY_PROGMEM UnityStrOrEqual[] = "or equal to ";
46
+ static const char UNITY_PROGMEM UnityStrNotEqual[] = " to be not equal to ";
47
+ static const char UNITY_PROGMEM UnityStrElement[] = " Element ";
48
+ static const char UNITY_PROGMEM UnityStrByte[] = " Byte ";
49
+ static const char UNITY_PROGMEM UnityStrMemory[] = " Memory Mismatch.";
50
+ static const char UNITY_PROGMEM UnityStrDelta[] = " Values Not Within Delta ";
51
+ static const char UNITY_PROGMEM UnityStrPointless[] = " You Asked Me To Compare Nothing, Which Was Pointless.";
52
+ static const char UNITY_PROGMEM UnityStrNullPointerForExpected[] = " Expected pointer to be NULL";
53
+ static const char UNITY_PROGMEM UnityStrNullPointerForActual[] = " Actual pointer was NULL";
54
+ #ifndef UNITY_EXCLUDE_FLOAT
55
+ static const char UNITY_PROGMEM UnityStrNot[] = "Not ";
56
+ static const char UNITY_PROGMEM UnityStrInf[] = "Infinity";
57
+ static const char UNITY_PROGMEM UnityStrNegInf[] = "Negative Infinity";
58
+ static const char UNITY_PROGMEM UnityStrNaN[] = "NaN";
59
+ static const char UNITY_PROGMEM UnityStrDet[] = "Determinate";
60
+ static const char UNITY_PROGMEM UnityStrInvalidFloatTrait[] = "Invalid Float Trait";
61
+ #endif
62
+ const char UNITY_PROGMEM UnityStrErrShorthand[] = "Unity Shorthand Support Disabled";
63
+ const char UNITY_PROGMEM UnityStrErrFloat[] = "Unity Floating Point Disabled";
64
+ const char UNITY_PROGMEM UnityStrErrDouble[] = "Unity Double Precision Disabled";
65
+ const char UNITY_PROGMEM UnityStrErr64[] = "Unity 64-bit Support Disabled";
66
+ static const char UNITY_PROGMEM UnityStrBreaker[] = "-----------------------";
67
+ static const char UNITY_PROGMEM UnityStrResultsTests[] = " Tests ";
68
+ static const char UNITY_PROGMEM UnityStrResultsFailures[] = " Failures ";
69
+ static const char UNITY_PROGMEM UnityStrResultsIgnored[] = " Ignored ";
70
+ #ifndef UNITY_EXCLUDE_DETAILS
71
+ static const char UNITY_PROGMEM UnityStrDetail1Name[] = UNITY_DETAIL1_NAME " ";
72
+ static const char UNITY_PROGMEM UnityStrDetail2Name[] = " " UNITY_DETAIL2_NAME " ";
73
+ #endif
74
+ /*-----------------------------------------------
75
+ * Pretty Printers & Test Result Output Handlers
76
+ *-----------------------------------------------*/
77
+
78
+ /*-----------------------------------------------*/
79
+ /* Local helper function to print characters. */
80
+ static void UnityPrintChar(const char* pch)
81
+ {
82
+ /* printable characters plus CR & LF are printed */
83
+ if ((*pch <= 126) && (*pch >= 32))
84
+ {
85
+ UNITY_OUTPUT_CHAR(*pch);
86
+ }
87
+ /* write escaped carriage returns */
88
+ else if (*pch == 13)
89
+ {
90
+ UNITY_OUTPUT_CHAR('\\');
91
+ UNITY_OUTPUT_CHAR('r');
92
+ }
93
+ /* write escaped line feeds */
94
+ else if (*pch == 10)
95
+ {
96
+ UNITY_OUTPUT_CHAR('\\');
97
+ UNITY_OUTPUT_CHAR('n');
98
+ }
99
+ /* unprintable characters are shown as codes */
100
+ else
101
+ {
102
+ UNITY_OUTPUT_CHAR('\\');
103
+ UNITY_OUTPUT_CHAR('x');
104
+ UnityPrintNumberHex((UNITY_UINT)*pch, 2);
105
+ }
106
+ }
107
+
108
+ /*-----------------------------------------------*/
109
+ /* Local helper function to print ANSI escape strings e.g. "\033[42m". */
110
+ #ifdef UNITY_OUTPUT_COLOR
111
+ static UNITY_UINT UnityPrintAnsiEscapeString(const char* string)
112
+ {
113
+ const char* pch = string;
114
+ UNITY_UINT count = 0;
115
+
116
+ while (*pch && (*pch != 'm'))
117
+ {
118
+ UNITY_OUTPUT_CHAR(*pch);
119
+ pch++;
120
+ count++;
121
+ }
122
+ UNITY_OUTPUT_CHAR('m');
123
+ count++;
124
+
125
+ return count;
126
+ }
127
+ #endif
128
+
129
+ /*-----------------------------------------------*/
130
+ void UnityPrint(const char* string)
131
+ {
132
+ const char* pch = string;
133
+
134
+ if (pch != NULL)
135
+ {
136
+ while (*pch)
137
+ {
138
+ #ifdef UNITY_OUTPUT_COLOR
139
+ /* print ANSI escape code */
140
+ if ((*pch == 27) && (*(pch + 1) == '['))
141
+ {
142
+ pch += UnityPrintAnsiEscapeString(pch);
143
+ continue;
144
+ }
145
+ #endif
146
+ UnityPrintChar(pch);
147
+ pch++;
148
+ }
149
+ }
150
+ }
151
+ /*-----------------------------------------------*/
152
+ void UnityPrintLen(const char* string, const UNITY_UINT32 length)
153
+ {
154
+ const char* pch = string;
155
+
156
+ if (pch != NULL)
157
+ {
158
+ while (*pch && ((UNITY_UINT32)(pch - string) < length))
159
+ {
160
+ /* printable characters plus CR & LF are printed */
161
+ if ((*pch <= 126) && (*pch >= 32))
162
+ {
163
+ UNITY_OUTPUT_CHAR(*pch);
164
+ }
165
+ /* write escaped carriage returns */
166
+ else if (*pch == 13)
167
+ {
168
+ UNITY_OUTPUT_CHAR('\\');
169
+ UNITY_OUTPUT_CHAR('r');
170
+ }
171
+ /* write escaped line feeds */
172
+ else if (*pch == 10)
173
+ {
174
+ UNITY_OUTPUT_CHAR('\\');
175
+ UNITY_OUTPUT_CHAR('n');
176
+ }
177
+ /* unprintable characters are shown as codes */
178
+ else
179
+ {
180
+ UNITY_OUTPUT_CHAR('\\');
181
+ UNITY_OUTPUT_CHAR('x');
182
+ UnityPrintNumberHex((UNITY_UINT)*pch, 2);
183
+ }
184
+ pch++;
185
+ }
186
+ }
187
+ }
188
+
189
+ /*-----------------------------------------------*/
190
+ void UnityPrintNumberByStyle(const UNITY_INT number, const UNITY_DISPLAY_STYLE_T style)
191
+ {
192
+ if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
193
+ {
194
+ if (style == UNITY_DISPLAY_STYLE_CHAR)
195
+ {
196
+ /* printable characters plus CR & LF are printed */
197
+ UNITY_OUTPUT_CHAR('\'');
198
+ if ((number <= 126) && (number >= 32))
199
+ {
200
+ UNITY_OUTPUT_CHAR((int)number);
201
+ }
202
+ /* write escaped carriage returns */
203
+ else if (number == 13)
204
+ {
205
+ UNITY_OUTPUT_CHAR('\\');
206
+ UNITY_OUTPUT_CHAR('r');
207
+ }
208
+ /* write escaped line feeds */
209
+ else if (number == 10)
210
+ {
211
+ UNITY_OUTPUT_CHAR('\\');
212
+ UNITY_OUTPUT_CHAR('n');
213
+ }
214
+ /* unprintable characters are shown as codes */
215
+ else
216
+ {
217
+ UNITY_OUTPUT_CHAR('\\');
218
+ UNITY_OUTPUT_CHAR('x');
219
+ UnityPrintNumberHex((UNITY_UINT)number, 2);
220
+ }
221
+ UNITY_OUTPUT_CHAR('\'');
222
+ }
223
+ else
224
+ {
225
+ UnityPrintNumber(number);
226
+ }
227
+ }
228
+ else if ((style & UNITY_DISPLAY_RANGE_UINT) == UNITY_DISPLAY_RANGE_UINT)
229
+ {
230
+ UnityPrintNumberUnsigned((UNITY_UINT)number);
231
+ }
232
+ else
233
+ {
234
+ UNITY_OUTPUT_CHAR('0');
235
+ UNITY_OUTPUT_CHAR('x');
236
+ UnityPrintNumberHex((UNITY_UINT)number, (char)((style & 0xF) * 2));
237
+ }
238
+ }
239
+
240
+ /*-----------------------------------------------*/
241
+ void UnityPrintNumber(const UNITY_INT number_to_print)
242
+ {
243
+ UNITY_UINT number = (UNITY_UINT)number_to_print;
244
+
245
+ if (number_to_print < 0)
246
+ {
247
+ /* A negative number, including MIN negative */
248
+ UNITY_OUTPUT_CHAR('-');
249
+ number = (~number) + 1;
250
+ }
251
+ UnityPrintNumberUnsigned(number);
252
+ }
253
+
254
+ /*-----------------------------------------------
255
+ * basically do an itoa using as little ram as possible */
256
+ void UnityPrintNumberUnsigned(const UNITY_UINT number)
257
+ {
258
+ UNITY_UINT divisor = 1;
259
+
260
+ /* figure out initial divisor */
261
+ while (number / divisor > 9)
262
+ {
263
+ divisor *= 10;
264
+ }
265
+
266
+ /* now mod and print, then divide divisor */
267
+ do
268
+ {
269
+ UNITY_OUTPUT_CHAR((char)('0' + (number / divisor % 10)));
270
+ divisor /= 10;
271
+ } while (divisor > 0);
272
+ }
273
+
274
+ /*-----------------------------------------------*/
275
+ void UnityPrintNumberHex(const UNITY_UINT number, const char nibbles_to_print)
276
+ {
277
+ int nibble;
278
+ char nibbles = nibbles_to_print;
279
+
280
+ if ((unsigned)nibbles > UNITY_MAX_NIBBLES)
281
+ {
282
+ nibbles = UNITY_MAX_NIBBLES;
283
+ }
284
+
285
+ while (nibbles > 0)
286
+ {
287
+ nibbles--;
288
+ nibble = (int)(number >> (nibbles * 4)) & 0x0F;
289
+ if (nibble <= 9)
290
+ {
291
+ UNITY_OUTPUT_CHAR((char)('0' + nibble));
292
+ }
293
+ else
294
+ {
295
+ UNITY_OUTPUT_CHAR((char)('A' - 10 + nibble));
296
+ }
297
+ }
298
+ }
299
+
300
+ /*-----------------------------------------------*/
301
+ void UnityPrintMask(const UNITY_UINT mask, const UNITY_UINT number)
302
+ {
303
+ UNITY_UINT current_bit = (UNITY_UINT)1 << (UNITY_INT_WIDTH - 1);
304
+ UNITY_INT32 i;
305
+
306
+ for (i = 0; i < UNITY_INT_WIDTH; i++)
307
+ {
308
+ if (current_bit & mask)
309
+ {
310
+ if (current_bit & number)
311
+ {
312
+ UNITY_OUTPUT_CHAR('1');
313
+ }
314
+ else
315
+ {
316
+ UNITY_OUTPUT_CHAR('0');
317
+ }
318
+ }
319
+ else
320
+ {
321
+ UNITY_OUTPUT_CHAR('X');
322
+ }
323
+ current_bit = current_bit >> 1;
324
+ }
325
+ }
326
+
327
+ /*-----------------------------------------------*/
328
+ #ifndef UNITY_EXCLUDE_FLOAT_PRINT
329
+ /*
330
+ * This function prints a floating-point value in a format similar to
331
+ * printf("%.7g") on a single-precision machine or printf("%.9g") on a
332
+ * double-precision machine. The 7th digit won't always be totally correct
333
+ * in single-precision operation (for that level of accuracy, a more
334
+ * complicated algorithm would be needed).
335
+ */
336
+ void UnityPrintFloat(const UNITY_DOUBLE input_number)
337
+ {
338
+ #ifdef UNITY_INCLUDE_DOUBLE
339
+ static const int sig_digits = 9;
340
+ static const UNITY_INT32 min_scaled = 100000000;
341
+ static const UNITY_INT32 max_scaled = 1000000000;
342
+ #else
343
+ static const int sig_digits = 7;
344
+ static const UNITY_INT32 min_scaled = 1000000;
345
+ static const UNITY_INT32 max_scaled = 10000000;
346
+ #endif
347
+
348
+ UNITY_DOUBLE number = input_number;
349
+
350
+ /* print minus sign (does not handle negative zero) */
351
+ if (number < 0.0f)
352
+ {
353
+ UNITY_OUTPUT_CHAR('-');
354
+ number = -number;
355
+ }
356
+
357
+ /* handle zero, NaN, and +/- infinity */
358
+ if (number == 0.0f)
359
+ {
360
+ UnityPrint("0");
361
+ }
362
+ else if (isnan(number))
363
+ {
364
+ UnityPrint("nan");
365
+ }
366
+ else if (isinf(number))
367
+ {
368
+ UnityPrint("inf");
369
+ }
370
+ else
371
+ {
372
+ UNITY_INT32 n_int = 0;
373
+ UNITY_INT32 n;
374
+ int exponent = 0;
375
+ int decimals;
376
+ int digits;
377
+ char buf[16] = {0};
378
+
379
+ /*
380
+ * Scale up or down by powers of 10. To minimize rounding error,
381
+ * start with a factor/divisor of 10^10, which is the largest
382
+ * power of 10 that can be represented exactly. Finally, compute
383
+ * (exactly) the remaining power of 10 and perform one more
384
+ * multiplication or division.
385
+ */
386
+ if (number < 1.0f)
387
+ {
388
+ UNITY_DOUBLE factor = 1.0f;
389
+
390
+ while (number < (UNITY_DOUBLE)max_scaled / 1e10f) { number *= 1e10f; exponent -= 10; }
391
+ while (number * factor < (UNITY_DOUBLE)min_scaled) { factor *= 10.0f; exponent--; }
392
+
393
+ number *= factor;
394
+ }
395
+ else if (number > (UNITY_DOUBLE)max_scaled)
396
+ {
397
+ UNITY_DOUBLE divisor = 1.0f;
398
+
399
+ while (number > (UNITY_DOUBLE)min_scaled * 1e10f) { number /= 1e10f; exponent += 10; }
400
+ while (number / divisor > (UNITY_DOUBLE)max_scaled) { divisor *= 10.0f; exponent++; }
401
+
402
+ number /= divisor;
403
+ }
404
+ else
405
+ {
406
+ /*
407
+ * In this range, we can split off the integer part before
408
+ * doing any multiplications. This reduces rounding error by
409
+ * freeing up significant bits in the fractional part.
410
+ */
411
+ UNITY_DOUBLE factor = 1.0f;
412
+ n_int = (UNITY_INT32)number;
413
+ number -= (UNITY_DOUBLE)n_int;
414
+
415
+ while (n_int < min_scaled) { n_int *= 10; factor *= 10.0f; exponent--; }
416
+
417
+ number *= factor;
418
+ }
419
+
420
+ /* round to nearest integer */
421
+ n = ((UNITY_INT32)(number + number) + 1) / 2;
422
+
423
+ #ifndef UNITY_ROUND_TIES_AWAY_FROM_ZERO
424
+ /* round to even if exactly between two integers */
425
+ if ((n & 1) && (((UNITY_DOUBLE)n - number) == 0.5f))
426
+ n--;
427
+ #endif
428
+
429
+ n += n_int;
430
+
431
+ if (n >= max_scaled)
432
+ {
433
+ n = min_scaled;
434
+ exponent++;
435
+ }
436
+
437
+ /* determine where to place decimal point */
438
+ decimals = ((exponent <= 0) && (exponent >= -(sig_digits + 3))) ? (-exponent) : (sig_digits - 1);
439
+ exponent += decimals;
440
+
441
+ /* truncate trailing zeroes after decimal point */
442
+ while ((decimals > 0) && ((n % 10) == 0))
443
+ {
444
+ n /= 10;
445
+ decimals--;
446
+ }
447
+
448
+ /* build up buffer in reverse order */
449
+ digits = 0;
450
+ while ((n != 0) || (digits <= decimals))
451
+ {
452
+ buf[digits++] = (char)('0' + n % 10);
453
+ n /= 10;
454
+ }
455
+
456
+ /* print out buffer (backwards) */
457
+ while (digits > 0)
458
+ {
459
+ if (digits == decimals)
460
+ {
461
+ UNITY_OUTPUT_CHAR('.');
462
+ }
463
+ UNITY_OUTPUT_CHAR(buf[--digits]);
464
+ }
465
+
466
+ /* print exponent if needed */
467
+ if (exponent != 0)
468
+ {
469
+ UNITY_OUTPUT_CHAR('e');
470
+
471
+ if (exponent < 0)
472
+ {
473
+ UNITY_OUTPUT_CHAR('-');
474
+ exponent = -exponent;
475
+ }
476
+ else
477
+ {
478
+ UNITY_OUTPUT_CHAR('+');
479
+ }
480
+
481
+ digits = 0;
482
+ while ((exponent != 0) || (digits < 2))
483
+ {
484
+ buf[digits++] = (char)('0' + exponent % 10);
485
+ exponent /= 10;
486
+ }
487
+ while (digits > 0)
488
+ {
489
+ UNITY_OUTPUT_CHAR(buf[--digits]);
490
+ }
491
+ }
492
+ }
493
+ }
494
+ #endif /* ! UNITY_EXCLUDE_FLOAT_PRINT */
495
+
496
+ /*-----------------------------------------------*/
497
+ static void UnityTestResultsBegin(const char* file, const UNITY_LINE_TYPE line)
498
+ {
499
+ #ifdef UNITY_OUTPUT_FOR_ECLIPSE
500
+ UNITY_OUTPUT_CHAR('(');
501
+ UnityPrint(file);
502
+ UNITY_OUTPUT_CHAR(':');
503
+ UnityPrintNumber((UNITY_INT)line);
504
+ UNITY_OUTPUT_CHAR(')');
505
+ UNITY_OUTPUT_CHAR(' ');
506
+ UnityPrint(Unity.CurrentTestName);
507
+ UNITY_OUTPUT_CHAR(':');
508
+ #else
509
+ #ifdef UNITY_OUTPUT_FOR_IAR_WORKBENCH
510
+ UnityPrint("<SRCREF line=");
511
+ UnityPrintNumber((UNITY_INT)line);
512
+ UnityPrint(" file=\"");
513
+ UnityPrint(file);
514
+ UNITY_OUTPUT_CHAR('"');
515
+ UNITY_OUTPUT_CHAR('>');
516
+ UnityPrint(Unity.CurrentTestName);
517
+ UnityPrint("</SRCREF> ");
518
+ #else
519
+ #ifdef UNITY_OUTPUT_FOR_QT_CREATOR
520
+ UnityPrint("file://");
521
+ UnityPrint(file);
522
+ UNITY_OUTPUT_CHAR(':');
523
+ UnityPrintNumber((UNITY_INT)line);
524
+ UNITY_OUTPUT_CHAR(' ');
525
+ UnityPrint(Unity.CurrentTestName);
526
+ UNITY_OUTPUT_CHAR(':');
527
+ #else
528
+ UnityPrint(file);
529
+ UNITY_OUTPUT_CHAR(':');
530
+ UnityPrintNumber((UNITY_INT)line);
531
+ UNITY_OUTPUT_CHAR(':');
532
+ UnityPrint(Unity.CurrentTestName);
533
+ UNITY_OUTPUT_CHAR(':');
534
+ #endif
535
+ #endif
536
+ #endif
537
+ }
538
+
539
+ /*-----------------------------------------------*/
540
+ static void UnityTestResultsFailBegin(const UNITY_LINE_TYPE line)
541
+ {
542
+ UnityTestResultsBegin(Unity.TestFile, line);
543
+ UnityPrint(UnityStrFail);
544
+ UNITY_OUTPUT_CHAR(':');
545
+ }
546
+
547
+ /*-----------------------------------------------*/
548
+ void UnityConcludeTest(void)
549
+ {
550
+ if (Unity.CurrentTestIgnored)
551
+ {
552
+ Unity.TestIgnores++;
553
+ }
554
+ else if (!Unity.CurrentTestFailed)
555
+ {
556
+ UnityTestResultsBegin(Unity.TestFile, Unity.CurrentTestLineNumber);
557
+ UnityPrint(UnityStrPass);
558
+ }
559
+ else
560
+ {
561
+ Unity.TestFailures++;
562
+ }
563
+
564
+ Unity.CurrentTestFailed = 0;
565
+ Unity.CurrentTestIgnored = 0;
566
+ UNITY_PRINT_EXEC_TIME();
567
+ UNITY_PRINT_EOL();
568
+ UNITY_FLUSH_CALL();
569
+ }
570
+
571
+ /*-----------------------------------------------*/
572
+ static void UnityAddMsgIfSpecified(const char* msg)
573
+ {
574
+ #ifdef UNITY_PRINT_TEST_CONTEXT
575
+ UnityPrint(UnityStrSpacer);
576
+ UNITY_PRINT_TEST_CONTEXT();
577
+ #endif
578
+ #ifndef UNITY_EXCLUDE_DETAILS
579
+ if (Unity.CurrentDetail1)
580
+ {
581
+ UnityPrint(UnityStrSpacer);
582
+ UnityPrint(UnityStrDetail1Name);
583
+ UnityPrint(Unity.CurrentDetail1);
584
+ if (Unity.CurrentDetail2)
585
+ {
586
+ UnityPrint(UnityStrDetail2Name);
587
+ UnityPrint(Unity.CurrentDetail2);
588
+ }
589
+ }
590
+ #endif
591
+ if (msg)
592
+ {
593
+ UnityPrint(UnityStrSpacer);
594
+ UnityPrint(msg);
595
+ }
596
+ }
597
+
598
+ /*-----------------------------------------------*/
599
+ static void UnityPrintExpectedAndActualStrings(const char* expected, const char* actual)
600
+ {
601
+ UnityPrint(UnityStrExpected);
602
+ if (expected != NULL)
603
+ {
604
+ UNITY_OUTPUT_CHAR('\'');
605
+ UnityPrint(expected);
606
+ UNITY_OUTPUT_CHAR('\'');
607
+ }
608
+ else
609
+ {
610
+ UnityPrint(UnityStrNull);
611
+ }
612
+ UnityPrint(UnityStrWas);
613
+ if (actual != NULL)
614
+ {
615
+ UNITY_OUTPUT_CHAR('\'');
616
+ UnityPrint(actual);
617
+ UNITY_OUTPUT_CHAR('\'');
618
+ }
619
+ else
620
+ {
621
+ UnityPrint(UnityStrNull);
622
+ }
623
+ }
624
+
625
+ /*-----------------------------------------------*/
626
+ static void UnityPrintExpectedAndActualStringsLen(const char* expected,
627
+ const char* actual,
628
+ const UNITY_UINT32 length)
629
+ {
630
+ UnityPrint(UnityStrExpected);
631
+ if (expected != NULL)
632
+ {
633
+ UNITY_OUTPUT_CHAR('\'');
634
+ UnityPrintLen(expected, length);
635
+ UNITY_OUTPUT_CHAR('\'');
636
+ }
637
+ else
638
+ {
639
+ UnityPrint(UnityStrNull);
640
+ }
641
+ UnityPrint(UnityStrWas);
642
+ if (actual != NULL)
643
+ {
644
+ UNITY_OUTPUT_CHAR('\'');
645
+ UnityPrintLen(actual, length);
646
+ UNITY_OUTPUT_CHAR('\'');
647
+ }
648
+ else
649
+ {
650
+ UnityPrint(UnityStrNull);
651
+ }
652
+ }
653
+
654
+ /*-----------------------------------------------
655
+ * Assertion & Control Helpers
656
+ *-----------------------------------------------*/
657
+
658
+ /*-----------------------------------------------*/
659
+ static int UnityIsOneArrayNull(UNITY_INTERNAL_PTR expected,
660
+ UNITY_INTERNAL_PTR actual,
661
+ const UNITY_LINE_TYPE lineNumber,
662
+ const char* msg)
663
+ {
664
+ /* Both are NULL or same pointer */
665
+ if (expected == actual) { return 0; }
666
+
667
+ /* print and return true if just expected is NULL */
668
+ if (expected == NULL)
669
+ {
670
+ UnityTestResultsFailBegin(lineNumber);
671
+ UnityPrint(UnityStrNullPointerForExpected);
672
+ UnityAddMsgIfSpecified(msg);
673
+ return 1;
674
+ }
675
+
676
+ /* print and return true if just actual is NULL */
677
+ if (actual == NULL)
678
+ {
679
+ UnityTestResultsFailBegin(lineNumber);
680
+ UnityPrint(UnityStrNullPointerForActual);
681
+ UnityAddMsgIfSpecified(msg);
682
+ return 1;
683
+ }
684
+
685
+ return 0; /* return false if neither is NULL */
686
+ }
687
+
688
+ /*-----------------------------------------------
689
+ * Assertion Functions
690
+ *-----------------------------------------------*/
691
+
692
+ /*-----------------------------------------------*/
693
+ void UnityAssertBits(const UNITY_INT mask,
694
+ const UNITY_INT expected,
695
+ const UNITY_INT actual,
696
+ const char* msg,
697
+ const UNITY_LINE_TYPE lineNumber)
698
+ {
699
+ RETURN_IF_FAIL_OR_IGNORE;
700
+
701
+ if ((mask & expected) != (mask & actual))
702
+ {
703
+ UnityTestResultsFailBegin(lineNumber);
704
+ UnityPrint(UnityStrExpected);
705
+ UnityPrintMask((UNITY_UINT)mask, (UNITY_UINT)expected);
706
+ UnityPrint(UnityStrWas);
707
+ UnityPrintMask((UNITY_UINT)mask, (UNITY_UINT)actual);
708
+ UnityAddMsgIfSpecified(msg);
709
+ UNITY_FAIL_AND_BAIL;
710
+ }
711
+ }
712
+
713
+ /*-----------------------------------------------*/
714
+ void UnityAssertEqualNumber(const UNITY_INT expected,
715
+ const UNITY_INT actual,
716
+ const char* msg,
717
+ const UNITY_LINE_TYPE lineNumber,
718
+ const UNITY_DISPLAY_STYLE_T style)
719
+ {
720
+ RETURN_IF_FAIL_OR_IGNORE;
721
+
722
+ if (expected != actual)
723
+ {
724
+ UnityTestResultsFailBegin(lineNumber);
725
+ UnityPrint(UnityStrExpected);
726
+ UnityPrintNumberByStyle(expected, style);
727
+ UnityPrint(UnityStrWas);
728
+ UnityPrintNumberByStyle(actual, style);
729
+ UnityAddMsgIfSpecified(msg);
730
+ UNITY_FAIL_AND_BAIL;
731
+ }
732
+ }
733
+
734
+ /*-----------------------------------------------*/
735
+ void UnityAssertGreaterOrLessOrEqualNumber(const UNITY_INT threshold,
736
+ const UNITY_INT actual,
737
+ const UNITY_COMPARISON_T compare,
738
+ const char *msg,
739
+ const UNITY_LINE_TYPE lineNumber,
740
+ const UNITY_DISPLAY_STYLE_T style)
741
+ {
742
+ int failed = 0;
743
+ RETURN_IF_FAIL_OR_IGNORE;
744
+
745
+ if ((threshold == actual) && (compare & UNITY_EQUAL_TO)) { return; }
746
+ if ((threshold == actual)) { failed = 1; }
747
+
748
+ if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
749
+ {
750
+ if ((actual > threshold) && (compare & UNITY_SMALLER_THAN)) { failed = 1; }
751
+ if ((actual < threshold) && (compare & UNITY_GREATER_THAN)) { failed = 1; }
752
+ }
753
+ else /* UINT or HEX */
754
+ {
755
+ if (((UNITY_UINT)actual > (UNITY_UINT)threshold) && (compare & UNITY_SMALLER_THAN)) { failed = 1; }
756
+ if (((UNITY_UINT)actual < (UNITY_UINT)threshold) && (compare & UNITY_GREATER_THAN)) { failed = 1; }
757
+ }
758
+
759
+ if (failed)
760
+ {
761
+ UnityTestResultsFailBegin(lineNumber);
762
+ UnityPrint(UnityStrExpected);
763
+ UnityPrintNumberByStyle(actual, style);
764
+ if (compare & UNITY_GREATER_THAN) { UnityPrint(UnityStrGt); }
765
+ if (compare & UNITY_SMALLER_THAN) { UnityPrint(UnityStrLt); }
766
+ if (compare & UNITY_EQUAL_TO) { UnityPrint(UnityStrOrEqual); }
767
+ if (compare == UNITY_NOT_EQUAL) { UnityPrint(UnityStrNotEqual); }
768
+ UnityPrintNumberByStyle(threshold, style);
769
+ UnityAddMsgIfSpecified(msg);
770
+ UNITY_FAIL_AND_BAIL;
771
+ }
772
+ }
773
+
774
+ #define UnityPrintPointlessAndBail() \
775
+ do { \
776
+ UnityTestResultsFailBegin(lineNumber); \
777
+ UnityPrint(UnityStrPointless); \
778
+ UnityAddMsgIfSpecified(msg); \
779
+ UNITY_FAIL_AND_BAIL; \
780
+ } while (0)
781
+
782
+ /*-----------------------------------------------*/
783
+ void UnityAssertEqualIntArray(UNITY_INTERNAL_PTR expected,
784
+ UNITY_INTERNAL_PTR actual,
785
+ const UNITY_UINT32 num_elements,
786
+ const char* msg,
787
+ const UNITY_LINE_TYPE lineNumber,
788
+ const UNITY_DISPLAY_STYLE_T style,
789
+ const UNITY_FLAGS_T flags)
790
+ {
791
+ UNITY_UINT32 elements = num_elements;
792
+ unsigned int length = style & 0xF;
793
+ unsigned int increment = 0;
794
+
795
+ RETURN_IF_FAIL_OR_IGNORE;
796
+
797
+ if (num_elements == 0)
798
+ {
799
+ #ifdef UNITY_COMPARE_PTRS_ON_ZERO_ARRAY
800
+ UNITY_TEST_ASSERT_EQUAL_PTR(expected, actual, lineNumber, msg);
801
+ #else
802
+ UnityPrintPointlessAndBail();
803
+ #endif
804
+ }
805
+
806
+ if (expected == actual)
807
+ {
808
+ return; /* Both are NULL or same pointer */
809
+ }
810
+
811
+ if (UnityIsOneArrayNull(expected, actual, lineNumber, msg))
812
+ {
813
+ UNITY_FAIL_AND_BAIL;
814
+ }
815
+
816
+ while ((elements > 0) && (elements--))
817
+ {
818
+ UNITY_INT expect_val;
819
+ UNITY_INT actual_val;
820
+
821
+ switch (length)
822
+ {
823
+ case 1:
824
+ expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT8*)expected;
825
+ actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT8*)actual;
826
+ if (style & (UNITY_DISPLAY_RANGE_UINT | UNITY_DISPLAY_RANGE_HEX))
827
+ {
828
+ expect_val &= 0x000000FF;
829
+ actual_val &= 0x000000FF;
830
+ }
831
+ increment = sizeof(UNITY_INT8);
832
+ break;
833
+
834
+ case 2:
835
+ expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)expected;
836
+ actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)actual;
837
+ if (style & (UNITY_DISPLAY_RANGE_UINT | UNITY_DISPLAY_RANGE_HEX))
838
+ {
839
+ expect_val &= 0x0000FFFF;
840
+ actual_val &= 0x0000FFFF;
841
+ }
842
+ increment = sizeof(UNITY_INT16);
843
+ break;
844
+
845
+ #ifdef UNITY_SUPPORT_64
846
+ case 8:
847
+ expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT64*)expected;
848
+ actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT64*)actual;
849
+ increment = sizeof(UNITY_INT64);
850
+ break;
851
+ #endif
852
+
853
+ default: /* default is length 4 bytes */
854
+ case 4:
855
+ expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)expected;
856
+ actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)actual;
857
+ #ifdef UNITY_SUPPORT_64
858
+ if (style & (UNITY_DISPLAY_RANGE_UINT | UNITY_DISPLAY_RANGE_HEX))
859
+ {
860
+ expect_val &= 0x00000000FFFFFFFF;
861
+ actual_val &= 0x00000000FFFFFFFF;
862
+ }
863
+ #endif
864
+ increment = sizeof(UNITY_INT32);
865
+ length = 4;
866
+ break;
867
+ }
868
+
869
+ if (expect_val != actual_val)
870
+ {
871
+ if ((style & UNITY_DISPLAY_RANGE_UINT) && (length < (UNITY_INT_WIDTH / 8)))
872
+ { /* For UINT, remove sign extension (padding 1's) from signed type casts above */
873
+ UNITY_INT mask = 1;
874
+ mask = (mask << 8 * length) - 1;
875
+ expect_val &= mask;
876
+ actual_val &= mask;
877
+ }
878
+ UnityTestResultsFailBegin(lineNumber);
879
+ UnityPrint(UnityStrElement);
880
+ UnityPrintNumberUnsigned(num_elements - elements - 1);
881
+ UnityPrint(UnityStrExpected);
882
+ UnityPrintNumberByStyle(expect_val, style);
883
+ UnityPrint(UnityStrWas);
884
+ UnityPrintNumberByStyle(actual_val, style);
885
+ UnityAddMsgIfSpecified(msg);
886
+ UNITY_FAIL_AND_BAIL;
887
+ }
888
+ /* Walk through array by incrementing the pointers */
889
+ if (flags == UNITY_ARRAY_TO_ARRAY)
890
+ {
891
+ expected = (UNITY_INTERNAL_PTR)((const char*)expected + increment);
892
+ }
893
+ actual = (UNITY_INTERNAL_PTR)((const char*)actual + increment);
894
+ }
895
+ }
896
+
897
+ /*-----------------------------------------------*/
898
+ #ifndef UNITY_EXCLUDE_FLOAT
899
+ /* Wrap this define in a function with variable types as float or double */
900
+ #define UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff) \
901
+ if (isinf(expected) && isinf(actual) && (((expected) < 0) == ((actual) < 0))) return 1; \
902
+ if (UNITY_NAN_CHECK) return 1; \
903
+ (diff) = (actual) - (expected); \
904
+ if ((diff) < 0) (diff) = -(diff); \
905
+ if ((delta) < 0) (delta) = -(delta); \
906
+ return !(isnan(diff) || isinf(diff) || ((diff) > (delta)))
907
+ /* This first part of this condition will catch any NaN or Infinite values */
908
+ #ifndef UNITY_NAN_NOT_EQUAL_NAN
909
+ #define UNITY_NAN_CHECK isnan(expected) && isnan(actual)
910
+ #else
911
+ #define UNITY_NAN_CHECK 0
912
+ #endif
913
+
914
+ #ifndef UNITY_EXCLUDE_FLOAT_PRINT
915
+ #define UNITY_PRINT_EXPECTED_AND_ACTUAL_FLOAT(expected, actual) \
916
+ do { \
917
+ UnityPrint(UnityStrExpected); \
918
+ UnityPrintFloat(expected); \
919
+ UnityPrint(UnityStrWas); \
920
+ UnityPrintFloat(actual); \
921
+ } while (0)
922
+ #else
923
+ #define UNITY_PRINT_EXPECTED_AND_ACTUAL_FLOAT(expected, actual) \
924
+ UnityPrint(UnityStrDelta)
925
+ #endif /* UNITY_EXCLUDE_FLOAT_PRINT */
926
+
927
+ /*-----------------------------------------------*/
928
+ static int UnityFloatsWithin(UNITY_FLOAT delta, UNITY_FLOAT expected, UNITY_FLOAT actual)
929
+ {
930
+ UNITY_FLOAT diff;
931
+ UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff);
932
+ }
933
+
934
+ /*-----------------------------------------------*/
935
+ void UnityAssertWithinFloatArray(const UNITY_FLOAT delta,
936
+ UNITY_PTR_ATTRIBUTE const UNITY_FLOAT* expected,
937
+ UNITY_PTR_ATTRIBUTE const UNITY_FLOAT* actual,
938
+ const UNITY_UINT32 num_elements,
939
+ const char* msg,
940
+ const UNITY_LINE_TYPE lineNumber,
941
+ const UNITY_FLAGS_T flags)
942
+ {
943
+ UNITY_UINT32 elements = num_elements;
944
+ UNITY_PTR_ATTRIBUTE const UNITY_FLOAT* ptr_expected = expected;
945
+ UNITY_PTR_ATTRIBUTE const UNITY_FLOAT* ptr_actual = actual;
946
+ UNITY_FLOAT in_delta = delta;
947
+ UNITY_FLOAT current_element_delta = delta;
948
+
949
+ RETURN_IF_FAIL_OR_IGNORE;
950
+
951
+ if (elements == 0)
952
+ {
953
+ #ifdef UNITY_COMPARE_PTRS_ON_ZERO_ARRAY
954
+ UNITY_TEST_ASSERT_EQUAL_PTR(expected, actual, lineNumber, msg);
955
+ #else
956
+ UnityPrintPointlessAndBail();
957
+ #endif
958
+ }
959
+
960
+ if (isinf(in_delta))
961
+ {
962
+ return; /* Arrays will be force equal with infinite delta */
963
+ }
964
+
965
+ if (isnan(in_delta))
966
+ {
967
+ /* Delta must be correct number */
968
+ UnityPrintPointlessAndBail();
969
+ }
970
+
971
+ if (expected == actual)
972
+ {
973
+ return; /* Both are NULL or same pointer */
974
+ }
975
+
976
+ if (UnityIsOneArrayNull((UNITY_INTERNAL_PTR)expected, (UNITY_INTERNAL_PTR)actual, lineNumber, msg))
977
+ {
978
+ UNITY_FAIL_AND_BAIL;
979
+ }
980
+
981
+ /* fix delta sign if need */
982
+ if (in_delta < 0)
983
+ {
984
+ in_delta = -in_delta;
985
+ }
986
+
987
+ while (elements--)
988
+ {
989
+ current_element_delta = *ptr_expected * UNITY_FLOAT_PRECISION;
990
+
991
+ if (current_element_delta < 0)
992
+ {
993
+ /* fix delta sign for correct calculations */
994
+ current_element_delta = -current_element_delta;
995
+ }
996
+
997
+ if (!UnityFloatsWithin(in_delta + current_element_delta, *ptr_expected, *ptr_actual))
998
+ {
999
+ UnityTestResultsFailBegin(lineNumber);
1000
+ UnityPrint(UnityStrElement);
1001
+ UnityPrintNumberUnsigned(num_elements - elements - 1);
1002
+ UNITY_PRINT_EXPECTED_AND_ACTUAL_FLOAT((UNITY_DOUBLE)*ptr_expected, (UNITY_DOUBLE)*ptr_actual);
1003
+ UnityAddMsgIfSpecified(msg);
1004
+ UNITY_FAIL_AND_BAIL;
1005
+ }
1006
+ if (flags == UNITY_ARRAY_TO_ARRAY)
1007
+ {
1008
+ ptr_expected++;
1009
+ }
1010
+ ptr_actual++;
1011
+ }
1012
+ }
1013
+
1014
+ /*-----------------------------------------------*/
1015
+ void UnityAssertFloatsWithin(const UNITY_FLOAT delta,
1016
+ const UNITY_FLOAT expected,
1017
+ const UNITY_FLOAT actual,
1018
+ const char* msg,
1019
+ const UNITY_LINE_TYPE lineNumber)
1020
+ {
1021
+ RETURN_IF_FAIL_OR_IGNORE;
1022
+
1023
+
1024
+ if (!UnityFloatsWithin(delta, expected, actual))
1025
+ {
1026
+ UnityTestResultsFailBegin(lineNumber);
1027
+ UNITY_PRINT_EXPECTED_AND_ACTUAL_FLOAT((UNITY_DOUBLE)expected, (UNITY_DOUBLE)actual);
1028
+ UnityAddMsgIfSpecified(msg);
1029
+ UNITY_FAIL_AND_BAIL;
1030
+ }
1031
+ }
1032
+
1033
+ /*-----------------------------------------------*/
1034
+ void UnityAssertFloatsNotWithin(const UNITY_FLOAT delta,
1035
+ const UNITY_FLOAT expected,
1036
+ const UNITY_FLOAT actual,
1037
+ const char* msg,
1038
+ const UNITY_LINE_TYPE lineNumber)
1039
+ {
1040
+ RETURN_IF_FAIL_OR_IGNORE;
1041
+
1042
+ if (UnityFloatsWithin(delta, expected, actual))
1043
+ {
1044
+ UnityTestResultsFailBegin(lineNumber);
1045
+ UnityPrint(UnityStrExpected);
1046
+ UnityPrintFloat((UNITY_DOUBLE)expected);
1047
+ UnityPrint(UnityStrNotEqual);
1048
+ UnityPrintFloat((UNITY_DOUBLE)actual);
1049
+ UnityAddMsgIfSpecified(msg);
1050
+ UNITY_FAIL_AND_BAIL;
1051
+ }
1052
+ }
1053
+
1054
+ /*-----------------------------------------------*/
1055
+ void UnityAssertGreaterOrLessFloat(const UNITY_FLOAT threshold,
1056
+ const UNITY_FLOAT actual,
1057
+ const UNITY_COMPARISON_T compare,
1058
+ const char* msg,
1059
+ const UNITY_LINE_TYPE lineNumber)
1060
+ {
1061
+ int failed;
1062
+
1063
+ RETURN_IF_FAIL_OR_IGNORE;
1064
+
1065
+ failed = 0;
1066
+
1067
+ /* Checking for "not success" rather than failure to get the right result for NaN */
1068
+ if (!(actual < threshold) && (compare & UNITY_SMALLER_THAN)) { failed = 1; }
1069
+ if (!(actual > threshold) && (compare & UNITY_GREATER_THAN)) { failed = 1; }
1070
+
1071
+ if ((compare & UNITY_EQUAL_TO) && UnityFloatsWithin(threshold * UNITY_FLOAT_PRECISION, threshold, actual)) { failed = 0; }
1072
+
1073
+ if (failed)
1074
+ {
1075
+ UnityTestResultsFailBegin(lineNumber);
1076
+ UnityPrint(UnityStrExpected);
1077
+ UnityPrintFloat(actual);
1078
+ if (compare & UNITY_GREATER_THAN) { UnityPrint(UnityStrGt); }
1079
+ if (compare & UNITY_SMALLER_THAN) { UnityPrint(UnityStrLt); }
1080
+ if (compare & UNITY_EQUAL_TO) { UnityPrint(UnityStrOrEqual); }
1081
+ UnityPrintFloat(threshold);
1082
+ UnityAddMsgIfSpecified(msg);
1083
+ UNITY_FAIL_AND_BAIL;
1084
+ }
1085
+ }
1086
+
1087
+ /*-----------------------------------------------*/
1088
+ void UnityAssertFloatSpecial(const UNITY_FLOAT actual,
1089
+ const char* msg,
1090
+ const UNITY_LINE_TYPE lineNumber,
1091
+ const UNITY_FLOAT_TRAIT_T style)
1092
+ {
1093
+ const char* trait_names[] = {UnityStrInf, UnityStrNegInf, UnityStrNaN, UnityStrDet};
1094
+ UNITY_INT should_be_trait = ((UNITY_INT)style & 1);
1095
+ UNITY_INT is_trait = !should_be_trait;
1096
+ UNITY_INT trait_index = (UNITY_INT)(style >> 1);
1097
+
1098
+ RETURN_IF_FAIL_OR_IGNORE;
1099
+
1100
+ switch (style)
1101
+ {
1102
+ case UNITY_FLOAT_IS_INF:
1103
+ case UNITY_FLOAT_IS_NOT_INF:
1104
+ is_trait = isinf(actual) && (actual > 0);
1105
+ break;
1106
+ case UNITY_FLOAT_IS_NEG_INF:
1107
+ case UNITY_FLOAT_IS_NOT_NEG_INF:
1108
+ is_trait = isinf(actual) && (actual < 0);
1109
+ break;
1110
+
1111
+ case UNITY_FLOAT_IS_NAN:
1112
+ case UNITY_FLOAT_IS_NOT_NAN:
1113
+ is_trait = isnan(actual) ? 1 : 0;
1114
+ break;
1115
+
1116
+ case UNITY_FLOAT_IS_DET: /* A determinate number is non infinite and not NaN. */
1117
+ case UNITY_FLOAT_IS_NOT_DET:
1118
+ is_trait = !isinf(actual) && !isnan(actual);
1119
+ break;
1120
+
1121
+ case UNITY_FLOAT_INVALID_TRAIT: /* Supress warning */
1122
+ default: /* including UNITY_FLOAT_INVALID_TRAIT */
1123
+ trait_index = 0;
1124
+ trait_names[0] = UnityStrInvalidFloatTrait;
1125
+ break;
1126
+ }
1127
+
1128
+ if (is_trait != should_be_trait)
1129
+ {
1130
+ UnityTestResultsFailBegin(lineNumber);
1131
+ UnityPrint(UnityStrExpected);
1132
+ if (!should_be_trait)
1133
+ {
1134
+ UnityPrint(UnityStrNot);
1135
+ }
1136
+ UnityPrint(trait_names[trait_index]);
1137
+ UnityPrint(UnityStrWas);
1138
+ #ifndef UNITY_EXCLUDE_FLOAT_PRINT
1139
+ UnityPrintFloat((UNITY_DOUBLE)actual);
1140
+ #else
1141
+ if (should_be_trait)
1142
+ {
1143
+ UnityPrint(UnityStrNot);
1144
+ }
1145
+ UnityPrint(trait_names[trait_index]);
1146
+ #endif
1147
+ UnityAddMsgIfSpecified(msg);
1148
+ UNITY_FAIL_AND_BAIL;
1149
+ }
1150
+ }
1151
+
1152
+ #endif /* not UNITY_EXCLUDE_FLOAT */
1153
+
1154
+ /*-----------------------------------------------*/
1155
+ #ifndef UNITY_EXCLUDE_DOUBLE
1156
+ static int UnityDoublesWithin(UNITY_DOUBLE delta, UNITY_DOUBLE expected, UNITY_DOUBLE actual)
1157
+ {
1158
+ UNITY_DOUBLE diff;
1159
+ UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff);
1160
+ }
1161
+
1162
+ /*-----------------------------------------------*/
1163
+ void UnityAssertWithinDoubleArray(const UNITY_DOUBLE delta,
1164
+ UNITY_PTR_ATTRIBUTE const UNITY_DOUBLE* expected,
1165
+ UNITY_PTR_ATTRIBUTE const UNITY_DOUBLE* actual,
1166
+ const UNITY_UINT32 num_elements,
1167
+ const char* msg,
1168
+ const UNITY_LINE_TYPE lineNumber,
1169
+ const UNITY_FLAGS_T flags)
1170
+ {
1171
+ UNITY_UINT32 elements = num_elements;
1172
+ UNITY_PTR_ATTRIBUTE const UNITY_DOUBLE* ptr_expected = expected;
1173
+ UNITY_PTR_ATTRIBUTE const UNITY_DOUBLE* ptr_actual = actual;
1174
+ UNITY_DOUBLE in_delta = delta;
1175
+ UNITY_DOUBLE current_element_delta = delta;
1176
+
1177
+ RETURN_IF_FAIL_OR_IGNORE;
1178
+
1179
+ if (elements == 0)
1180
+ {
1181
+ #ifdef UNITY_COMPARE_PTRS_ON_ZERO_ARRAY
1182
+ UNITY_TEST_ASSERT_EQUAL_PTR(expected, actual, lineNumber, msg);
1183
+ #else
1184
+ UnityPrintPointlessAndBail();
1185
+ #endif
1186
+ }
1187
+
1188
+ if (isinf(in_delta))
1189
+ {
1190
+ return; /* Arrays will be force equal with infinite delta */
1191
+ }
1192
+
1193
+ if (isnan(in_delta))
1194
+ {
1195
+ /* Delta must be correct number */
1196
+ UnityPrintPointlessAndBail();
1197
+ }
1198
+
1199
+ if (expected == actual)
1200
+ {
1201
+ return; /* Both are NULL or same pointer */
1202
+ }
1203
+
1204
+ if (UnityIsOneArrayNull((UNITY_INTERNAL_PTR)expected, (UNITY_INTERNAL_PTR)actual, lineNumber, msg))
1205
+ {
1206
+ UNITY_FAIL_AND_BAIL;
1207
+ }
1208
+
1209
+ /* fix delta sign if need */
1210
+ if (in_delta < 0)
1211
+ {
1212
+ in_delta = -in_delta;
1213
+ }
1214
+
1215
+ while (elements--)
1216
+ {
1217
+ current_element_delta = *ptr_expected * UNITY_DOUBLE_PRECISION;
1218
+
1219
+ if (current_element_delta < 0)
1220
+ {
1221
+ /* fix delta sign for correct calculations */
1222
+ current_element_delta = -current_element_delta;
1223
+ }
1224
+
1225
+ if (!UnityDoublesWithin(in_delta + current_element_delta, *ptr_expected, *ptr_actual))
1226
+ {
1227
+ UnityTestResultsFailBegin(lineNumber);
1228
+ UnityPrint(UnityStrElement);
1229
+ UnityPrintNumberUnsigned(num_elements - elements - 1);
1230
+ UNITY_PRINT_EXPECTED_AND_ACTUAL_FLOAT(*ptr_expected, *ptr_actual);
1231
+ UnityAddMsgIfSpecified(msg);
1232
+ UNITY_FAIL_AND_BAIL;
1233
+ }
1234
+ if (flags == UNITY_ARRAY_TO_ARRAY)
1235
+ {
1236
+ ptr_expected++;
1237
+ }
1238
+ ptr_actual++;
1239
+ }
1240
+ }
1241
+
1242
+ /*-----------------------------------------------*/
1243
+ void UnityAssertDoublesWithin(const UNITY_DOUBLE delta,
1244
+ const UNITY_DOUBLE expected,
1245
+ const UNITY_DOUBLE actual,
1246
+ const char* msg,
1247
+ const UNITY_LINE_TYPE lineNumber)
1248
+ {
1249
+ RETURN_IF_FAIL_OR_IGNORE;
1250
+
1251
+ if (!UnityDoublesWithin(delta, expected, actual))
1252
+ {
1253
+ UnityTestResultsFailBegin(lineNumber);
1254
+ UNITY_PRINT_EXPECTED_AND_ACTUAL_FLOAT(expected, actual);
1255
+ UnityAddMsgIfSpecified(msg);
1256
+ UNITY_FAIL_AND_BAIL;
1257
+ }
1258
+ }
1259
+
1260
+ /*-----------------------------------------------*/
1261
+ void UnityAssertDoublesNotWithin(const UNITY_DOUBLE delta,
1262
+ const UNITY_DOUBLE expected,
1263
+ const UNITY_DOUBLE actual,
1264
+ const char* msg,
1265
+ const UNITY_LINE_TYPE lineNumber)
1266
+ {
1267
+ RETURN_IF_FAIL_OR_IGNORE;
1268
+
1269
+ if (UnityDoublesWithin(delta, expected, actual))
1270
+ {
1271
+ UnityTestResultsFailBegin(lineNumber);
1272
+ UnityPrint(UnityStrExpected);
1273
+ UnityPrintFloat((UNITY_DOUBLE)expected);
1274
+ UnityPrint(UnityStrNotEqual);
1275
+ UnityPrintFloat((UNITY_DOUBLE)actual);
1276
+ UnityAddMsgIfSpecified(msg);
1277
+ UNITY_FAIL_AND_BAIL;
1278
+ }
1279
+ }
1280
+
1281
+ /*-----------------------------------------------*/
1282
+ void UnityAssertGreaterOrLessDouble(const UNITY_DOUBLE threshold,
1283
+ const UNITY_DOUBLE actual,
1284
+ const UNITY_COMPARISON_T compare,
1285
+ const char* msg,
1286
+ const UNITY_LINE_TYPE lineNumber)
1287
+ {
1288
+ int failed;
1289
+
1290
+ RETURN_IF_FAIL_OR_IGNORE;
1291
+
1292
+ failed = 0;
1293
+
1294
+ /* Checking for "not success" rather than failure to get the right result for NaN */
1295
+ if (!(actual < threshold) && (compare & UNITY_SMALLER_THAN)) { failed = 1; }
1296
+ if (!(actual > threshold) && (compare & UNITY_GREATER_THAN)) { failed = 1; }
1297
+
1298
+ if ((compare & UNITY_EQUAL_TO) && UnityDoublesWithin(threshold * UNITY_DOUBLE_PRECISION, threshold, actual)) { failed = 0; }
1299
+
1300
+ if (failed)
1301
+ {
1302
+ UnityTestResultsFailBegin(lineNumber);
1303
+ UnityPrint(UnityStrExpected);
1304
+ UnityPrintFloat(actual);
1305
+ if (compare & UNITY_GREATER_THAN) { UnityPrint(UnityStrGt); }
1306
+ if (compare & UNITY_SMALLER_THAN) { UnityPrint(UnityStrLt); }
1307
+ if (compare & UNITY_EQUAL_TO) { UnityPrint(UnityStrOrEqual); }
1308
+ UnityPrintFloat(threshold);
1309
+ UnityAddMsgIfSpecified(msg);
1310
+ UNITY_FAIL_AND_BAIL;
1311
+ }
1312
+ }
1313
+
1314
+ /*-----------------------------------------------*/
1315
+ void UnityAssertDoubleSpecial(const UNITY_DOUBLE actual,
1316
+ const char* msg,
1317
+ const UNITY_LINE_TYPE lineNumber,
1318
+ const UNITY_FLOAT_TRAIT_T style)
1319
+ {
1320
+ const char* trait_names[] = {UnityStrInf, UnityStrNegInf, UnityStrNaN, UnityStrDet};
1321
+ UNITY_INT should_be_trait = ((UNITY_INT)style & 1);
1322
+ UNITY_INT is_trait = !should_be_trait;
1323
+ UNITY_INT trait_index = (UNITY_INT)(style >> 1);
1324
+
1325
+ RETURN_IF_FAIL_OR_IGNORE;
1326
+
1327
+ switch (style)
1328
+ {
1329
+ case UNITY_FLOAT_IS_INF:
1330
+ case UNITY_FLOAT_IS_NOT_INF:
1331
+ is_trait = isinf(actual) && (actual > 0);
1332
+ break;
1333
+ case UNITY_FLOAT_IS_NEG_INF:
1334
+ case UNITY_FLOAT_IS_NOT_NEG_INF:
1335
+ is_trait = isinf(actual) && (actual < 0);
1336
+ break;
1337
+
1338
+ case UNITY_FLOAT_IS_NAN:
1339
+ case UNITY_FLOAT_IS_NOT_NAN:
1340
+ is_trait = isnan(actual) ? 1 : 0;
1341
+ break;
1342
+
1343
+ case UNITY_FLOAT_IS_DET: /* A determinate number is non infinite and not NaN. */
1344
+ case UNITY_FLOAT_IS_NOT_DET:
1345
+ is_trait = !isinf(actual) && !isnan(actual);
1346
+ break;
1347
+
1348
+ case UNITY_FLOAT_INVALID_TRAIT: /* Supress warning */
1349
+ default: /* including UNITY_FLOAT_INVALID_TRAIT */
1350
+ trait_index = 0;
1351
+ trait_names[0] = UnityStrInvalidFloatTrait;
1352
+ break;
1353
+ }
1354
+
1355
+ if (is_trait != should_be_trait)
1356
+ {
1357
+ UnityTestResultsFailBegin(lineNumber);
1358
+ UnityPrint(UnityStrExpected);
1359
+ if (!should_be_trait)
1360
+ {
1361
+ UnityPrint(UnityStrNot);
1362
+ }
1363
+ UnityPrint(trait_names[trait_index]);
1364
+ UnityPrint(UnityStrWas);
1365
+ #ifndef UNITY_EXCLUDE_FLOAT_PRINT
1366
+ UnityPrintFloat(actual);
1367
+ #else
1368
+ if (should_be_trait)
1369
+ {
1370
+ UnityPrint(UnityStrNot);
1371
+ }
1372
+ UnityPrint(trait_names[trait_index]);
1373
+ #endif
1374
+ UnityAddMsgIfSpecified(msg);
1375
+ UNITY_FAIL_AND_BAIL;
1376
+ }
1377
+ }
1378
+
1379
+ #endif /* not UNITY_EXCLUDE_DOUBLE */
1380
+
1381
+ /*-----------------------------------------------*/
1382
+ void UnityAssertNumbersWithin(const UNITY_UINT delta,
1383
+ const UNITY_INT expected,
1384
+ const UNITY_INT actual,
1385
+ const char* msg,
1386
+ const UNITY_LINE_TYPE lineNumber,
1387
+ const UNITY_DISPLAY_STYLE_T style)
1388
+ {
1389
+ RETURN_IF_FAIL_OR_IGNORE;
1390
+
1391
+ if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
1392
+ {
1393
+ if (actual > expected)
1394
+ {
1395
+ Unity.CurrentTestFailed = (((UNITY_UINT)actual - (UNITY_UINT)expected) > delta);
1396
+ }
1397
+ else
1398
+ {
1399
+ Unity.CurrentTestFailed = (((UNITY_UINT)expected - (UNITY_UINT)actual) > delta);
1400
+ }
1401
+ }
1402
+ else
1403
+ {
1404
+ if ((UNITY_UINT)actual > (UNITY_UINT)expected)
1405
+ {
1406
+ Unity.CurrentTestFailed = (((UNITY_UINT)actual - (UNITY_UINT)expected) > delta);
1407
+ }
1408
+ else
1409
+ {
1410
+ Unity.CurrentTestFailed = (((UNITY_UINT)expected - (UNITY_UINT)actual) > delta);
1411
+ }
1412
+ }
1413
+
1414
+ if (Unity.CurrentTestFailed)
1415
+ {
1416
+ UnityTestResultsFailBegin(lineNumber);
1417
+ UnityPrint(UnityStrDelta);
1418
+ UnityPrintNumberByStyle((UNITY_INT)delta, style);
1419
+ UnityPrint(UnityStrExpected);
1420
+ UnityPrintNumberByStyle(expected, style);
1421
+ UnityPrint(UnityStrWas);
1422
+ UnityPrintNumberByStyle(actual, style);
1423
+ UnityAddMsgIfSpecified(msg);
1424
+ UNITY_FAIL_AND_BAIL;
1425
+ }
1426
+ }
1427
+
1428
+ /*-----------------------------------------------*/
1429
+ void UnityAssertNumbersArrayWithin(const UNITY_UINT delta,
1430
+ UNITY_INTERNAL_PTR expected,
1431
+ UNITY_INTERNAL_PTR actual,
1432
+ const UNITY_UINT32 num_elements,
1433
+ const char* msg,
1434
+ const UNITY_LINE_TYPE lineNumber,
1435
+ const UNITY_DISPLAY_STYLE_T style,
1436
+ const UNITY_FLAGS_T flags)
1437
+ {
1438
+ UNITY_UINT32 elements = num_elements;
1439
+ unsigned int length = style & 0xF;
1440
+ unsigned int increment = 0;
1441
+
1442
+ RETURN_IF_FAIL_OR_IGNORE;
1443
+
1444
+ if (num_elements == 0)
1445
+ {
1446
+ #ifdef UNITY_COMPARE_PTRS_ON_ZERO_ARRAY
1447
+ UNITY_TEST_ASSERT_EQUAL_PTR(expected, actual, lineNumber, msg);
1448
+ #else
1449
+ UnityPrintPointlessAndBail();
1450
+ #endif
1451
+ }
1452
+
1453
+ if (expected == actual)
1454
+ {
1455
+ return; /* Both are NULL or same pointer */
1456
+ }
1457
+
1458
+ if (UnityIsOneArrayNull(expected, actual, lineNumber, msg))
1459
+ {
1460
+ UNITY_FAIL_AND_BAIL;
1461
+ }
1462
+
1463
+ while ((elements > 0) && (elements--))
1464
+ {
1465
+ UNITY_INT expect_val;
1466
+ UNITY_INT actual_val;
1467
+
1468
+ switch (length)
1469
+ {
1470
+ case 1:
1471
+ /* fixing problems with signed overflow on unsigned numbers */
1472
+ if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
1473
+ {
1474
+ expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT8*)expected;
1475
+ actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT8*)actual;
1476
+ increment = sizeof(UNITY_INT8);
1477
+ }
1478
+ else
1479
+ {
1480
+ expect_val = (UNITY_INT)*(UNITY_PTR_ATTRIBUTE const UNITY_UINT8*)expected;
1481
+ actual_val = (UNITY_INT)*(UNITY_PTR_ATTRIBUTE const UNITY_UINT8*)actual;
1482
+ increment = sizeof(UNITY_UINT8);
1483
+ }
1484
+ break;
1485
+
1486
+ case 2:
1487
+ /* fixing problems with signed overflow on unsigned numbers */
1488
+ if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
1489
+ {
1490
+ expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)expected;
1491
+ actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)actual;
1492
+ increment = sizeof(UNITY_INT16);
1493
+ }
1494
+ else
1495
+ {
1496
+ expect_val = (UNITY_INT)*(UNITY_PTR_ATTRIBUTE const UNITY_UINT16*)expected;
1497
+ actual_val = (UNITY_INT)*(UNITY_PTR_ATTRIBUTE const UNITY_UINT16*)actual;
1498
+ increment = sizeof(UNITY_UINT16);
1499
+ }
1500
+ break;
1501
+
1502
+ #ifdef UNITY_SUPPORT_64
1503
+ case 8:
1504
+ /* fixing problems with signed overflow on unsigned numbers */
1505
+ if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
1506
+ {
1507
+ expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT64*)expected;
1508
+ actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT64*)actual;
1509
+ increment = sizeof(UNITY_INT64);
1510
+ }
1511
+ else
1512
+ {
1513
+ expect_val = (UNITY_INT)*(UNITY_PTR_ATTRIBUTE const UNITY_UINT64*)expected;
1514
+ actual_val = (UNITY_INT)*(UNITY_PTR_ATTRIBUTE const UNITY_UINT64*)actual;
1515
+ increment = sizeof(UNITY_UINT64);
1516
+ }
1517
+ break;
1518
+ #endif
1519
+
1520
+ default: /* default is length 4 bytes */
1521
+ case 4:
1522
+ /* fixing problems with signed overflow on unsigned numbers */
1523
+ if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
1524
+ {
1525
+ expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)expected;
1526
+ actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)actual;
1527
+ increment = sizeof(UNITY_INT32);
1528
+ }
1529
+ else
1530
+ {
1531
+ expect_val = (UNITY_INT)*(UNITY_PTR_ATTRIBUTE const UNITY_UINT32*)expected;
1532
+ actual_val = (UNITY_INT)*(UNITY_PTR_ATTRIBUTE const UNITY_UINT32*)actual;
1533
+ increment = sizeof(UNITY_UINT32);
1534
+ }
1535
+ length = 4;
1536
+ break;
1537
+ }
1538
+
1539
+ if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
1540
+ {
1541
+ if (actual_val > expect_val)
1542
+ {
1543
+ Unity.CurrentTestFailed = (((UNITY_UINT)actual_val - (UNITY_UINT)expect_val) > delta);
1544
+ }
1545
+ else
1546
+ {
1547
+ Unity.CurrentTestFailed = (((UNITY_UINT)expect_val - (UNITY_UINT)actual_val) > delta);
1548
+ }
1549
+ }
1550
+ else
1551
+ {
1552
+ if ((UNITY_UINT)actual_val > (UNITY_UINT)expect_val)
1553
+ {
1554
+ Unity.CurrentTestFailed = (((UNITY_UINT)actual_val - (UNITY_UINT)expect_val) > delta);
1555
+ }
1556
+ else
1557
+ {
1558
+ Unity.CurrentTestFailed = (((UNITY_UINT)expect_val - (UNITY_UINT)actual_val) > delta);
1559
+ }
1560
+ }
1561
+
1562
+ if (Unity.CurrentTestFailed)
1563
+ {
1564
+ if ((style & UNITY_DISPLAY_RANGE_UINT) && (length < (UNITY_INT_WIDTH / 8)))
1565
+ { /* For UINT, remove sign extension (padding 1's) from signed type casts above */
1566
+ UNITY_INT mask = 1;
1567
+ mask = (mask << 8 * length) - 1;
1568
+ expect_val &= mask;
1569
+ actual_val &= mask;
1570
+ }
1571
+ UnityTestResultsFailBegin(lineNumber);
1572
+ UnityPrint(UnityStrDelta);
1573
+ UnityPrintNumberByStyle((UNITY_INT)delta, style);
1574
+ UnityPrint(UnityStrElement);
1575
+ UnityPrintNumberUnsigned(num_elements - elements - 1);
1576
+ UnityPrint(UnityStrExpected);
1577
+ UnityPrintNumberByStyle(expect_val, style);
1578
+ UnityPrint(UnityStrWas);
1579
+ UnityPrintNumberByStyle(actual_val, style);
1580
+ UnityAddMsgIfSpecified(msg);
1581
+ UNITY_FAIL_AND_BAIL;
1582
+ }
1583
+ /* Walk through array by incrementing the pointers */
1584
+ if (flags == UNITY_ARRAY_TO_ARRAY)
1585
+ {
1586
+ expected = (UNITY_INTERNAL_PTR)((const char*)expected + increment);
1587
+ }
1588
+ actual = (UNITY_INTERNAL_PTR)((const char*)actual + increment);
1589
+ }
1590
+ }
1591
+
1592
+ /*-----------------------------------------------*/
1593
+ void UnityAssertEqualString(const char* expected,
1594
+ const char* actual,
1595
+ const char* msg,
1596
+ const UNITY_LINE_TYPE lineNumber)
1597
+ {
1598
+ UNITY_UINT32 i;
1599
+
1600
+ RETURN_IF_FAIL_OR_IGNORE;
1601
+
1602
+ /* if both pointers not null compare the strings */
1603
+ if (expected && actual)
1604
+ {
1605
+ for (i = 0; expected[i] || actual[i]; i++)
1606
+ {
1607
+ if (expected[i] != actual[i])
1608
+ {
1609
+ Unity.CurrentTestFailed = 1;
1610
+ break;
1611
+ }
1612
+ }
1613
+ }
1614
+ else
1615
+ { /* handle case of one pointers being null (if both null, test should pass) */
1616
+ if (expected != actual)
1617
+ {
1618
+ Unity.CurrentTestFailed = 1;
1619
+ }
1620
+ }
1621
+
1622
+ if (Unity.CurrentTestFailed)
1623
+ {
1624
+ UnityTestResultsFailBegin(lineNumber);
1625
+ UnityPrintExpectedAndActualStrings(expected, actual);
1626
+ UnityAddMsgIfSpecified(msg);
1627
+ UNITY_FAIL_AND_BAIL;
1628
+ }
1629
+ }
1630
+
1631
+ /*-----------------------------------------------*/
1632
+ void UnityAssertEqualStringLen(const char* expected,
1633
+ const char* actual,
1634
+ const UNITY_UINT32 length,
1635
+ const char* msg,
1636
+ const UNITY_LINE_TYPE lineNumber)
1637
+ {
1638
+ UNITY_UINT32 i;
1639
+
1640
+ RETURN_IF_FAIL_OR_IGNORE;
1641
+
1642
+ /* if both pointers not null compare the strings */
1643
+ if (expected && actual)
1644
+ {
1645
+ for (i = 0; (i < length) && (expected[i] || actual[i]); i++)
1646
+ {
1647
+ if (expected[i] != actual[i])
1648
+ {
1649
+ Unity.CurrentTestFailed = 1;
1650
+ break;
1651
+ }
1652
+ }
1653
+ }
1654
+ else
1655
+ { /* handle case of one pointers being null (if both null, test should pass) */
1656
+ if (expected != actual)
1657
+ {
1658
+ Unity.CurrentTestFailed = 1;
1659
+ }
1660
+ }
1661
+
1662
+ if (Unity.CurrentTestFailed)
1663
+ {
1664
+ UnityTestResultsFailBegin(lineNumber);
1665
+ UnityPrintExpectedAndActualStringsLen(expected, actual, length);
1666
+ UnityAddMsgIfSpecified(msg);
1667
+ UNITY_FAIL_AND_BAIL;
1668
+ }
1669
+ }
1670
+
1671
+ /*-----------------------------------------------*/
1672
+ void UnityAssertEqualStringArray(UNITY_INTERNAL_PTR expected,
1673
+ const char** actual,
1674
+ const UNITY_UINT32 num_elements,
1675
+ const char* msg,
1676
+ const UNITY_LINE_TYPE lineNumber,
1677
+ const UNITY_FLAGS_T flags)
1678
+ {
1679
+ UNITY_UINT32 i = 0;
1680
+ UNITY_UINT32 j = 0;
1681
+ const char* expd = NULL;
1682
+ const char* act = NULL;
1683
+
1684
+ RETURN_IF_FAIL_OR_IGNORE;
1685
+
1686
+ /* if no elements, it's an error */
1687
+ if (num_elements == 0)
1688
+ {
1689
+ #ifdef UNITY_COMPARE_PTRS_ON_ZERO_ARRAY
1690
+ UNITY_TEST_ASSERT_EQUAL_PTR(expected, actual, lineNumber, msg);
1691
+ #else
1692
+ UnityPrintPointlessAndBail();
1693
+ #endif
1694
+ }
1695
+
1696
+ if ((const void*)expected == (const void*)actual)
1697
+ {
1698
+ return; /* Both are NULL or same pointer */
1699
+ }
1700
+
1701
+ if (UnityIsOneArrayNull((UNITY_INTERNAL_PTR)expected, (UNITY_INTERNAL_PTR)actual, lineNumber, msg))
1702
+ {
1703
+ UNITY_FAIL_AND_BAIL;
1704
+ }
1705
+
1706
+ if (flags != UNITY_ARRAY_TO_ARRAY)
1707
+ {
1708
+ expd = (const char*)expected;
1709
+ }
1710
+
1711
+ do
1712
+ {
1713
+ act = actual[j];
1714
+ if (flags == UNITY_ARRAY_TO_ARRAY)
1715
+ {
1716
+ expd = ((const char* const*)expected)[j];
1717
+ }
1718
+
1719
+ /* if both pointers not null compare the strings */
1720
+ if (expd && act)
1721
+ {
1722
+ for (i = 0; expd[i] || act[i]; i++)
1723
+ {
1724
+ if (expd[i] != act[i])
1725
+ {
1726
+ Unity.CurrentTestFailed = 1;
1727
+ break;
1728
+ }
1729
+ }
1730
+ }
1731
+ else
1732
+ { /* handle case of one pointers being null (if both null, test should pass) */
1733
+ if (expd != act)
1734
+ {
1735
+ Unity.CurrentTestFailed = 1;
1736
+ }
1737
+ }
1738
+
1739
+ if (Unity.CurrentTestFailed)
1740
+ {
1741
+ UnityTestResultsFailBegin(lineNumber);
1742
+ if (num_elements > 1)
1743
+ {
1744
+ UnityPrint(UnityStrElement);
1745
+ UnityPrintNumberUnsigned(j);
1746
+ }
1747
+ UnityPrintExpectedAndActualStrings(expd, act);
1748
+ UnityAddMsgIfSpecified(msg);
1749
+ UNITY_FAIL_AND_BAIL;
1750
+ }
1751
+ } while (++j < num_elements);
1752
+ }
1753
+
1754
+ /*-----------------------------------------------*/
1755
+ void UnityAssertEqualMemory(UNITY_INTERNAL_PTR expected,
1756
+ UNITY_INTERNAL_PTR actual,
1757
+ const UNITY_UINT32 length,
1758
+ const UNITY_UINT32 num_elements,
1759
+ const char* msg,
1760
+ const UNITY_LINE_TYPE lineNumber,
1761
+ const UNITY_FLAGS_T flags)
1762
+ {
1763
+ UNITY_PTR_ATTRIBUTE const unsigned char* ptr_exp = (UNITY_PTR_ATTRIBUTE const unsigned char*)expected;
1764
+ UNITY_PTR_ATTRIBUTE const unsigned char* ptr_act = (UNITY_PTR_ATTRIBUTE const unsigned char*)actual;
1765
+ UNITY_UINT32 elements = num_elements;
1766
+ UNITY_UINT32 bytes;
1767
+
1768
+ RETURN_IF_FAIL_OR_IGNORE;
1769
+
1770
+ if (elements == 0)
1771
+ {
1772
+ #ifdef UNITY_COMPARE_PTRS_ON_ZERO_ARRAY
1773
+ UNITY_TEST_ASSERT_EQUAL_PTR(expected, actual, lineNumber, msg);
1774
+ #else
1775
+ UnityPrintPointlessAndBail();
1776
+ #endif
1777
+ }
1778
+ if (length == 0)
1779
+ {
1780
+ UnityPrintPointlessAndBail();
1781
+ }
1782
+
1783
+ if (expected == actual)
1784
+ {
1785
+ return; /* Both are NULL or same pointer */
1786
+ }
1787
+
1788
+ if (UnityIsOneArrayNull(expected, actual, lineNumber, msg))
1789
+ {
1790
+ UNITY_FAIL_AND_BAIL;
1791
+ }
1792
+
1793
+ while (elements--)
1794
+ {
1795
+ bytes = length;
1796
+ while (bytes--)
1797
+ {
1798
+ if (*ptr_exp != *ptr_act)
1799
+ {
1800
+ UnityTestResultsFailBegin(lineNumber);
1801
+ UnityPrint(UnityStrMemory);
1802
+ if (num_elements > 1)
1803
+ {
1804
+ UnityPrint(UnityStrElement);
1805
+ UnityPrintNumberUnsigned(num_elements - elements - 1);
1806
+ }
1807
+ UnityPrint(UnityStrByte);
1808
+ UnityPrintNumberUnsigned(length - bytes - 1);
1809
+ UnityPrint(UnityStrExpected);
1810
+ UnityPrintNumberByStyle(*ptr_exp, UNITY_DISPLAY_STYLE_HEX8);
1811
+ UnityPrint(UnityStrWas);
1812
+ UnityPrintNumberByStyle(*ptr_act, UNITY_DISPLAY_STYLE_HEX8);
1813
+ UnityAddMsgIfSpecified(msg);
1814
+ UNITY_FAIL_AND_BAIL;
1815
+ }
1816
+ ptr_exp++;
1817
+ ptr_act++;
1818
+ }
1819
+ if (flags == UNITY_ARRAY_TO_VAL)
1820
+ {
1821
+ ptr_exp = (UNITY_PTR_ATTRIBUTE const unsigned char*)expected;
1822
+ }
1823
+ }
1824
+ }
1825
+
1826
+ /*-----------------------------------------------*/
1827
+
1828
+ static union
1829
+ {
1830
+ UNITY_INT8 i8;
1831
+ UNITY_INT16 i16;
1832
+ UNITY_INT32 i32;
1833
+ #ifdef UNITY_SUPPORT_64
1834
+ UNITY_INT64 i64;
1835
+ #endif
1836
+ #ifndef UNITY_EXCLUDE_FLOAT
1837
+ float f;
1838
+ #endif
1839
+ #ifndef UNITY_EXCLUDE_DOUBLE
1840
+ double d;
1841
+ #endif
1842
+ } UnityQuickCompare;
1843
+
1844
+ UNITY_INTERNAL_PTR UnityNumToPtr(const UNITY_INT num, const UNITY_UINT8 size)
1845
+ {
1846
+ switch(size)
1847
+ {
1848
+ case 1:
1849
+ UnityQuickCompare.i8 = (UNITY_INT8)num;
1850
+ return (UNITY_INTERNAL_PTR)(&UnityQuickCompare.i8);
1851
+
1852
+ case 2:
1853
+ UnityQuickCompare.i16 = (UNITY_INT16)num;
1854
+ return (UNITY_INTERNAL_PTR)(&UnityQuickCompare.i16);
1855
+
1856
+ #ifdef UNITY_SUPPORT_64
1857
+ case 8:
1858
+ UnityQuickCompare.i64 = (UNITY_INT64)num;
1859
+ return (UNITY_INTERNAL_PTR)(&UnityQuickCompare.i64);
1860
+ #endif
1861
+
1862
+ default: /* 4 bytes */
1863
+ UnityQuickCompare.i32 = (UNITY_INT32)num;
1864
+ return (UNITY_INTERNAL_PTR)(&UnityQuickCompare.i32);
1865
+ }
1866
+ }
1867
+
1868
+ #ifndef UNITY_EXCLUDE_FLOAT
1869
+ /*-----------------------------------------------*/
1870
+ UNITY_INTERNAL_PTR UnityFloatToPtr(const float num)
1871
+ {
1872
+ UnityQuickCompare.f = num;
1873
+ return (UNITY_INTERNAL_PTR)(&UnityQuickCompare.f);
1874
+ }
1875
+ #endif
1876
+
1877
+ #ifndef UNITY_EXCLUDE_DOUBLE
1878
+ /*-----------------------------------------------*/
1879
+ UNITY_INTERNAL_PTR UnityDoubleToPtr(const double num)
1880
+ {
1881
+ UnityQuickCompare.d = num;
1882
+ return (UNITY_INTERNAL_PTR)(&UnityQuickCompare.d);
1883
+ }
1884
+ #endif
1885
+
1886
+ #ifdef UNITY_INCLUDE_PRINT_FORMATTED
1887
+
1888
+ /*-----------------------------------------------
1889
+ * printf length modifier helpers
1890
+ *-----------------------------------------------*/
1891
+
1892
+ enum UnityLengthModifier {
1893
+ UNITY_LENGTH_MODIFIER_NONE,
1894
+ UNITY_LENGTH_MODIFIER_LONG_LONG,
1895
+ UNITY_LENGTH_MODIFIER_LONG,
1896
+ };
1897
+
1898
+ #define UNITY_EXTRACT_ARG(NUMBER_T, NUMBER, LENGTH_MOD, VA, ARG_T) \
1899
+ do { \
1900
+ switch (LENGTH_MOD) \
1901
+ { \
1902
+ case UNITY_LENGTH_MODIFIER_LONG_LONG: \
1903
+ { \
1904
+ NUMBER = (NUMBER_T)va_arg(VA, long long ARG_T); \
1905
+ break; \
1906
+ } \
1907
+ case UNITY_LENGTH_MODIFIER_LONG: \
1908
+ { \
1909
+ NUMBER = (NUMBER_T)va_arg(VA, long ARG_T); \
1910
+ break; \
1911
+ } \
1912
+ case UNITY_LENGTH_MODIFIER_NONE: \
1913
+ default: \
1914
+ { \
1915
+ NUMBER = (NUMBER_T)va_arg(VA, ARG_T); \
1916
+ break; \
1917
+ } \
1918
+ } \
1919
+ } while (0)
1920
+
1921
+ static enum UnityLengthModifier UnityLengthModifierGet(const char *pch, int *length)
1922
+ {
1923
+ enum UnityLengthModifier length_mod;
1924
+ switch (pch[0])
1925
+ {
1926
+ case 'l':
1927
+ {
1928
+ if (pch[1] == 'l')
1929
+ {
1930
+ *length = 2;
1931
+ length_mod = UNITY_LENGTH_MODIFIER_LONG_LONG;
1932
+ }
1933
+ else
1934
+ {
1935
+ *length = 1;
1936
+ length_mod = UNITY_LENGTH_MODIFIER_LONG;
1937
+ }
1938
+ break;
1939
+ }
1940
+ case 'h':
1941
+ {
1942
+ // short and char are converted to int
1943
+ length_mod = UNITY_LENGTH_MODIFIER_NONE;
1944
+ if (pch[1] == 'h')
1945
+ {
1946
+ *length = 2;
1947
+ }
1948
+ else
1949
+ {
1950
+ *length = 1;
1951
+ }
1952
+ break;
1953
+ }
1954
+ case 'j':
1955
+ case 'z':
1956
+ case 't':
1957
+ case 'L':
1958
+ {
1959
+ // Not supported, but should gobble up the length specifier anyway
1960
+ length_mod = UNITY_LENGTH_MODIFIER_NONE;
1961
+ *length = 1;
1962
+ break;
1963
+ }
1964
+ default:
1965
+ {
1966
+ length_mod = UNITY_LENGTH_MODIFIER_NONE;
1967
+ *length = 0;
1968
+ }
1969
+ }
1970
+ return length_mod;
1971
+ }
1972
+
1973
+ /*-----------------------------------------------
1974
+ * printf helper function
1975
+ *-----------------------------------------------*/
1976
+ static void UnityPrintFVA(const char* format, va_list va)
1977
+ {
1978
+ const char* pch = format;
1979
+ if (pch != NULL)
1980
+ {
1981
+ while (*pch)
1982
+ {
1983
+ /* format identification character */
1984
+ if (*pch == '%')
1985
+ {
1986
+ pch++;
1987
+
1988
+ if (pch != NULL)
1989
+ {
1990
+ int length_mod_size;
1991
+ enum UnityLengthModifier length_mod = UnityLengthModifierGet(pch, &length_mod_size);
1992
+ pch += length_mod_size;
1993
+
1994
+ switch (*pch)
1995
+ {
1996
+ case 'd':
1997
+ case 'i':
1998
+ {
1999
+ UNITY_INT number;
2000
+ UNITY_EXTRACT_ARG(UNITY_INT, number, length_mod, va, int);
2001
+ UnityPrintNumber((UNITY_INT)number);
2002
+ break;
2003
+ }
2004
+ #ifndef UNITY_EXCLUDE_FLOAT_PRINT
2005
+ case 'f':
2006
+ case 'g':
2007
+ {
2008
+ const double number = va_arg(va, double);
2009
+ UnityPrintFloat((UNITY_DOUBLE)number);
2010
+ break;
2011
+ }
2012
+ #endif
2013
+ case 'u':
2014
+ {
2015
+ UNITY_UINT number;
2016
+ UNITY_EXTRACT_ARG(UNITY_UINT, number, length_mod, va, unsigned int);
2017
+ UnityPrintNumberUnsigned(number);
2018
+ break;
2019
+ }
2020
+ case 'b':
2021
+ {
2022
+ UNITY_UINT number;
2023
+ UNITY_EXTRACT_ARG(UNITY_UINT, number, length_mod, va, unsigned int);
2024
+ const UNITY_UINT mask = (UNITY_UINT)0 - (UNITY_UINT)1;
2025
+ UNITY_OUTPUT_CHAR('0');
2026
+ UNITY_OUTPUT_CHAR('b');
2027
+ UnityPrintMask(mask, number);
2028
+ break;
2029
+ }
2030
+ case 'x':
2031
+ case 'X':
2032
+ {
2033
+ UNITY_UINT number;
2034
+ UNITY_EXTRACT_ARG(UNITY_UINT, number, length_mod, va, unsigned int);
2035
+ UNITY_OUTPUT_CHAR('0');
2036
+ UNITY_OUTPUT_CHAR('x');
2037
+ UnityPrintNumberHex(number, 8);
2038
+ break;
2039
+ }
2040
+ case 'p':
2041
+ {
2042
+ const unsigned int number = va_arg(va, unsigned int);
2043
+ UNITY_OUTPUT_CHAR('0');
2044
+ UNITY_OUTPUT_CHAR('x');
2045
+ UnityPrintNumberHex((UNITY_UINT)number, 8);
2046
+ break;
2047
+ }
2048
+ case 'c':
2049
+ {
2050
+ const int ch = va_arg(va, int);
2051
+ UnityPrintChar((const char *)&ch);
2052
+ break;
2053
+ }
2054
+ case 's':
2055
+ {
2056
+ const char * string = va_arg(va, const char *);
2057
+ UnityPrint(string);
2058
+ break;
2059
+ }
2060
+ case '%':
2061
+ {
2062
+ UnityPrintChar(pch);
2063
+ break;
2064
+ }
2065
+ default:
2066
+ {
2067
+ /* print the unknown format character */
2068
+ UNITY_OUTPUT_CHAR('%');
2069
+ UnityPrintChar(pch);
2070
+ break;
2071
+ }
2072
+ }
2073
+ }
2074
+ }
2075
+ #ifdef UNITY_OUTPUT_COLOR
2076
+ /* print ANSI escape code */
2077
+ else if ((*pch == 27) && (*(pch + 1) == '['))
2078
+ {
2079
+ pch += UnityPrintAnsiEscapeString(pch);
2080
+ continue;
2081
+ }
2082
+ #endif
2083
+ else if (*pch == '\n')
2084
+ {
2085
+ UNITY_PRINT_EOL();
2086
+ }
2087
+ else
2088
+ {
2089
+ UnityPrintChar(pch);
2090
+ }
2091
+
2092
+ pch++;
2093
+ }
2094
+ }
2095
+ }
2096
+
2097
+ void UnityPrintF(const UNITY_LINE_TYPE line, const char* format, ...)
2098
+ {
2099
+ UnityTestResultsBegin(Unity.TestFile, line);
2100
+ UnityPrint("INFO");
2101
+ if(format != NULL)
2102
+ {
2103
+ UnityPrint(": ");
2104
+ va_list va;
2105
+ va_start(va, format);
2106
+ UnityPrintFVA(format, va);
2107
+ va_end(va);
2108
+ }
2109
+ UNITY_PRINT_EOL();
2110
+ }
2111
+ #endif /* ! UNITY_INCLUDE_PRINT_FORMATTED */
2112
+
2113
+
2114
+ /*-----------------------------------------------
2115
+ * Control Functions
2116
+ *-----------------------------------------------*/
2117
+
2118
+ /*-----------------------------------------------*/
2119
+ void UnityFail(const char* msg, const UNITY_LINE_TYPE line)
2120
+ {
2121
+ RETURN_IF_FAIL_OR_IGNORE;
2122
+
2123
+ UnityTestResultsBegin(Unity.TestFile, line);
2124
+ UnityPrint(UnityStrFail);
2125
+ if (msg != NULL)
2126
+ {
2127
+ UNITY_OUTPUT_CHAR(':');
2128
+
2129
+ #ifdef UNITY_PRINT_TEST_CONTEXT
2130
+ UNITY_PRINT_TEST_CONTEXT();
2131
+ #endif
2132
+ #ifndef UNITY_EXCLUDE_DETAILS
2133
+ if (Unity.CurrentDetail1)
2134
+ {
2135
+ UnityPrint(UnityStrDetail1Name);
2136
+ UnityPrint(Unity.CurrentDetail1);
2137
+ if (Unity.CurrentDetail2)
2138
+ {
2139
+ UnityPrint(UnityStrDetail2Name);
2140
+ UnityPrint(Unity.CurrentDetail2);
2141
+ }
2142
+ UnityPrint(UnityStrSpacer);
2143
+ }
2144
+ #endif
2145
+ if (msg[0] != ' ')
2146
+ {
2147
+ UNITY_OUTPUT_CHAR(' ');
2148
+ }
2149
+ UnityPrint(msg);
2150
+ }
2151
+
2152
+ UNITY_FAIL_AND_BAIL;
2153
+ }
2154
+
2155
+ /*-----------------------------------------------*/
2156
+ void UnityIgnore(const char* msg, const UNITY_LINE_TYPE line)
2157
+ {
2158
+ RETURN_IF_FAIL_OR_IGNORE;
2159
+
2160
+ UnityTestResultsBegin(Unity.TestFile, line);
2161
+ UnityPrint(UnityStrIgnore);
2162
+ if (msg != NULL)
2163
+ {
2164
+ UNITY_OUTPUT_CHAR(':');
2165
+ UNITY_OUTPUT_CHAR(' ');
2166
+ UnityPrint(msg);
2167
+ }
2168
+ UNITY_IGNORE_AND_BAIL;
2169
+ }
2170
+
2171
+ /*-----------------------------------------------*/
2172
+ void UnityMessage(const char* msg, const UNITY_LINE_TYPE line)
2173
+ {
2174
+ UnityTestResultsBegin(Unity.TestFile, line);
2175
+ UnityPrint("INFO");
2176
+ if (msg != NULL)
2177
+ {
2178
+ UNITY_OUTPUT_CHAR(':');
2179
+ UNITY_OUTPUT_CHAR(' ');
2180
+ UnityPrint(msg);
2181
+ }
2182
+ UNITY_PRINT_EOL();
2183
+ }
2184
+
2185
+ /*-----------------------------------------------*/
2186
+ /* If we have not defined our own test runner, then include our default test runner to make life easier */
2187
+ #ifndef UNITY_SKIP_DEFAULT_RUNNER
2188
+ void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int FuncLineNum)
2189
+ {
2190
+ Unity.CurrentTestName = FuncName;
2191
+ Unity.CurrentTestLineNumber = (UNITY_LINE_TYPE)FuncLineNum;
2192
+ Unity.NumberOfTests++;
2193
+ UNITY_CLR_DETAILS();
2194
+ UNITY_EXEC_TIME_START();
2195
+ if (TEST_PROTECT())
2196
+ {
2197
+ setUp();
2198
+ Func();
2199
+ }
2200
+ if (TEST_PROTECT())
2201
+ {
2202
+ tearDown();
2203
+ }
2204
+ UNITY_EXEC_TIME_STOP();
2205
+ UnityConcludeTest();
2206
+ }
2207
+ #endif
2208
+
2209
+ /*-----------------------------------------------*/
2210
+ void UnitySetTestFile(const char* filename)
2211
+ {
2212
+ Unity.TestFile = filename;
2213
+ }
2214
+
2215
+ /*-----------------------------------------------*/
2216
+ void UnityBegin(const char* filename)
2217
+ {
2218
+ Unity.TestFile = filename;
2219
+ Unity.CurrentTestName = NULL;
2220
+ Unity.CurrentTestLineNumber = 0;
2221
+ Unity.NumberOfTests = 0;
2222
+ Unity.TestFailures = 0;
2223
+ Unity.TestIgnores = 0;
2224
+ Unity.CurrentTestFailed = 0;
2225
+ Unity.CurrentTestIgnored = 0;
2226
+
2227
+ UNITY_CLR_DETAILS();
2228
+ UNITY_OUTPUT_START();
2229
+ }
2230
+
2231
+ /*-----------------------------------------------*/
2232
+ int UnityEnd(void)
2233
+ {
2234
+ UNITY_PRINT_EOL();
2235
+ UnityPrint(UnityStrBreaker);
2236
+ UNITY_PRINT_EOL();
2237
+ UnityPrintNumber((UNITY_INT)(Unity.NumberOfTests));
2238
+ UnityPrint(UnityStrResultsTests);
2239
+ UnityPrintNumber((UNITY_INT)(Unity.TestFailures));
2240
+ UnityPrint(UnityStrResultsFailures);
2241
+ UnityPrintNumber((UNITY_INT)(Unity.TestIgnores));
2242
+ UnityPrint(UnityStrResultsIgnored);
2243
+ UNITY_PRINT_EOL();
2244
+ if (Unity.TestFailures == 0U)
2245
+ {
2246
+ UnityPrint(UnityStrOk);
2247
+ }
2248
+ else
2249
+ {
2250
+ UnityPrint(UnityStrFail);
2251
+ #ifdef UNITY_DIFFERENTIATE_FINAL_FAIL
2252
+ UNITY_OUTPUT_CHAR('E'); UNITY_OUTPUT_CHAR('D');
2253
+ #endif
2254
+ }
2255
+ UNITY_PRINT_EOL();
2256
+ UNITY_FLUSH_CALL();
2257
+ UNITY_OUTPUT_COMPLETE();
2258
+ return (int)(Unity.TestFailures);
2259
+ }
2260
+
2261
+ /*-----------------------------------------------
2262
+ * Command Line Argument Support
2263
+ *-----------------------------------------------*/
2264
+ #ifdef UNITY_USE_COMMAND_LINE_ARGS
2265
+
2266
+ char* UnityOptionIncludeNamed = NULL;
2267
+ char* UnityOptionExcludeNamed = NULL;
2268
+ int UnityVerbosity = 1;
2269
+
2270
+ /*-----------------------------------------------*/
2271
+ int UnityParseOptions(int argc, char** argv)
2272
+ {
2273
+ int i;
2274
+ UnityOptionIncludeNamed = NULL;
2275
+ UnityOptionExcludeNamed = NULL;
2276
+
2277
+ for (i = 1; i < argc; i++)
2278
+ {
2279
+ if (argv[i][0] == '-')
2280
+ {
2281
+ switch (argv[i][1])
2282
+ {
2283
+ case 'l': /* list tests */
2284
+ return -1;
2285
+ case 'n': /* include tests with name including this string */
2286
+ case 'f': /* an alias for -n */
2287
+ if (argv[i][2] == '=')
2288
+ {
2289
+ UnityOptionIncludeNamed = &argv[i][3];
2290
+ }
2291
+ else if (++i < argc)
2292
+ {
2293
+ UnityOptionIncludeNamed = argv[i];
2294
+ }
2295
+ else
2296
+ {
2297
+ UnityPrint("ERROR: No Test String to Include Matches For");
2298
+ UNITY_PRINT_EOL();
2299
+ return 1;
2300
+ }
2301
+ break;
2302
+ case 'q': /* quiet */
2303
+ UnityVerbosity = 0;
2304
+ break;
2305
+ case 'v': /* verbose */
2306
+ UnityVerbosity = 2;
2307
+ break;
2308
+ case 'x': /* exclude tests with name including this string */
2309
+ if (argv[i][2] == '=')
2310
+ {
2311
+ UnityOptionExcludeNamed = &argv[i][3];
2312
+ }
2313
+ else if (++i < argc)
2314
+ {
2315
+ UnityOptionExcludeNamed = argv[i];
2316
+ }
2317
+ else
2318
+ {
2319
+ UnityPrint("ERROR: No Test String to Exclude Matches For");
2320
+ UNITY_PRINT_EOL();
2321
+ return 1;
2322
+ }
2323
+ break;
2324
+ default:
2325
+ UnityPrint("ERROR: Unknown Option ");
2326
+ UNITY_OUTPUT_CHAR(argv[i][1]);
2327
+ UNITY_PRINT_EOL();
2328
+ return 1;
2329
+ }
2330
+ }
2331
+ }
2332
+
2333
+ return 0;
2334
+ }
2335
+
2336
+ /*-----------------------------------------------*/
2337
+ int IsStringInBiggerString(const char* longstring, const char* shortstring)
2338
+ {
2339
+ const char* lptr = longstring;
2340
+ const char* sptr = shortstring;
2341
+ const char* lnext = lptr;
2342
+
2343
+ if (*sptr == '*')
2344
+ {
2345
+ return 1;
2346
+ }
2347
+
2348
+ while (*lptr)
2349
+ {
2350
+ lnext = lptr + 1;
2351
+
2352
+ /* If they current bytes match, go on to the next bytes */
2353
+ while (*lptr && *sptr && (*lptr == *sptr))
2354
+ {
2355
+ lptr++;
2356
+ sptr++;
2357
+
2358
+ /* We're done if we match the entire string or up to a wildcard */
2359
+ if (*sptr == '*')
2360
+ return 1;
2361
+ if (*sptr == ',')
2362
+ return 1;
2363
+ if (*sptr == '"')
2364
+ return 1;
2365
+ if (*sptr == '\'')
2366
+ return 1;
2367
+ if (*sptr == ':')
2368
+ return 2;
2369
+ if (*sptr == 0)
2370
+ return 1;
2371
+ }
2372
+
2373
+ /* Otherwise we start in the long pointer 1 character further and try again */
2374
+ lptr = lnext;
2375
+ sptr = shortstring;
2376
+ }
2377
+
2378
+ return 0;
2379
+ }
2380
+
2381
+ /*-----------------------------------------------*/
2382
+ int UnityStringArgumentMatches(const char* str)
2383
+ {
2384
+ int retval;
2385
+ const char* ptr1;
2386
+ const char* ptr2;
2387
+ const char* ptrf;
2388
+
2389
+ /* Go through the options and get the substrings for matching one at a time */
2390
+ ptr1 = str;
2391
+ while (ptr1[0] != 0)
2392
+ {
2393
+ if ((ptr1[0] == '"') || (ptr1[0] == '\''))
2394
+ {
2395
+ ptr1++;
2396
+ }
2397
+
2398
+ /* look for the start of the next partial */
2399
+ ptr2 = ptr1;
2400
+ ptrf = 0;
2401
+ do
2402
+ {
2403
+ ptr2++;
2404
+ if ((ptr2[0] == ':') && (ptr2[1] != 0) && (ptr2[0] != '\'') && (ptr2[0] != '"') && (ptr2[0] != ','))
2405
+ {
2406
+ ptrf = &ptr2[1];
2407
+ }
2408
+ } while ((ptr2[0] != 0) && (ptr2[0] != '\'') && (ptr2[0] != '"') && (ptr2[0] != ','));
2409
+
2410
+ while ((ptr2[0] != 0) && ((ptr2[0] == ':') || (ptr2[0] == '\'') || (ptr2[0] == '"') || (ptr2[0] == ',')))
2411
+ {
2412
+ ptr2++;
2413
+ }
2414
+
2415
+ /* done if complete filename match */
2416
+ retval = IsStringInBiggerString(Unity.TestFile, ptr1);
2417
+ if (retval == 1)
2418
+ {
2419
+ return retval;
2420
+ }
2421
+
2422
+ /* done if testname match after filename partial match */
2423
+ if ((retval == 2) && (ptrf != 0))
2424
+ {
2425
+ if (IsStringInBiggerString(Unity.CurrentTestName, ptrf))
2426
+ {
2427
+ return 1;
2428
+ }
2429
+ }
2430
+
2431
+ /* done if complete testname match */
2432
+ if (IsStringInBiggerString(Unity.CurrentTestName, ptr1) == 1)
2433
+ {
2434
+ return 1;
2435
+ }
2436
+
2437
+ ptr1 = ptr2;
2438
+ }
2439
+
2440
+ /* we couldn't find a match for any substrings */
2441
+ return 0;
2442
+ }
2443
+
2444
+ /*-----------------------------------------------*/
2445
+ int UnityTestMatches(void)
2446
+ {
2447
+ /* Check if this test name matches the included test pattern */
2448
+ int retval;
2449
+ if (UnityOptionIncludeNamed)
2450
+ {
2451
+ retval = UnityStringArgumentMatches(UnityOptionIncludeNamed);
2452
+ }
2453
+ else
2454
+ {
2455
+ retval = 1;
2456
+ }
2457
+
2458
+ /* Check if this test name matches the excluded test pattern */
2459
+ if (UnityOptionExcludeNamed)
2460
+ {
2461
+ if (UnityStringArgumentMatches(UnityOptionExcludeNamed))
2462
+ {
2463
+ retval = 0;
2464
+ }
2465
+ }
2466
+
2467
+ return retval;
2468
+ }
2469
+
2470
+ #endif /* UNITY_USE_COMMAND_LINE_ARGS */
2471
+ /*-----------------------------------------------*/