LatestVersion calls LatestVersionFunc.
()
| 239 | |
| 240 | // LatestVersion calls LatestVersionFunc. |
| 241 | func (mock *ExtensionMock) LatestVersion() string { |
| 242 | if mock.LatestVersionFunc == nil { |
| 243 | panic("ExtensionMock.LatestVersionFunc: method is nil but Extension.LatestVersion was just called") |
| 244 | } |
| 245 | callInfo := struct { |
| 246 | }{} |
| 247 | mock.lockLatestVersion.Lock() |
| 248 | mock.calls.LatestVersion = append(mock.calls.LatestVersion, callInfo) |
| 249 | mock.lockLatestVersion.Unlock() |
| 250 | return mock.LatestVersionFunc() |
| 251 | } |
| 252 | |
| 253 | // LatestVersionCalls gets all the calls that were made to LatestVersion. |
| 254 | // Check the length with: |
no outgoing calls