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

Function TestConfigIgnoresEnvironment

internal/debug/config_disabled_test.go:12–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestConfigIgnoresEnvironment(t *testing.T) {
13 for _, value := range []string{"1", "invalid"} {
14 t.Run(value, func(t *testing.T) {
15 t.Setenv("GH_INTERNAL_AT_EXPIRES_IN", value)
16 t.Setenv("GH_INTERNAL_RT_EXPIRES_IN", value)
17 t.Setenv("GH_INTERNAL_DEBUG_REFRESH_TOKEN", value)
18
19 assert.Equal(t, debug.DebugConfig{}, debug.Config())
20 })
21 }
22}

Callers

nothing calls this directly

Calls 3

ConfigFunction · 0.92
EqualMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected