MCPcopy Create free account
hub / github.com/auth0/auth0-cli / TestShouldUseColors

Function TestShouldUseColors

internal/ansi/ansi_test.go:9–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestShouldUseColors(t *testing.T) {
10 t.Setenv("CLICOLOR_FORCE", "true")
11 assert.True(t, shouldUseColors())
12
13 t.Setenv("CLICOLOR_FORCE", "0")
14 assert.False(t, shouldUseColors())
15
16 t.Setenv("CLICOLOR", "0")
17 assert.False(t, shouldUseColors())
18}

Callers

nothing calls this directly

Calls 1

shouldUseColorsFunction · 0.85

Tested by

no test coverage detected