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

Function TestSetHostSpecificKey

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

newTestConfigFunction · 0.85
requireKeyWithValueFunction · 0.70
SetMethod · 0.65

Tested by

no test coverage detected