MCPcopy Create free account
hub / github.com/araddon/qlbridge / TestFindIncludes

Function TestFindIncludes

expr/include_test.go:16–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14)
15
16func 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
34type includectx struct {
35 expr.ContextReader

Callers

nothing calls this directly

Calls 3

MustParseFilterFunction · 0.92
FindIncludesFunction · 0.92
EqualMethod · 0.65

Tested by

no test coverage detected