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

Function requireNoKey

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

Source from the content-addressed store, hash-verified

677}
678
679func requireNoKey(t *testing.T, cfg *ghConfig.Config, keys []string) {
680 t.Helper()
681
682 _, err := cfg.Get(keys)
683 var keyNotFoundError *ghConfig.KeyNotFoundError
684 require.ErrorAs(t, err, &keyNotFoundError)
685}
686
687// Post migration tests
688

Calls 2

HelperMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected