Versions in this module Expand all Collapse all v1 v1.0.0 Oct 2, 2023 Changes in this version + func AssertDatabaseCount(t *testing.T, table string, expected int64) + func AssertDatabaseHas(t *testing.T, table string, conditions map[string]interface{}) + func CountWithQuery(table string, conditions map[string]interface{}) int64 + func CountWithoutQuery(table string) int64 + func DB() *gorm.DB + func DatabaseTestUtilOpt() fx.Option + func EnableDatabaseTestUtilOpt() fx.Option + func EnableRedisTestUtilOpt() fx.Option + func Insert(model interface{}) + func RedisClient() *redis.Client + func RedisTestUtilOpt() fx.Option + func TruncateTables(tables ...string) + func TruncateTablesHasForeignKey(tables ...string) + func TruncateTablesHasForeignKeyOpt(tables ...string) fx.Option + func TruncateTablesOpt(tables ...string) fx.Option