Documentation ¶ Index ¶ func ArgsDiff(a, b []any) string func Clean(s string) string func ErrDiff(a, b error) string func QueryDiff(a, b string, clean FormatFunc) (string, error) func RunTests(t *testing.T, cases Testcases, format FormatFunc) type FormatFunc type Testcase type Testcases Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ArgsDiff ¶ func ArgsDiff(a, b []any) string func Clean ¶ func Clean(s string) string func ErrDiff ¶ func ErrDiff(a, b error) string func QueryDiff ¶ func QueryDiff(a, b string, clean FormatFunc) (string, error) func RunTests ¶ func RunTests(t *testing.T, cases Testcases, format FormatFunc) Types ¶ type FormatFunc ¶ type FormatFunc = func(string) (string, error) type Testcase ¶ type Testcase struct { ExpectedSQL string Doc string Query string ExpectedArgs []any } Also used to generate documentation type Testcases ¶ type Testcases map[string]Testcase Source Files ¶ View all Source files utils.go Click to show internal directories. Click to hide internal directories.