(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestMatchesParameters(t *testing.T) { |
| 87 | eng := NewEngine() |
| 88 | |
| 89 | ctx := context.Background() |
| 90 | policy := &engine.Policy{ |
| 91 | Name: "test-policy", |
| 92 | Source: []byte{}, |
| 93 | } |
| 94 | |
| 95 | // Should always return true for WASM policies |
| 96 | matches, err := eng.MatchesParameters(ctx, policy, map[string]string{"key": "value"}, map[string]string{"key": "value"}) |
| 97 | assert.NoError(t, err) |
| 98 | assert.True(t, matches) |
| 99 | } |
| 100 | |
| 101 | func TestMatchesEvaluation(t *testing.T) { |
| 102 | eng := NewEngine() |
nothing calls this directly
no test coverage detected