Do calls DoFunc.
(config *ghConfig.Config)
| 65 | |
| 66 | // Do calls DoFunc. |
| 67 | func (mock *MigrationMock) Do(config *ghConfig.Config) error { |
| 68 | if mock.DoFunc == nil { |
| 69 | panic("MigrationMock.DoFunc: method is nil but Migration.Do was just called") |
| 70 | } |
| 71 | callInfo := struct { |
| 72 | Config *ghConfig.Config |
| 73 | }{ |
| 74 | Config: config, |
| 75 | } |
| 76 | mock.lockDo.Lock() |
| 77 | mock.calls.Do = append(mock.calls.Do, callInfo) |
| 78 | mock.lockDo.Unlock() |
| 79 | return mock.DoFunc(config) |
| 80 | } |
| 81 | |
| 82 | // DoCalls gets all the calls that were made to Do. |
| 83 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected