MCPcopy
hub / github.com/expr-lang/expr / TestCheck_operator_in_works_with_interfaces

Function TestCheck_operator_in_works_with_interfaces

checker/checker_test.go:929–938  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

927}
928
929func TestCheck_operator_in_works_with_interfaces(t *testing.T) {
930 tree, err := parser.Parse(`'Tom' in names`)
931 require.NoError(t, err)
932
933 config := conf.New(nil)
934 expr.AllowUndefinedVariables()(config)
935
936 _, err = checker.Check(tree, config)
937 require.NoError(t, err)
938}
939
940func TestCheck_Function_types_are_checked(t *testing.T) {
941 add := expr.Function(

Callers

nothing calls this directly

Calls 5

ParseFunction · 0.92
NoErrorFunction · 0.92
NewFunction · 0.92
AllowUndefinedVariablesFunction · 0.92
CheckFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…