| 1071 | } |
| 1072 | |
| 1073 | static bool cv2_tests(cv2_context_t *ctx, cv2_span_t tests) { |
| 1074 | size_t position = 0; |
| 1075 | for (int i = 0; i < ctx->test_count; i++) { |
| 1076 | cv2_span_t fields[4]; |
| 1077 | cbm_coverage_test_t *row = &ctx->map->tests[i]; |
| 1078 | if (!cv2_step(ctx) || !cv2_row(ctx, tests, &position, true, fields) || |
| 1079 | !cv2_test_name(ctx, fields[0], row) || !cv2_test_state(ctx, fields, row) || |
| 1080 | !cv2_test_ids(ctx, fields[3], row)) |
| 1081 | return false; |
| 1082 | } |
| 1083 | if (position != tests.length) |
| 1084 | return cv2_fail(ctx, CBM_COVERAGE_PARSE_FORMAT); |
| 1085 | return true; |
| 1086 | } |
| 1087 | |
| 1088 | static bool cv2_string_compare(cv2_context_t *ctx, const char *a, const char *b, int *out) { |
| 1089 | size_t i = 0; |
no test coverage detected