| 16 | } |
| 17 | |
| 18 | static 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 | |
| 37 | static void test_path_correct(void) |
| 38 | { |
no test coverage detected
searching dependent graphs…