interplane.Get Omega
Read in your language

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

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 <setjmp.h>
25#include <stdio.h>
26#include "funky.h"
27#include "stanky.h"
28#include <setjmp.h>
29
30/*=======External Functions This Runner Calls=====*/
31extern void setUp(void);
32extern void tearDown(void);
33extern void test_TheFirstThingToTest(void);
34extern void test_TheSecondThingToTest(void);
35extern void test_TheThirdThingToTest(void);
36extern void test_TheFourthThingToTest(void);
37
38
39/*=======Test Reset Option=====*/
40void resetTest(void);
41void resetTest(void)
42{
43 tearDown();
44 setUp();
45}
46
47
48/*=======MAIN=====*/
49int 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}