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

Function TestSetTopLevelKey

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

Source from the content-addressed store, hash-verified

146}
147
148func TestSetTopLevelKey(t *testing.T) {
149 c := newTestConfig()
150 host := ""
151 key := "top-level-key"
152 val := "top-level-value"
153 c.Set(host, key, val)
154 requireKeyWithValue(t, c.cfg, []string{key}, val)
155}
156
157func TestSetHostSpecificKey(t *testing.T) {
158 c := newTestConfig()

Callers

nothing calls this directly

Calls 3

newTestConfigFunction · 0.85
requireKeyWithValueFunction · 0.70
SetMethod · 0.65

Tested by

no test coverage detected