INNER CODE UNIT · Go

TestValidateUnittestColorFlags

helm-unittest/helm-unittest · cmd/helm-unittest/helm_unittest_test.go:37

func TestValidateUnittestColorFlags(t *testing.T) {
	a := assert.New(t)

	colorFlags := map[string]bool{
		"":               false,
		"--color":        true,
		"--color=true":   true,
		"--color=false":  false,
		"--color=always": true,
		"--color=never":  false,
		"--color=auto":   false,
	}

	for colorFlag, colorValue := range colorFlags {
		cmd := setupTestCmd()

		// Setup actual parameter
		if len(colorFlag) > 0 {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…