| 1016 | } |
| 1017 | |
| 1018 | static bool cv2_test_name(cv2_context_t *ctx, cv2_span_t field, cbm_coverage_test_t *row) { |
| 1019 | size_t colon = 0; |
| 1020 | while (colon < field.length && field.data[colon] != ':') { |
| 1021 | if (!cv2_step(ctx)) |
| 1022 | return false; |
| 1023 | colon++; |
| 1024 | } |
| 1025 | if (!colon || colon == field.length || colon + 1 == field.length) |
| 1026 | return cv2_fail(ctx, CBM_COVERAGE_PARSE_FORMAT); |
| 1027 | row->suite = cv2_string(ctx, (cv2_span_t){field.data, colon}); |
| 1028 | row->name = cv2_string(ctx, (cv2_span_t){field.data + colon + 1, field.length - colon - 1}); |
| 1029 | return row->suite && row->name; |
| 1030 | } |
| 1031 | |
| 1032 | static bool cv2_test_state(cv2_context_t *ctx, cv2_span_t fields[4], cbm_coverage_test_t *row) { |
| 1033 | bool complete = cv2_literal(fields[1], "complete", 8); |
no test coverage detected