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

Function TestFormatStatement_NilStatement

pkg/formatter/render_test.go:1067–1072  ·  view source on GitHub ↗

─── NilStatement fallback ───────────────────────────────────────────────────

(t *testing.T)

Source from the content-addressed store, hash-verified

1065// ─── NilStatement fallback ───────────────────────────────────────────────────
1066
1067func TestFormatStatement_NilStatement(t *testing.T) {
1068 result := formatter.FormatStatement(nil, ast.CompactStyle())
1069 if result != "" {
1070 t.Error("nil statement should return empty string")
1071 }
1072}
1073
1074// ─── keyword case ─────────────────────────────────────────────────────────────
1075

Callers

nothing calls this directly

Calls 3

FormatStatementFunction · 0.92
CompactStyleFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected