testsample_param.c 1.4 KB

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