Documentation ¶
Index ¶
- func ArgsDiff(a, b []any) string
- func Clean(s string) string
- func ErrDiff(a, b error) string
- func QueryDiff(a, b string) string
- func RunExpressionTests(t *testing.T, d bob.Dialect, cases ExpressionTestcases)
- func RunTests(t *testing.T, cases Testcases)
- type ExpressionTestcase
- type ExpressionTestcases
- 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
Click to show internal directories.
Click to hide internal directories.