MCPcopy Create free account
hub / github.com/acl-dev/acl / test

Function test

app/gson/test/parse6/main.cpp:50–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static void test(void)
51{
52 const char* s1 = "{\"files\":['1,;,;i,;]}[]]}}}} ' ], \"values\": []}";
53 const char* s2 = "{\"files\":[\"; ; \"], \"values\":[]}";
54 const char* s3 = "{\"files\":[\" ; \"], \"values\":[]}";
55 const char* s4 = "{'files':[], 'values':[1, 2, 3, 4]}";
56 const char* s5 = "{'files':[], 'values':[]}";
57 const char* s6 = "{'files':[ xxxx, yyyyy, zzzz], 'values':[]}";
58
59 parse(s1);
60 printf("--------------------------------------------------------\r\n");
61 parse(s2);
62 printf("--------------------------------------------------------\r\n");
63 parse(s3);
64 printf("--------------------------------------------------------\r\n");
65 parse(s4);
66 printf("--------------------------------------------------------\r\n");
67 parse(s5);
68 printf("--------------------------------------------------------\r\n");
69 parse(s6);
70 printf("--------------------------------------------------------\r\n");
71
72 const char* ss1 = "[]";
73 parse2(ss1);
74 printf("--------------------------------------------------------\r\n");
75 const char* ss2 = "{}";
76 parse2(ss2);
77 printf("--------------------------------------------------------\r\n");
78 const char* ss3 = "[{}]";
79 parse2(ss3);
80 printf("--------------------------------------------------------\r\n");
81 const char* ss4 = "{[]}";
82 parse2(ss4);
83 printf("--------------------------------------------------------\r\n");
84 const char* ss5 = "{[{[{}]}]}";
85 parse2(ss5);
86 printf("--------------------------------------------------------\r\n");
87 const char* ss6 = "{{{{{}}}}}";
88 parse2(ss6);
89 printf("--------------------------------------------------------\r\n");
90 const char* ss7 = "{[{[{},[],{},[]]}]}";
91 parse2(ss7);
92 printf("--------------------------------------------------------\r\n");
93}
94
95int main(void)
96{

Callers 1

mainFunction · 0.70

Calls 2

parse2Function · 0.85
parseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…