MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / mockCommit

Struct mockCommit

test/helpers_test.go:12–22  ·  view source on GitHub ↗

mockCommit implements lint.Commit for testing without depending on any parser package.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected