package rollout import "testing" func TestEnabledOnlyForOverlap(t *testing.T) { for v, want := range map[string]bool{ "": false, "overlap": true, " overlap ": true, "hold": false, "OVERLAP": false, "1": false, "true": false, } { if got := Enabled(func(string) string { return v }); got != want { t.Errorf("Enabled(%q) = %v, want %v", v, got, want) } } }