MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestRenderIn_Not

Function TestRenderIn_Not

pkg/formatter/render_test.go:952–962  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

950}
951
952func 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
964func TestRenderIn_Subquery(t *testing.T) {
965 expr := &ast.InExpression{

Callers

nothing calls this directly

Calls 3

ReadableStyleFunction · 0.92
fmtExprFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected