(comment *parsedComment, line string)
| 98 | } |
| 99 | |
| 100 | func (p *commentParser) parseMessage(comment *parsedComment, line string) { |
| 101 | p.t.Helper() |
| 102 | |
| 103 | if strings.HasPrefix(line, "Author: ") { |
| 104 | p.comments = append(p.comments, *comment) |
| 105 | comment = &parsedComment{} |
| 106 | p.parseAuthor(comment, line) |
| 107 | |
| 108 | return |
| 109 | } |
| 110 | |
| 111 | require.True(p.t, line == "" || strings.HasPrefix(line, " ")) |
| 112 | |
| 113 | comment.message = strings.Join([]string{comment.message, line}, "\n") |
| 114 | } |
| 115 | |
| 116 | func normalizeParsedComments(t *testing.T, comments []parsedComment) []parsedComment { |
| 117 | t.Helper() |
nothing calls this directly
no test coverage detected