| 29 | #include "common.h" |
| 30 | |
| 31 | static cJSON *parse_file(const char *filename) |
| 32 | { |
| 33 | cJSON *parsed = NULL; |
| 34 | char *content = read_file(filename); |
| 35 | |
| 36 | parsed = cJSON_Parse(content); |
| 37 | |
| 38 | if (content != NULL) |
| 39 | { |
| 40 | free(content); |
| 41 | } |
| 42 | |
| 43 | return parsed; |
| 44 | } |
| 45 | |
| 46 | static void do_test(const char *test_name) |
| 47 | { |
no test coverage detected
searching dependent graphs…