| 1139 | } |
| 1140 | |
| 1141 | static const char *coverage_metadata_replace(const char *from, const char *to) { |
| 1142 | const char *base = coverage_metadata_json("2", "2", "1", COVERAGE_META_SUITES, ""); |
| 1143 | const char *position = strstr(base, from); |
| 1144 | static char text[4096]; |
| 1145 | if (!position) |
| 1146 | return NULL; |
| 1147 | snprintf(text, sizeof(text), "%.*s%s%s", (int)(position - base), base, to, |
| 1148 | position + strlen(from)); |
| 1149 | return text; |
| 1150 | } |
| 1151 | |
| 1152 | static cbm_coverage_map_t *coverage_metadata_variant(bool setup_complete, bool test_complete) { |
| 1153 | char text[1024]; |
no test coverage detected