MCPcopy Create free account
hub / github.com/git-bug/git-bug / parseID

Method parseID

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

Source from the content-addressed store, hash-verified

73}
74
75func (p *commentParser) parseID(comment *parsedComment, line string) {
76 p.t.Helper()
77
78 tkns := strings.Split(line, ": ")
79 require.Len(p.t, tkns, 2)
80 require.Equal(p.t, "Id", tkns[0])
81
82 comment.id = tkns[1]
83 p.fn = p.parseDate
84}
85
86func (p *commentParser) parseDate(comment *parsedComment, line string) {
87 p.t.Helper()

Callers

nothing calls this directly

Calls 2

HelperMethod · 0.80
LenMethod · 0.45

Tested by

no test coverage detected