Documentation ¶
Index ¶
- func Assert(t *testing.T, cond bool, param ...interface{})
- func CheckFail(err error, t Failer)
- func ExecSQL(db *sql.DB, t Failer, query string, param ...interface{})
- func LoadConfig() *config.AppConfig
- func MySQLAvailable() bool
- func SkipIfNoKafkaAvailable(t Failer)
- func SkipIfNoMySQLAvailable(t Failer)
- func WaitForNumProc(n int32, timeout time.Duration) bool
- func WaitForNumProcGreater(n int32, timeout time.Duration) bool
- type Failer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFail ¶
CheckFail fails the test if error is set, logs file, line, func of the failure location
func LoadConfig ¶
LoadConfig loads config for testing environment
func MySQLAvailable ¶
func MySQLAvailable() bool
MySQLAvailable test if local MySQL instance is running
func SkipIfNoKafkaAvailable ¶
func SkipIfNoKafkaAvailable(t Failer)
SkipIfNoKafkaAvailable tries to connect to local Kafka and if fails, then skip the test
func SkipIfNoMySQLAvailable ¶
func SkipIfNoMySQLAvailable(t Failer)
SkipIfNoMySQLAvailable tries to connect to local MySQL and if fails, then skip the test
func WaitForNumProc ¶
WaitForNumProc waits when number of running procs registered in shutdown framework becomes less or equal to the given number Returns false if the timeout expires and number of procs still above the limit
Types ¶
Click to show internal directories.
Click to hide internal directories.