(t *testing.T)
| 14 | ) |
| 15 | |
| 16 | func TestFindIncludes(t *testing.T) { |
| 17 | f := rel.MustParseFilter(` |
| 18 | FILTER AND ( |
| 19 | name == "Yoda" |
| 20 | INCLUDE yoda_sword |
| 21 | NOT EXISTS email |
| 22 | X between 4 and 5 |
| 23 | OR ( |
| 24 | INCLUDE return_of_the_jedi |
| 25 | ) |
| 26 | "x" in (4,5,Z) |
| 27 | email(email_name) |
| 28 | ) |
| 29 | ALIAS yoda; |
| 30 | `) |
| 31 | assert.Equal(t, []string{"yoda_sword", "return_of_the_jedi"}, expr.FindIncludes(f.Filter)) |
| 32 | } |
| 33 | |
| 34 | type includectx struct { |
| 35 | expr.ContextReader |
nothing calls this directly
no test coverage detected