MCPcopy
hub / github.com/cli/cli / requireKeyWithValue

Function requireKeyWithValue

internal/config/migration/multi_account_test.go:234–241  ·  view source on GitHub ↗
(t *testing.T, cfg *config.Config, keys []string, value string)

Source from the content-addressed store, hash-verified

232}
233
234func requireKeyWithValue(t *testing.T, cfg *config.Config, keys []string, value string) {
235 t.Helper()
236
237 actual, err := cfg.Get(keys)
238 require.NoError(t, err)
239
240 require.Equal(t, value, actual)
241}
242
243func requireNoKey(t *testing.T, cfg *config.Config, keys []string) {
244 t.Helper()

Calls 3

EqualMethod · 0.80
HelperMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected