mirror of
https://github.com/minio/minio.git
synced 2026-11-11 02:34:02 +00:00
Adding feature flags
This commit is contained in:
1 parent
f1dbdbd234
commit
d0c4334834
3 files changed
+58
No files matched your search
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user