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

Function requireNoKey

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

Source from the content-addressed store, hash-verified

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

Calls 2

HelperMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected