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

Function TestFormat_CompactOutput

pkg/formatter/formatter_test.go:85–94  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

83}
84
85func TestFormat_CompactOutput(t *testing.T) {
86 f := New(Options{Compact: true})
87 result, err := f.Format("SELECT id, name FROM users WHERE id = 1")
88 if err != nil {
89 t.Fatalf("Format() error = %v", err)
90 }
91 if strings.Contains(result, "\n") {
92 t.Errorf("Compact mode should not contain newlines, got: %s", result)
93 }
94}

Callers

nothing calls this directly

Calls 4

NewFunction · 0.70
FatalfMethod · 0.65
ErrorfMethod · 0.65
FormatMethod · 0.45

Tested by

no test coverage detected