Versions in this module Expand all Collapse all v2 v2.2.3 Apr 15, 2025 v2.2.2 Apr 15, 2025 Changes in this version + var UnixTimeComparer = cmp.Comparer(func(t1, t2 time.Time) bool { ... }) + func AssertClauseSerialize(t *testing.T, dialect jet.Dialect, clause jet.Clause, query string, ...) + func AssertDebugSerialize(t *testing.T, dialect jet.Dialect, clause jet.Serializer, query string, ...) + func AssertDebugStatementSql(t *testing.T, query jet.PrintableStatement, expectedQuery string, ...) + func AssertDeepEqual(t *testing.T, actual, expected interface{}, option ...cmp.Option) + func AssertExec(t *testing.T, stmt jet.Statement, db qrm.DB, rowsAffected ...int64) + func AssertExecAndRollback(t *testing.T, stmt jet.Statement, db *stmtcache.DB, rowsAffected ...int64) + func AssertExecContext(t *testing.T, stmt jet.Statement, ctx context.Context, db qrm.DB, ...) + func AssertExecContextErr(ctx context.Context, t *testing.T, stmt jet.Statement, db qrm.DB, ...) + func AssertExecErr(t *testing.T, stmt jet.Statement, db qrm.DB, errorStr string) + func AssertFileContent(t *testing.T, filePath string, expectedContent string) + func AssertFileNamesEqual(t *testing.T, dirPath string, fileNames ...string) + func AssertJSON(t *testing.T, data interface{}, expectedJSON string) + func AssertJSONFile(t *testing.T, data interface{}, testRelativePath string) + func AssertPanicErr(t *testing.T, fun func(), errorStr string) + func AssertProjectionSerialize(t *testing.T, dialect jet.Dialect, projection jet.Projection, query string, ...) + func AssertQueryPanicErr(t *testing.T, stmt jet.Statement, db qrm.DB, dest interface{}, ...) + func AssertSerialize(t *testing.T, dialect jet.Dialect, serializer jet.Serializer, query string, ...) + func AssertSerializeErr(t *testing.T, dialect jet.Dialect, clause jet.Serializer, errString string) + func AssertStatementSql(t *testing.T, query jet.PrintableStatement, expectedQuery string, ...) + func AssertStatementSqlErr(t *testing.T, stmt jet.Statement, errorStr string) + func Date(t string) *time.Time + func ExecuteInTxAndRollback(t *testing.T, db *stmtcache.DB, f func(tx qrm.DB)) + func PrintJson(v interface{}) + func SaveJSONFile(v interface{}, testRelativePath string) + func TimeWithTimeZone(t string) *time.Time + func TimeWithoutTimeZone(t string) *time.Time + func TimestampWithTimeZone(t string, precision int) *time.Time + func TimestampWithoutTimeZone(t string, precision int) *time.Time + func ToJSON(v interface{}) string + func UUIDPtr(u string) *uuid.UUID