Remove deadcode

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-13 16:50:35 +01:00
parent 7fd4221199
commit ef76a8d2e1
76 changed files with 137 additions and 4424 deletions

View File

@@ -299,15 +299,12 @@ func TestConditionHelpers(t *testing.T) {
}
})
t.Run("In helper", func(t *testing.T) {
c := In("principal.role", "admin", "owner")
if c.Operator != ConditionIn {
t.Errorf("Expected ConditionIn, got %v", c.Operator)
t.Run("NotIn condition", func(t *testing.T) {
c := Condition{
Operator: ConditionNotIn,
Key: "principal.role",
Values: []string{"guest"},
}
})
t.Run("NotIn helper", func(t *testing.T) {
c := NotIn("principal.role", "guest")
if c.Operator != ConditionNotIn {
t.Errorf("Expected ConditionNotIn, got %v", c.Operator)
}