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

Function requireKeyWithValue

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

Source from the content-addressed store, hash-verified

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

Calls 3

EqualMethod · 0.80
HelperMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected