PreVersion calls PreVersionFunc.
()
| 124 | |
| 125 | // PreVersion calls PreVersionFunc. |
| 126 | func (mock *MigrationMock) PreVersion() string { |
| 127 | if mock.PreVersionFunc == nil { |
| 128 | panic("MigrationMock.PreVersionFunc: method is nil but Migration.PreVersion was just called") |
| 129 | } |
| 130 | callInfo := struct { |
| 131 | }{} |
| 132 | mock.lockPreVersion.Lock() |
| 133 | mock.calls.PreVersion = append(mock.calls.PreVersion, callInfo) |
| 134 | mock.lockPreVersion.Unlock() |
| 135 | return mock.PreVersionFunc() |
| 136 | } |
| 137 | |
| 138 | // PreVersionCalls gets all the calls that were made to PreVersion. |
| 139 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected