| 736 | } |
| 737 | |
| 738 | static char *cv2_string(cv2_context_t *ctx, cv2_span_t span) { |
| 739 | if (span.length == SIZE_MAX) { |
| 740 | cv2_fail(ctx, CBM_COVERAGE_PARSE_LIMIT); |
| 741 | return NULL; |
| 742 | } |
| 743 | char *text = cv2_array(ctx, span.length + 1, 1); |
| 744 | if (!text || !cv2_copy(ctx, text, span.data, span.length)) |
| 745 | return NULL; |
| 746 | return text; |
| 747 | } |
| 748 | |
| 749 | static bool cv2_line(cv2_context_t *ctx, cv2_span_t input, size_t *position, bool test_row, |
| 750 | cv2_span_t *line) { |
no test coverage detected