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

Function newTestAuthConfig

internal/config/auth_config_test.go:15–18  ·  view source on GitHub ↗

Note that NewIsolatedTestConfig sets up a Mock keyring as well

(t *testing.T)

Source from the content-addressed store, hash-verified

13
14// Note that NewIsolatedTestConfig sets up a Mock keyring as well
15func newTestAuthConfig(t *testing.T) *AuthConfig {
16 cfg, _ := NewIsolatedTestConfig(t, "")
17 return &AuthConfig{cfg: cfg.cfg}
18}
19
20func TestTokenFromKeyring(t *testing.T) {
21 // Given a keyring that contains a token for a host

Calls 1

NewIsolatedTestConfigFunction · 0.85

Tested by

no test coverage detected