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

Function TestEnabledFeature

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

Source from the content-addressed store, hash-verified

8)
9
10func TestEnabledFeature(t *testing.T) {
11 name := "TestEnabledFeature"
12 enable(name)
13 if !features[name].Enabled() {
14 t.Errorf("got %s.Enabled() = false, want true.", name)
15 }
16}
17
18func TestDisabledFeature(t *testing.T) {
19 name := "TestDisabledFeature"

Callers

nothing calls this directly

Calls 2

enableFunction · 0.85
EnabledMethod · 0.80

Tested by

no test coverage detected