MCPcopy
hub / github.com/cli/cli / requireKeyExists

Function requireKeyExists

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

Source from the content-addressed store, hash-verified

225}
226
227func requireKeyExists(t *testing.T, cfg *config.Config, keys []string) {
228 t.Helper()
229
230 _, err := cfg.Get(keys)
231 require.NoError(t, err)
232}
233
234func requireKeyWithValue(t *testing.T, cfg *config.Config, keys []string, value string) {
235 t.Helper()

Callers 1

Calls 2

HelperMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected