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

Function TestSetHostSpecificKey

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

Source from the content-addressed store, hash-verified

155}
156
157func TestSetHostSpecificKey(t *testing.T) {
158 c := newTestConfig()
159 host := "github.com"
160 key := "host-level-key"
161 val := "host-level-value"
162 c.Set(host, key, val)
163 requireKeyWithValue(t, c.cfg, []string{hostsKey, host, key}, val)
164}
165
166func TestSetUserSpecificKey(t *testing.T) {
167 c := newTestConfig()

Callers

nothing calls this directly

Calls 3

newTestConfigFunction · 0.85
requireKeyWithValueFunction · 0.70
SetMethod · 0.65

Tested by

no test coverage detected