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

Function TestSetUserSpecificKeyNoUserPresent

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

Source from the content-addressed store, hash-verified

177}
178
179func TestSetUserSpecificKeyNoUserPresent(t *testing.T) {
180 c := newTestConfig()
181 host := "github.com"
182 key := "host-level-key"
183 val := "host-level-value"
184 c.Set(host, key, val)
185 requireKeyWithValue(t, c.cfg, []string{hostsKey, host, key}, val)
186 requireNoKey(t, c.cfg, []string{hostsKey, host, usersKey})
187}
188
189func TestTelemetry(t *testing.T) {
190 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