Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/cJSON/blob/master/tests/unity/test/expectdata/testsample_param.c # cJSON [Ported from github.com/DaveGamble/cJSON] Fix: heap-use-after-free in merge_patch when patch is subtree of target (#1065) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `cJSON / tests / unity / test / expectdata / testsample_param.c` 58 lines ยท 1405 bytes Raw Blame History 1 /* AUTOGENERATED FILE. DO NOT EDIT. */ 2 3 /*=======Test Runner Used To Run Each Test Below=====*/ 4 #define RUN_TEST_NO_ARGS 5 #define RUN_TEST(TestFunc, TestLineNum, ...) \ 6 { \ 7 Unity.CurrentTestName = #TestFunc "(" #__VA_ARGS__ ")"; \ 8 Unity.CurrentTestLineNumber = TestLineNum; \ 9 Unity.NumberOfTests++; \ 10 if (TEST_PROTECT()) \ 11 { \ 12 setUp(); \ 13 TestFunc(__VA_ARGS__); \ 14 } \ 15 if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 16 { \ 17 tearDown(); \ 18 } \ 19 UnityConcludeTest(); \ 20 } 21 22 /*=======Automagically Detected Files To Include=====*/ 23 #include "unity.h" 24 #include 25 #include 26 #include "funky.h" 27 #include "stanky.h" 28 #include 29 30 /*=======External Functions This Runner Calls=====*/ 31 extern void setUp(void); 32 extern void tearDown(void); 33 extern void test_TheFirstThingToTest(void); 34 extern void test_TheSecondThingToTest(void); 35 extern void test_TheThirdThingToTest(void); 36 extern void test_TheFourthThingToTest(void); 37 38 39 /*=======Test Reset Option=====*/ 40 void resetTest(void); 41 void resetTest(void) 42 { 43 tearDown(); 44 setUp(); 45 } 46 47 48 /*=======MAIN=====*/ 49 int main(void) 50 { 51 UnityBegin("testdata/testsample.c"); 52 RUN_TEST(test_TheFirstThingToTest, 21, RUN_TEST_NO_ARGS); 53 RUN_TEST(test_TheSecondThingToTest, 43, RUN_TEST_NO_ARGS); 54 RUN_TEST(test_TheThirdThingToTest, 53, RUN_TEST_NO_ARGS); 55 RUN_TEST(test_TheFourthThingToTest, 58, RUN_TEST_NO_ARGS); 56 57 return (UnityEnd()); 58 }