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

Function requireNoKey

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

Source from the content-addressed store, hash-verified

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

Calls 2

HelperMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected