1276da39aSCy Schubert /* AUTOGENERATED FILE. DO NOT EDIT. */
2276da39aSCy Schubert
3276da39aSCy Schubert //=======Test Runner Used To Run Each Test Below=====
4276da39aSCy Schubert #define RUN_TEST(TestFunc, TestLineNum) \
5276da39aSCy Schubert { \
6276da39aSCy Schubert Unity.CurrentTestName = #TestFunc; \
7276da39aSCy Schubert Unity.CurrentTestLineNumber = TestLineNum; \
8276da39aSCy Schubert Unity.NumberOfTests++; \
9276da39aSCy Schubert if (TEST_PROTECT()) \
10276da39aSCy Schubert { \
11276da39aSCy Schubert setUp(); \
12276da39aSCy Schubert TestFunc(); \
13276da39aSCy Schubert } \
14276da39aSCy Schubert if (TEST_PROTECT() && !TEST_IS_IGNORED) \
15276da39aSCy Schubert { \
16276da39aSCy Schubert tearDown(); \
17276da39aSCy Schubert } \
18276da39aSCy Schubert UnityConcludeTest(); \
19276da39aSCy Schubert }
20276da39aSCy Schubert
21276da39aSCy Schubert //=======Automagically Detected Files To Include=====
22276da39aSCy Schubert #include "unity.h"
23276da39aSCy Schubert #include <setjmp.h>
24276da39aSCy Schubert #include <stdio.h>
259034852cSGleb Smirnoff #include "config.h"
269034852cSGleb Smirnoff #include "ntp_types.h"
279034852cSGleb Smirnoff #include "ntp_stdlib.h"
289034852cSGleb Smirnoff #include "fileHandlingTest.h"
299034852cSGleb Smirnoff #include "kod_management.h"
30276da39aSCy Schubert
31276da39aSCy Schubert //=======External Functions This Runner Calls=====
32276da39aSCy Schubert extern void setUp(void);
33276da39aSCy Schubert extern void tearDown(void);
349034852cSGleb Smirnoff extern void test_ReadEmptyFile(void);
359034852cSGleb Smirnoff extern void test_ReadCorrectFile(void);
369034852cSGleb Smirnoff extern void test_ReadFileWithBlankLines(void);
379034852cSGleb Smirnoff extern void test_WriteEmptyFile(void);
389034852cSGleb Smirnoff extern void test_WriteFileWithSingleEntry(void);
399034852cSGleb Smirnoff extern void test_WriteFileWithMultipleEntries(void);
40276da39aSCy Schubert
41276da39aSCy Schubert
4209100258SXin LI //=======Suite Setup=====
suite_setup(void)4309100258SXin LI static void suite_setup(void)
4409100258SXin LI {
45*2d4e511cSCy Schubert extern int change_iobufs(int);
4609100258SXin LI extern int change_logfile(const char*, int);
47*2d4e511cSCy Schubert change_iobufs(1);
4809100258SXin LI change_logfile("stderr", 0);
4909100258SXin LI }
5009100258SXin LI
51276da39aSCy Schubert //=======Test Reset Option=====
529034852cSGleb Smirnoff void resetTest(void);
resetTest(void)539034852cSGleb Smirnoff void resetTest(void)
54276da39aSCy Schubert {
55276da39aSCy Schubert tearDown();
56276da39aSCy Schubert setUp();
57276da39aSCy Schubert }
58276da39aSCy Schubert
599034852cSGleb Smirnoff char const *progname;
60276da39aSCy Schubert
61276da39aSCy Schubert
62276da39aSCy Schubert //=======MAIN=====
main(int argc,char * argv[])63276da39aSCy Schubert int main(int argc, char *argv[])
64276da39aSCy Schubert {
65276da39aSCy Schubert progname = argv[0];
6609100258SXin LI suite_setup();
67276da39aSCy Schubert UnityBegin("kodFile.c");
689034852cSGleb Smirnoff RUN_TEST(test_ReadEmptyFile, 19);
699034852cSGleb Smirnoff RUN_TEST(test_ReadCorrectFile, 20);
709034852cSGleb Smirnoff RUN_TEST(test_ReadFileWithBlankLines, 21);
719034852cSGleb Smirnoff RUN_TEST(test_WriteEmptyFile, 22);
729034852cSGleb Smirnoff RUN_TEST(test_WriteFileWithSingleEntry, 23);
739034852cSGleb Smirnoff RUN_TEST(test_WriteFileWithMultipleEntries, 24);
74276da39aSCy Schubert
75276da39aSCy Schubert return (UnityEnd());
76276da39aSCy Schubert }
77