MCPcopy Create free account
hub / github.com/cli/cli / defaultConfig

Function defaultConfig

pkg/cmd/factory/default_test.go:480–484  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

478}
479
480func defaultConfig() *ghmock.ConfigMock {
481 cfg := config.NewMockConfigFromString("")
482 cfg.Set("nonsense.com", "oauth_token", "BLAH")
483 return cfg
484}
485
486// recordingAuthConfig is a gh.AuthConfig that records SetTokenRefresher calls. It embeds the interface so it satisfies
487// gh.AuthConfig without implementing every method; only SetTokenRefresher is exercised by these tests.

Callers 2

Test_OverrideBaseRepoFunction · 0.85
TestNewGitClientFunction · 0.85

Calls 2

NewMockConfigFromStringFunction · 0.92
SetMethod · 0.65

Tested by

no test coverage detected