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

Method parseDate

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

Source from the content-addressed store, hash-verified

84}
85
86func (p *commentParser) parseDate(comment *parsedComment, line string) {
87 p.t.Helper()
88
89 tkns := strings.Split(line, ": ")
90 require.Len(p.t, tkns, 2)
91 require.Equal(p.t, "Date", tkns[0])
92
93 date, err := time.Parse(gitDateFormat, tkns[1])
94 require.NoError(p.t, err)
95
96 comment.date = date
97 p.fn = p.parseMessage
98}
99
100func (p *commentParser) parseMessage(comment *parsedComment, line string) {
101 p.t.Helper()

Callers

nothing calls this directly

Calls 3

HelperMethod · 0.80
ParseMethod · 0.65
LenMethod · 0.45

Tested by

no test coverage detected