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

Function newTestAuthConfig

internal/config/auth_config_test.go:14–17  ·  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

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

Calls 1

NewIsolatedTestConfigFunction · 0.85

Tested by

no test coverage detected