Versions in this module Expand all Collapse all v0 v0.42.5 Jan 27, 2026 v0.42.4 Jan 27, 2026 Changes in this version + 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 RunExpressionTests(t *testing.T, d bob.Dialect, cases ExpressionTestcases) + func RunTests(t *testing.T, cases Testcases, format FormatFunc) + type ExpressionTestcase struct + Doc string + ExpectedArgs []any + ExpectedError error + ExpectedSQL string + Expression bob.Expression + type ExpressionTestcases map[string]ExpressionTestcase + type FormatFunc = func(string) (string, error) + type NoopExecutor struct + func (n NoopExecutor) ExecContext(_ context.Context, _ string, _ ...any) (sql.Result, error) + func (n NoopExecutor) QueryContext(ctx context.Context, query string, args ...any) (scan.Rows, error) + type Testcase struct + Doc string + ExpectedArgs []any + ExpectedSQL string + Query bob.Query + type Testcases map[string]Testcase