Sha256: 3fbe713625d12730b9d0f1c50df32dc5f8cc4799c7d591b0d93e3152481201cc

Contents?: true

Size: 1.97 KB

Versions: 16

Compression:

Stored size: 1.97 KB

Contents

/* AUTOGENERATED FILE. DO NOT EDIT. */

/*=======Test Runner Used To Run Each Test Below=====*/
#define RUN_TEST(TestFunc, TestLineNum) \
{ \
  Unity.CurrentTestName = #TestFunc; \
  Unity.CurrentTestLineNumber = TestLineNum; \
  Unity.NumberOfTests++; \
  if (TEST_PROTECT()) \
  { \
      setUp(); \
      TestFunc(); \
  } \
  if (TEST_PROTECT() && !TEST_IS_IGNORED) \
  { \
    tearDown(); \
  } \
  UnityConcludeTest(); \
}

/*=======Automagically Detected Files To Include=====*/
#include "unity.h"
#include <setjmp.h>
#include <stdio.h>
#include "ProductionCode.h"

/*=======External Functions This Runner Calls=====*/
extern void setUp(void);
extern void tearDown(void);
extern void test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode(void);
extern void test_FindFunction_WhichIsBroken_ShouldReturnTheIndexForItemsInList_WhichWillFailBecauseOurFunctionUnderTestIsBroken(void);
extern void test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValue(void);
extern void test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValueAgain(void);
extern void test_FunctionWhichReturnsLocalVariable_ShouldReturnCurrentCounter_ButFailsBecauseThisTestIsActuallyFlawed(void);


/*=======Test Reset Option=====*/
void resetTest(void);
void resetTest(void)
{
  tearDown();
  setUp();
}


/*=======MAIN=====*/
int main(void)
{
  UnityBegin("test/TestProductionCode.c");
  RUN_TEST(test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode, 20);
  RUN_TEST(test_FindFunction_WhichIsBroken_ShouldReturnTheIndexForItemsInList_WhichWillFailBecauseOurFunctionUnderTestIsBroken, 30);
  RUN_TEST(test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValue, 41);
  RUN_TEST(test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValueAgain, 51);
  RUN_TEST(test_FunctionWhichReturnsLocalVariable_ShouldReturnCurrentCounter_ButFailsBecauseThisTestIsActuallyFlawed, 57);

  return (UnityEnd());
}

Version data entries

16 entries across 4 versions & 1 rubygems

Version Path
ceedling-0.25.0 vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.25.0 vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.25.0 vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.25.0 vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.24.0 vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.24.0 vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.24.0 vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.24.0 vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.22.0 vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.22.0 vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.22.0 vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.22.0 vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.21.0 vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.21.0 vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.21.0 vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c
ceedling-0.21.0 vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c