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

Function TestFormatString

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

Source from the content-addressed store, hash-verified

52}
53
54func TestFormatString(t *testing.T) {
55 result, err := FormatString("SELECT 1")
56 if err != nil {
57 t.Fatalf("FormatString() error = %v", err)
58 }
59 if result == "" {
60 t.Error("FormatString() returned empty")
61 }
62}
63
64func TestNew_DefaultIndent(t *testing.T) {
65 f := New(Options{})

Callers

nothing calls this directly

Calls 3

FormatStringFunction · 0.85
FatalfMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected