(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func 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 | } |
nothing calls this directly
no test coverage detected