(t *testing.T)
| 201 | } |
| 202 | |
| 203 | func TestIsFeatureEnabledWithDataNilWorkflow(t *testing.T) { |
| 204 | // Set environment variable |
| 205 | t.Setenv("GH_AW_FEATURES", "firewall") |
| 206 | |
| 207 | // When workflowData is nil, should fall back to env |
| 208 | result := isFeatureEnabled(constants.FeatureFlag("firewall"), nil) |
| 209 | if result != true { |
| 210 | t.Errorf("isFeatureEnabled(\"firewall\", nil) with env=firewall = %v, want true", result) |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | // TestMergedFeaturesAreUsedByIsFeatureEnabled verifies that features merged from imports |
| 215 | // are accessible via isFeatureEnabled function |
nothing calls this directly
no test coverage detected