(t *testing.T)
| 268 | } |
| 269 | |
| 270 | func 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 | |
| 280 | func TestInitializingState(t *testing.T) { |
| 281 | var i *initializing |
nothing calls this directly
no test coverage detected