URL calls URLFunc.
(query Query)
| 219 | |
| 220 | // URL calls URLFunc. |
| 221 | func (mock *SearcherMock) URL(query Query) string { |
| 222 | if mock.URLFunc == nil { |
| 223 | panic("SearcherMock.URLFunc: method is nil but Searcher.URL was just called") |
| 224 | } |
| 225 | callInfo := struct { |
| 226 | Query Query |
| 227 | }{ |
| 228 | Query: query, |
| 229 | } |
| 230 | mock.lockURL.Lock() |
| 231 | mock.calls.URL = append(mock.calls.URL, callInfo) |
| 232 | mock.lockURL.Unlock() |
| 233 | return mock.URLFunc(query) |
| 234 | } |
| 235 | |
| 236 | // URLCalls gets all the calls that were made to URL. |
| 237 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected