Commits calls CommitsFunc.
(query Query)
| 123 | |
| 124 | // Commits calls CommitsFunc. |
| 125 | func (mock *SearcherMock) Commits(query Query) (CommitsResult, error) { |
| 126 | if mock.CommitsFunc == nil { |
| 127 | panic("SearcherMock.CommitsFunc: method is nil but Searcher.Commits was just called") |
| 128 | } |
| 129 | callInfo := struct { |
| 130 | Query Query |
| 131 | }{ |
| 132 | Query: query, |
| 133 | } |
| 134 | mock.lockCommits.Lock() |
| 135 | mock.calls.Commits = append(mock.calls.Commits, callInfo) |
| 136 | mock.lockCommits.Unlock() |
| 137 | return mock.CommitsFunc(query) |
| 138 | } |
| 139 | |
| 140 | // CommitsCalls gets all the calls that were made to Commits. |
| 141 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected