| 445 | } |
| 446 | |
| 447 | static bool test_file_contains_all(const char *path, const char *const *tokens, |
| 448 | size_t token_count) { |
| 449 | char *data = read_test_file_alloc(path); |
| 450 | if (!data) { |
| 451 | return false; |
| 452 | } |
| 453 | bool found = true; |
| 454 | for (size_t i = 0; i < token_count; i++) { |
| 455 | if (!strstr(data, tokens[i])) { |
| 456 | found = false; |
| 457 | break; |
| 458 | } |
| 459 | } |
| 460 | free(data); |
| 461 | return found; |
| 462 | } |
| 463 | |
| 464 | static bool test_json_string_array_contains(yyjson_val *root, const char *key, |
| 465 | const char *expected) { |
no test coverage detected