(t *testing.T)
| 80 | } |
| 81 | |
| 82 | func 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 | |
| 89 | func TestIsFeatureEnabledWithData(t *testing.T) { |
| 90 | tests := []struct { |
nothing calls this directly
no test coverage detected