MCPcopy Create free account
hub / github.com/AfterShip/clickhouse-sql-parser / TestFormatter_ChainedMethods

Function TestFormatter_ChainedMethods

parser/format_test.go:23–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestFormatter_ChainedMethods(t *testing.T) {
24 // Test that methods can be chained together
25 formatter := NewFormatter().WithBeautify().WithIndent("\t")
26 require.NotNil(t, formatter)
27 require.Equal(t, FormatModeBeautify, formatter.mode)
28 require.Equal(t, "\t", formatter.indent)
29}
30
31func TestFormatter_WithIndent_CustomIndentation(t *testing.T) {
32 // Test actual formatting with custom indent using parsed SQL

Callers

nothing calls this directly

Calls 3

NewFormatterFunction · 0.85
WithIndentMethod · 0.80
WithBeautifyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…