MCPcopy Index your code
hub / github.com/git-bug/git-bug / parseAuthor

Method parseAuthor

commands/bug/bug_comment_test.go:64–73  ·  view source on GitHub ↗
(comment *parsedComment, line string)

Source from the content-addressed store, hash-verified

62}
63
64func (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
75func (p *commentParser) parseID(comment *parsedComment, line string) {
76 p.t.Helper()

Callers 1

parseMessageMethod · 0.95

Calls 2

HelperMethod · 0.80
LenMethod · 0.45

Tested by

no test coverage detected