CodeCalls gets all the calls that were made to Code. Check the length with: len(mockedSearcher.CodeCalls())
()
| 110 | // |
| 111 | // len(mockedSearcher.CodeCalls()) |
| 112 | func (mock *SearcherMock) CodeCalls() []struct { |
| 113 | Query Query |
| 114 | } { |
| 115 | var calls []struct { |
| 116 | Query Query |
| 117 | } |
| 118 | mock.lockCode.RLock() |
| 119 | calls = mock.calls.Code |
| 120 | mock.lockCode.RUnlock() |
| 121 | return calls |
| 122 | } |
| 123 | |
| 124 | // Commits calls CommitsFunc. |
| 125 | func (mock *SearcherMock) Commits(query Query) (CommitsResult, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected