func TestColor(t *testing.T) {

	// mock a config
	conf := Config{}

	opts := map[string]interface{}{"--colorize": false}
	if conf.Color(opts) {
		t.Errorf("failed to respect --colorize (false)")
	}

	opts = map[string]interface{}{"--colorize": true}
	if !conf.Color(opts) {
		t.Errorf("failed to respect --colorize (true)")
	}
}
// TestColor asserts that colorization rules are properly respected
TestColor asserts that colorization rules are properly respected
// TestColor asserts that colorization rules are properly respected
func TestColor(t *testing.T) {
	conf := Config{}
	opts := map[string]interface{}{"--colorize": false}
	if conf.Color(opts) {
		t.Errorf("failed to respect --colorize (false)")
	}
	opts = map[string]interface{}{"--colorize": true}
	if !conf.Color(opts) {
		t.Errorf("failed to respect --colorize (true)")
	}
}
func TestColor ( t * testing . T ) { conf := Config { } opts := map [ string ] interface { } { " " : false } if conf . Color ( opts ) { t . Errorf ( " " ) } opts = map [ string ] interface { } { " " : true } if ! conf . Color ( opts ) { t . Errorf ( " " ) } }
TestColor asserts that colorization rules are properly respected
TestColor asserts that colorization rules are properly respected
// mock a config