package
2.3.0+incompatible
Repository: https://github.com/unwired/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.
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.
BoolPtr returns address of bool parameter.
ByteArrayPtr returns address of []byte parameter.
Date creates time from t string.
Float32Ptr returns address of float32 parameter.
Float64Ptr returns address of float64 parameter.
Int16Ptr returns address of int16 parameter.
Int32Ptr returns address of int32 parameter.
Int64Ptr returns address of int64 parameter.
Int8Ptr returns address of int8 parameter.
PrintJson print v as json.
SaveJSONFile saves v as json at testRelativePath.
StringPtr returns address of string parameter.
TimePtr returns address of time.Time parameter.
TimestampWithoutTimeZone creates time from t.
TimestampWithTimeZone creates time from t.
TimeWithoutTimeZone creates time from t.
TimeWithTimeZone creates time from t.
UInt16Ptr returns address of uint16 parameter.
UInt32Ptr returns address of uint32 parameter.
UInt64Ptr returns address of uint64 parameter.
UInt8Ptr returns address of uint8 parameter.
UUIDPtr returns address of uuid.UUID.