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

Function defaultConfig

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

Source from the content-addressed store, hash-verified

539}
540
541func defaultConfig() *ghmock.ConfigMock {
542 cfg := config.NewMockConfigFromString("")
543 cfg.Set("nonsense.com", "oauth_token", "BLAH")
544 return cfg
545}
546
547// recordingAuthConfig is a gh.AuthConfig that records SetTokenRefresher calls. It embeds the interface so it satisfies
548// 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