9d29d2b946
- Make TestMain be driver-based - Move config to TestMain file - Make config a little more sane in pgmain
17 lines
237 B
Smarty
17 lines
237 B
Smarty
type mysqlTester struct {
|
|
dbConn *sql.DB
|
|
}
|
|
|
|
dbMain = mysqlTester{}
|
|
|
|
func (m mysqlTester) setup() error {
|
|
return nil
|
|
}
|
|
|
|
func (m mysqlTester) teardown() error {
|
|
return nil
|
|
}
|
|
|
|
func (m mysqlTester) conn() *sql.DB {
|
|
return m.dbConn
|
|
}
|