minio/pkg/featureflags/featureflag_test.go
Frederick F. Kautz IV d0c4334834 Adding feature flags
2015-05-07 13:56:54 -07:00

23 lines
243 B
Go

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()
}
}