(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func TestOperator_no_env(t *testing.T) { |
| 31 | code := `Time == "2017-10-23"` |
| 32 | require.Panics(t, func() { |
| 33 | _, _ = expr.Compile(code, expr.Operator("==", "TimeEqualString")) |
| 34 | }) |
| 35 | } |
| 36 | |
| 37 | func TestOperator_interface(t *testing.T) { |
| 38 | env := mock.Env{} |