MCPcopy Create free account
hub / github.com/conforma/cli / NoColorOutput

Function NoColorOutput

acceptance/testenv/testenv.go:221–225  ·  view source on GitHub ↗

NoColorOutput returns true if the output produced should not contain colors, which is useful when a terminal or medium can't interpret ANSI colors

(ctx context.Context)

Source from the content-addressed store, hash-verified

219// NoColorOutput returns true if the output produced should not contain colors, which is
220// useful when a terminal or medium can't interpret ANSI colors
221func NoColorOutput(ctx context.Context) bool {
222 noColors, ok := ctx.Value(NoColors).(bool)
223
224 return ok && noColors
225}
226
227func Testing(ctx context.Context) *testing.T {
228 return ctx.Value(TestingT).(*testing.T)

Callers 5

runConftestFunction · 0.92
logTaskOutputFunction · 0.92
logExecutionFunction · 0.92
Test_ColorFlagFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_ColorFlagFunction · 0.68