MCPcopy Index your code
hub / github.com/cli/cli / mockMigration

Function mockMigration

internal/config/migrate_test.go:232–243  ·  view source on GitHub ↗
(doFunc func(config *ghConfig.Config) error)

Source from the content-addressed store, hash-verified

230}
231
232func 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
245func testFullConfig() string {
246 var data = `

Calls

no outgoing calls

Tested by

no test coverage detected