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

Function TestSetUserSpecificKeyNoUserPresent

internal/config/config_test.go:176–184  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

174}
175
176func TestSetUserSpecificKeyNoUserPresent(t *testing.T) {
177 c := newTestConfig()
178 host := "github.com"
179 key := "host-level-key"
180 val := "host-level-value"
181 c.Set(host, key, val)
182 requireKeyWithValue(t, c.cfg, []string{hostsKey, host, key}, val)
183 requireNoKey(t, c.cfg, []string{hostsKey, host, usersKey})
184}
185
186func TestTelemetry(t *testing.T) {
187 t.Run("returns default when not configured", func(t *testing.T) {

Callers

nothing calls this directly

Calls 4

newTestConfigFunction · 0.85
requireKeyWithValueFunction · 0.70
requireNoKeyFunction · 0.70
SetMethod · 0.65

Tested by

no test coverage detected