MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / mockCommit

Struct mockCommit

test/helpers_test.go:11–21  ·  view source on GitHub ↗

mockCommit implements lint.Commit for testing

Source from the content-addressed store, hash-verified

9
10// mockCommit implements lint.Commit for testing
11type mockCommit struct {
12 message string
13 header string
14 body string
15 footer string
16 typ string
17 scope string
18 description string
19 notes []lint.Note
20 breaking bool
21}
22
23func (m *mockCommit) Message() string { return m.message }
24func (m *mockCommit) Header() string { return m.header }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected