Install calls InstallFunc.
(interfaceMoqParam ghrepo.Interface, s string)
| 256 | |
| 257 | // Install calls InstallFunc. |
| 258 | func (mock *ExtensionManagerMock) Install(interfaceMoqParam ghrepo.Interface, s string) error { |
| 259 | if mock.InstallFunc == nil { |
| 260 | panic("ExtensionManagerMock.InstallFunc: method is nil but ExtensionManager.Install was just called") |
| 261 | } |
| 262 | callInfo := struct { |
| 263 | InterfaceMoqParam ghrepo.Interface |
| 264 | S string |
| 265 | }{ |
| 266 | InterfaceMoqParam: interfaceMoqParam, |
| 267 | S: s, |
| 268 | } |
| 269 | mock.lockInstall.Lock() |
| 270 | mock.calls.Install = append(mock.calls.Install, callInfo) |
| 271 | mock.lockInstall.Unlock() |
| 272 | return mock.InstallFunc(interfaceMoqParam, s) |
| 273 | } |
| 274 | |
| 275 | // InstallCalls gets all the calls that were made to Install. |
| 276 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected