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

Function requireKeyWithValue

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

Source from the content-addressed store, hash-verified

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

Calls 3

EqualMethod · 0.80
HelperMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected