MCPcopy Create free account
hub / github.com/github/gh-aw / TestIsFeatureEnabledNoEnv

Function TestIsFeatureEnabledNoEnv

pkg/workflow/features_test.go:82–87  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

80}
81
82func TestIsFeatureEnabledNoEnv(t *testing.T) {
83 result := isFeatureEnabled(constants.FeatureFlag("firewall"), nil)
84 if result != false {
85 t.Errorf("isFeatureEnabled(\"firewall\", nil) with no env = %v, want false", result)
86 }
87}
88
89func TestIsFeatureEnabledWithData(t *testing.T) {
90 tests := []struct {

Callers

nothing calls this directly

Calls 3

FeatureFlagTypeAlias · 0.92
isFeatureEnabledFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected