CurrentVersion calls CurrentVersionFunc.
()
| 131 | |
| 132 | // CurrentVersion calls CurrentVersionFunc. |
| 133 | func (mock *ExtensionMock) CurrentVersion() string { |
| 134 | if mock.CurrentVersionFunc == nil { |
| 135 | panic("ExtensionMock.CurrentVersionFunc: method is nil but Extension.CurrentVersion was just called") |
| 136 | } |
| 137 | callInfo := struct { |
| 138 | }{} |
| 139 | mock.lockCurrentVersion.Lock() |
| 140 | mock.calls.CurrentVersion = append(mock.calls.CurrentVersion, callInfo) |
| 141 | mock.lockCurrentVersion.Unlock() |
| 142 | return mock.CurrentVersionFunc() |
| 143 | } |
| 144 | |
| 145 | // CurrentVersionCalls gets all the calls that were made to CurrentVersion. |
| 146 | // Check the length with: |
no outgoing calls