(t *testing.T)
| 950 | } |
| 951 | |
| 952 | func TestRenderIn_Not(t *testing.T) { |
| 953 | expr := &ast.InExpression{ |
| 954 | Expr: &ast.Identifier{Name: "id"}, |
| 955 | List: []ast.Expression{&ast.LiteralValue{Value: "1"}}, |
| 956 | Not: true, |
| 957 | } |
| 958 | result := fmtExpr(expr, ast.ReadableStyle()) |
| 959 | if !strings.Contains(result, "NOT IN") { |
| 960 | t.Errorf("expected NOT IN in: %s", result) |
| 961 | } |
| 962 | } |
| 963 | |
| 964 | func TestRenderIn_Subquery(t *testing.T) { |
| 965 | expr := &ast.InExpression{ |
nothing calls this directly
no test coverage detected