UpdateDir calls UpdateDirFunc.
(name string)
| 383 | |
| 384 | // UpdateDir calls UpdateDirFunc. |
| 385 | func (mock *ExtensionManagerMock) UpdateDir(name string) string { |
| 386 | if mock.UpdateDirFunc == nil { |
| 387 | panic("ExtensionManagerMock.UpdateDirFunc: method is nil but ExtensionManager.UpdateDir was just called") |
| 388 | } |
| 389 | callInfo := struct { |
| 390 | Name string |
| 391 | }{ |
| 392 | Name: name, |
| 393 | } |
| 394 | mock.lockUpdateDir.Lock() |
| 395 | mock.calls.UpdateDir = append(mock.calls.UpdateDir, callInfo) |
| 396 | mock.lockUpdateDir.Unlock() |
| 397 | return mock.UpdateDirFunc(name) |
| 398 | } |
| 399 | |
| 400 | // UpdateDirCalls gets all the calls that were made to UpdateDir. |
| 401 | // Check the length with: |
no outgoing calls