(comment *parsedComment, line string)
| 62 | } |
| 63 | |
| 64 | func (p *commentParser) parseAuthor(comment *parsedComment, line string) { |
| 65 | p.t.Helper() |
| 66 | |
| 67 | tkns := strings.Split(line, ": ") |
| 68 | require.Len(p.t, tkns, 2) |
| 69 | require.Equal(p.t, "Author", tkns[0]) |
| 70 | |
| 71 | comment.author = tkns[1] |
| 72 | p.fn = p.parseID |
| 73 | } |
| 74 | |
| 75 | func (p *commentParser) parseID(comment *parsedComment, line string) { |
| 76 | p.t.Helper() |
no test coverage detected