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

Function TestDisabledFeature

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

Source from the content-addressed store, hash-verified

16}
17
18func TestDisabledFeature(t *testing.T) {
19 name := "TestDisabledFeature"
20 disable(name)
21 if features[name].Enabled() {
22 t.Errorf("got %s.Enabled() = true, want false.", name)
23 }
24}
25
26func TestEnabledFeatureEnv(t *testing.T) {
27 name := "TestEnabledFeatureEnv"

Callers

nothing calls this directly

Calls 2

disableFunction · 0.85
EnabledMethod · 0.80

Tested by

no test coverage detected