(doFunc func(config *ghConfig.Config) error)
| 230 | } |
| 231 | |
| 232 | func mockMigration(doFunc func(config *ghConfig.Config) error) *ghmock.MigrationMock { |
| 233 | return &ghmock.MigrationMock{ |
| 234 | DoFunc: doFunc, |
| 235 | PreVersionFunc: func() string { |
| 236 | return "" |
| 237 | }, |
| 238 | PostVersionFunc: func() string { |
| 239 | return "not-expected" |
| 240 | }, |
| 241 | } |
| 242 | |
| 243 | } |
| 244 | |
| 245 | func testFullConfig() string { |
| 246 | var data = ` |
no outgoing calls
no test coverage detected