carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package rollout
2
3import "testing"
4
5func TestEnabledOnlyForOverlap(t *testing.T) {
6 for v, want := range map[string]bool{
7 "": false, "overlap": true, " overlap ": true,
8 "hold": false, "OVERLAP": false, "1": false, "true": false,
9 } {
10 if got := Enabled(func(string) string { return v }); got != want {
11 t.Errorf("Enabled(%q) = %v, want %v", v, got, want)
12 }
13 }
14}
15