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

Function TestSetTopLevelKey

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

newTestConfigFunction · 0.85
requireKeyWithValueFunction · 0.70
SetMethod · 0.65

Tested by

no test coverage detected