Documentation ¶
Index ¶
- func AssertEqual(t Tester, _ string, exp, got interface{})
- func AssertEqualFatal(t Tester, name string, exp, got interface{})
- func Err(t Tester, name string, err error)
- func FatalErr(t Tester, name string, err error)
- func NewSqlDB(t Tester, driverName, envName string) *sql.DB
- func RandFloat64(min, max float64) float64
- func RandInt(min, max int) int
- func RandInt64(min, max int64) int64
- func RandomCase(args ...interface{}) interface{}
- func RandomDate(min, max time.Time) time.Time
- func RandomIP() string
- func RandomImage(width, height int) image.Image
- func RandomString(n int) string
- type Tester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
func AssertEqualFatal ¶
func NewSqlDB ¶
NewDB create and returns new *sql.DB from environment in your tests you need to add sql drivers manually _ "github.com/ClickHouse/clickhouse-go" _ "github.com/go-sql-driver/mysql" _ "github.com/lib/pq"
func RandFloat64 ¶
func RandomCase ¶ added in v0.0.8
func RandomCase(args ...interface{}) interface{}
func RandomImage ¶ added in v0.0.9
func RandomString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.