Adding feature flags

This commit is contained in:
Frederick F. Kautz IV
2015-05-07 12:52:39 -07:00
parent f1dbdbd234
commit d0c4334834
3 changed files with 58 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
package featureflags
import (
"testing"
)
func TestFeatureFlag(t *testing.T) {
foo := Get("foo")
if foo {
t.Fail()
}
Enable("foo")
foo = Get("foo")
if !foo {
t.Fail()
}
Disable("foo")
foo = Get("foo")
if foo {
t.Fail()
}
}