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

Function requireKeyWithValue

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

Source from the content-addressed store, hash-verified

668}
669
670func requireKeyWithValue(t *testing.T, cfg *ghConfig.Config, keys []string, value string) {
671 t.Helper()
672
673 actual, err := cfg.Get(keys)
674 require.NoError(t, err)
675
676 require.Equal(t, value, actual)
677}
678
679func requireNoKey(t *testing.T, cfg *ghConfig.Config, keys []string) {
680 t.Helper()

Calls 3

EqualMethod · 0.80
HelperMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected