minio/pkg/featureflags/featureflag_test.go

23 lines
243 B
Go
Raw Normal View History

2015-05-07 15:52:39 -04:00
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()
}
}