get.porter.sh/porter@v1.3.0/pkg/manifest/actions_test.go (about) 1 package manifest 2 3 import "testing" 4 5 func TestIsCoreAction(t *testing.T) { 6 testcases := map[string]bool{ 7 "install": true, 8 "upgrade": true, 9 "uninstall": true, 10 "status": false, 11 "INSTALL": false, 12 } 13 14 for action, want := range testcases { 15 t.Run(action, func(t *testing.T) { 16 got := IsCoreAction(action) 17 if want != got { 18 t.Fatalf("IsCoreAction(%q) failed, want %t, got %t", action, want, got) 19 } 20 }) 21 } 22 }