(t *testing.T)
| 927 | } |
| 928 | |
| 929 | func 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 | |
| 940 | func TestCheck_Function_types_are_checked(t *testing.T) { |
| 941 | add := expr.Function( |
nothing calls this directly
no test coverage detected
searching dependent graphs…