2016-09-11 18:17:08 +02:00
|
|
|
type mysqlTester struct {
|
|
|
|
dbConn *sql.DB
|
|
|
|
}
|
|
|
|
|
2016-09-11 21:07:39 +02:00
|
|
|
func init() {
|
|
|
|
dbMain = &mysqlTester{}
|
|
|
|
}
|
2016-09-11 18:17:08 +02:00
|
|
|
|
2016-09-11 21:07:39 +02:00
|
|
|
func (m *mysqlTester) setup() error {
|
2016-09-11 18:17:08 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-09-11 21:07:39 +02:00
|
|
|
func (m *mysqlTester) teardown() error {
|
2016-09-11 18:17:08 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-09-11 21:07:39 +02:00
|
|
|
func (m *mysqlTester) conn() *sql.DB {
|
2016-09-11 18:17:08 +02:00
|
|
|
return m.dbConn
|
2016-09-09 08:05:09 +02:00
|
|
|
}
|