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

Function TestFormatAST_Nil

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

Source from the content-addressed store, hash-verified

1056}
1057
1058func TestFormatAST_Nil(t *testing.T) {
1059 result := formatter.FormatAST(nil, ast.CompactStyle())
1060 if result != "" {
1061 t.Errorf("nil AST should return empty string, got: %q", result)
1062 }
1063}
1064
1065// ─── NilStatement fallback ───────────────────────────────────────────────────
1066

Callers

nothing calls this directly

Calls 3

FormatASTFunction · 0.92
CompactStyleFunction · 0.92
ErrorfMethod · 0.65

Tested by

no test coverage detected