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

Function requireKeyWithValue

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

Source from the content-addressed store, hash-verified

686}
687
688func requireKeyWithValue(t *testing.T, cfg *ghConfig.Config, keys []string, value string) {
689 t.Helper()
690
691 actual, err := cfg.Get(keys)
692 require.NoError(t, err)
693
694 require.Equal(t, value, actual)
695}
696
697func requireNoKey(t *testing.T, cfg *ghConfig.Config, keys []string) {
698 t.Helper()

Calls 3

EqualMethod · 0.80
HelperMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected