mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 04:00:25 +03:00
Adding feature flags
This commit is contained in:
@@ -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