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

Function Test_ColorFlag

acceptance/testenv/testenv_test.go:270–278  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

268}
269
270func Test_ColorFlag(t *testing.T) {
271 assert.False(t, NoColorOutput(context.TODO()))
272
273 ctx := context.WithValue(context.TODO(), NoColors, false)
274 assert.False(t, NoColorOutput(ctx))
275
276 ctx = context.WithValue(context.TODO(), NoColors, true)
277 assert.True(t, NoColorOutput(ctx))
278}
279
280func TestInitializingState(t *testing.T) {
281 var i *initializing

Callers

nothing calls this directly

Calls 1

NoColorOutputFunction · 0.85

Tested by

no test coverage detected