testsample_yaml.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* AUTOGENERATED FILE. DO NOT EDIT. */
  2. /*=======Test Runner Used To Run Each Test Below=====*/
  3. #define RUN_TEST(TestFunc, TestLineNum) \
  4. { \
  5. Unity.CurrentTestName = #TestFunc; \
  6. Unity.CurrentTestLineNumber = TestLineNum; \
  7. Unity.NumberOfTests++; \
  8. if (TEST_PROTECT()) \
  9. { \
  10. CEXCEPTION_T e; \
  11. Try { \
  12. setUp(); \
  13. TestFunc(); \
  14. } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
  15. } \
  16. if (TEST_PROTECT() && !TEST_IS_IGNORED) \
  17. { \
  18. tearDown(); \
  19. } \
  20. UnityConcludeTest(); \
  21. }
  22. /*=======Automagically Detected Files To Include=====*/
  23. #include "unity.h"
  24. #include <setjmp.h>
  25. #include <stdio.h>
  26. #include "CException.h"
  27. #include "two.h"
  28. #include "three.h"
  29. #include <four.h>
  30. #include "funky.h"
  31. #include "stanky.h"
  32. #include <setjmp.h>
  33. /*=======External Functions This Runner Calls=====*/
  34. extern void setUp(void);
  35. extern void tearDown(void);
  36. extern void test_TheFirstThingToTest(void);
  37. extern void test_TheSecondThingToTest(void);
  38. extern void test_TheThirdThingToTest(void);
  39. extern void test_TheFourthThingToTest(void);
  40. /*=======Suite Setup=====*/
  41. static int suite_setup(void)
  42. {
  43. a_yaml_setup();
  44. }
  45. /*=======Test Reset Option=====*/
  46. void resetTest(void);
  47. void resetTest(void)
  48. {
  49. tearDown();
  50. setUp();
  51. }
  52. /*=======MAIN=====*/
  53. int main(void)
  54. {
  55. suite_setup();
  56. UnityBegin("testdata/testsample.c");
  57. RUN_TEST(test_TheFirstThingToTest, 21);
  58. RUN_TEST(test_TheSecondThingToTest, 43);
  59. RUN_TEST(test_TheThirdThingToTest, 53);
  60. RUN_TEST(test_TheFourthThingToTest, 58);
  61. return (UnityEnd());
  62. }