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

Function requireNoKey

internal/config/auth_config_test.go:695–701  ·  view source on GitHub ↗
(t *testing.T, cfg *ghConfig.Config, keys []string)

Source from the content-addressed store, hash-verified

693}
694
695func requireNoKey(t *testing.T, cfg *ghConfig.Config, keys []string) {
696 t.Helper()
697
698 _, err := cfg.Get(keys)
699 var keyNotFoundError *ghConfig.KeyNotFoundError
700 require.ErrorAs(t, err, &keyNotFoundError)
701}
702
703// Post migration tests
704

Calls 2

HelperMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected