testsample_head1.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. setUp(); \
  11. TestFunc(); \
  12. } \
  13. if (TEST_PROTECT() && !TEST_IS_IGNORED) \
  14. { \
  15. tearDown(); \
  16. } \
  17. UnityConcludeTest(); \
  18. }
  19. /*=======Automagically Detected Files To Include=====*/
  20. #include "unity.h"
  21. #include <setjmp.h>
  22. #include <stdio.h>
  23. #include "testsample_head1.h"
  24. /*=======External Functions This Runner Calls=====*/
  25. extern void setUp(void);
  26. extern void tearDown(void);
  27. extern void test_TheFirstThingToTest(void);
  28. extern void test_TheSecondThingToTest(void);
  29. extern void test_TheThirdThingToTest(void);
  30. extern void test_TheFourthThingToTest(void);
  31. /*=======Test Reset Option=====*/
  32. void resetTest(void);
  33. void resetTest(void)
  34. {
  35. tearDown();
  36. setUp();
  37. }
  38. /*=======MAIN=====*/
  39. int main(void)
  40. {
  41. UnityBegin("testdata/testsample.c");
  42. RUN_TEST(test_TheFirstThingToTest, 21);
  43. RUN_TEST(test_TheSecondThingToTest, 43);
  44. RUN_TEST(test_TheThirdThingToTest, 53);
  45. RUN_TEST(test_TheFourthThingToTest, 58);
  46. return (UnityEnd());
  47. }