| 22 | } |
| 23 | |
| 24 | static cbm_test_declarations_t *tc_config(const char *records, const char *presets) { |
| 25 | char json[8192]; |
| 26 | int n = snprintf(json, sizeof(json), |
| 27 | "{\"test_impact\":{\"version\":1,\"tests\":{\"conventions\":[%s],\"presets\":{%s}}}}", |
| 28 | records ? records : "", presets ? presets : ""); |
| 29 | return n > 0 && (size_t)n < sizeof(json) ? |
| 30 | cbm_test_declarations_parse(json, (size_t)n, false) : NULL; |
| 31 | } |
| 32 | |
| 33 | static CBMFileResult *tc_extract(const char *source, CBMLanguage language, const char *path, |
| 34 | const cbm_test_declarations_t *config) { |
no test coverage detected