Remove calls RemoveFunc.
(name string)
| 351 | |
| 352 | // Remove calls RemoveFunc. |
| 353 | func (mock *ExtensionManagerMock) Remove(name string) error { |
| 354 | if mock.RemoveFunc == nil { |
| 355 | panic("ExtensionManagerMock.RemoveFunc: method is nil but ExtensionManager.Remove was just called") |
| 356 | } |
| 357 | callInfo := struct { |
| 358 | Name string |
| 359 | }{ |
| 360 | Name: name, |
| 361 | } |
| 362 | mock.lockRemove.Lock() |
| 363 | mock.calls.Remove = append(mock.calls.Remove, callInfo) |
| 364 | mock.lockRemove.Unlock() |
| 365 | return mock.RemoveFunc(name) |
| 366 | } |
| 367 | |
| 368 | // RemoveCalls gets all the calls that were made to Remove. |
| 369 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected