MCPcopy Index your code
hub / github.com/jetify-com/devbox / TestEnabledFeatureEnv

Function TestEnabledFeatureEnv

internal/boxcli/featureflag/feature_test.go:26–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24}
25
26func TestEnabledFeatureEnv(t *testing.T) {
27 name := "TestEnabledFeatureEnv"
28 disable(name)
29 t.Setenv(envNamePrefix+name, "1")
30 if !features[name].Enabled() {
31 t.Errorf("got %s.Enabled() = false, want true.", name)
32 }
33}
34
35func TestNonExistentFeature(t *testing.T) {
36 name := "TestNonExistentFeature"

Callers

nothing calls this directly

Calls 2

disableFunction · 0.85
EnabledMethod · 0.80

Tested by

no test coverage detected