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

Function test_quote_split

lib_acl/samples/string/main.c:18–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18static void test_quote_split(void)
19{
20 struct {
21 const char* str;
22 const char* delim;
23 } data[] = {
24 { "hello world", " \t" },
25 { "\t hello\' world\"", "\t " },
26 { "hi \"hello world\"", "\t " },
27 { "\t 'myname is zsx.' \"what\'s your name?\" Good! ", "\t " },
28 { "name = \"zsx xsz\", name2 = 'xsz,= zsx'", "\t =," },
29 { NULL, NULL },
30 };
31 int i;
32
33 for (i = 0; data[i].str != NULL && data[i].delim; i++)
34 quote_split(data[i].str, data[i].delim);
35}
36
37static void test_path_correct(void)
38{

Callers 1

mainFunction · 0.85

Calls 1

quote_splitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…