mockCommit implements lint.Commit for testing without depending on any parser package.
| 10 | |
| 11 | // mockCommit implements lint.Commit for testing without depending on any parser package. |
| 12 | type 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 | |
| 24 | func (m *mockCommit) Message() string { return m.message } |
| 25 | func (m *mockCommit) Header() string { return m.header } |
nothing calls this directly
no outgoing calls
no test coverage detected