PostVersion calls PostVersionFunc.
()
| 97 | |
| 98 | // PostVersion calls PostVersionFunc. |
| 99 | func (mock *MigrationMock) PostVersion() string { |
| 100 | if mock.PostVersionFunc == nil { |
| 101 | panic("MigrationMock.PostVersionFunc: method is nil but Migration.PostVersion was just called") |
| 102 | } |
| 103 | callInfo := struct { |
| 104 | }{} |
| 105 | mock.lockPostVersion.Lock() |
| 106 | mock.calls.PostVersion = append(mock.calls.PostVersion, callInfo) |
| 107 | mock.lockPostVersion.Unlock() |
| 108 | return mock.PostVersionFunc() |
| 109 | } |
| 110 | |
| 111 | // PostVersionCalls gets all the calls that were made to PostVersion. |
| 112 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected