()
| 46 | } |
| 47 | |
| 48 | func (m *mockCommit) BodyBlankLines() int { |
| 49 | if m.body == "" { |
| 50 | return 0 |
| 51 | } |
| 52 | idx := strings.IndexByte(m.message, '\n') |
| 53 | if idx < 0 { |
| 54 | return 0 |
| 55 | } |
| 56 | rest := m.message[idx+1:] |
| 57 | if strings.HasPrefix(rest, "\n") || strings.HasPrefix(rest, "\r\n") { |
| 58 | return 1 |
| 59 | } |
| 60 | return 0 |
| 61 | } |
| 62 | |
| 63 | func (m *mockCommit) FooterBlankLines() int { |
| 64 | if m.footer == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected