package
2.12.0
Repository: https://github.com/go-jet/jet.git
Documentation: pkg.go.dev

# Functions

AssertClauseSerialize checks if clause serialize produces expected query and args.
AssertDebugSerialize checks if clause serialize produces expected debug query and args.
AssertDebugStatementSql check if statement Sql() is the same as expectedQuery.
AssertDeepEqual checks if actual and expected objects are deeply equal.
AssertExec assert statement execution for successful execution and number of rows affected.
AssertExecAndRollback will execute and rollback statement in sql transaction.
AssertExecContext assert statement execution for successful execution and number of rows affected.
AssertExecContextErr assert statement execution for failed execution with error string errorStr.
AssertExecErr assert statement execution for failed execution with error string errorStr.
AssertFileContent check if file content at filePath contains expectedContent text.
AssertFileNamesEqual check if all filesInfos are contained in fileNames.
AssertJSON check if data json output is the same as expectedJSON.
AssertJSONFile check if data json representation is the same as json at testRelativePath.
AssertPanicErr checks if running a function fun produces a panic with errorStr string.
AssertProjectionSerialize check if projection serialize produces expected query and args.
AssertQueryPanicErr check if statement Query execution panics with error errString.
AssertSerialize checks if clause serialize produces expected query and args.
AssertSerializeErr check if clause serialize panics with errString.
AssertStatementSql check if statement Sql() is the same as expectedQuery and expectedArgs.
AssertStatementSqlErr checks if statement Sql() panics with errorStr.
Date creates time from t string.
ExecuteInTxAndRollback will execute function in sql transaction and then rollback transaction.
PrintJson print v as json.
SaveJSONFile saves v as json at testRelativePath nolint:unused.
TimestampWithoutTimeZone creates time from t.
TimestampWithTimeZone creates time from t.
TimeWithoutTimeZone creates time from t.
TimeWithTimeZone creates time from t.
ToJSON converts v into json string.
UUIDPtr returns address of uuid.UUID.

# Variables

UnixTimeComparer will compare time equality while ignoring time zone.