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 RunExpressionTests(t *testing.T, d bob.Dialect, cases ExpressionTestcases)
- func RunTests(t *testing.T, cases Testcases, format FormatFunc)
- type ExpressionTestcase
- type ExpressionTestcases
- type FormatFunc
- type Testcase
- type Testcases
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunExpressionTests ¶
func RunExpressionTests(t *testing.T, d bob.Dialect, cases ExpressionTestcases)
Types ¶
type ExpressionTestcase ¶
type ExpressionTestcase struct { Expression bob.Expression ExpectedSQL string ExpectedArgs []any ExpectedError error Doc string }
Also used to generate documentation
type ExpressionTestcases ¶
type ExpressionTestcases map[string]ExpressionTestcase
type FormatFunc ¶ added in v0.15.0
Click to show internal directories.
Click to hide internal directories.