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

Function TestRenderBetween_Not

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

Source from the content-addressed store, hash-verified

916}
917
918func TestRenderBetween_Not(t *testing.T) {
919 expr := &ast.BetweenExpression{
920 Expr: &ast.Identifier{Name: "age"},
921 Lower: &ast.LiteralValue{Value: "18"},
922 Upper: &ast.LiteralValue{Value: "65"},
923 Not: true,
924 }
925 result := fmtExpr(expr, ast.ReadableStyle())
926 if !strings.Contains(result, "NOT BETWEEN") {
927 t.Errorf("expected NOT BETWEEN in: %s", result)
928 }
929}
930
931func TestRenderBetween_Nil(t *testing.T) {
932 var expr *ast.BetweenExpression

Callers

nothing calls this directly

Calls 3

ReadableStyleFunction · 0.92
fmtExprFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected