Files
openbilibili/app/interface/main/captcha/dao/dao_test.go

22 lines
278 B
Go
Raw Normal View History

2019-04-22 20:46:32 +08:00
package dao
import (
"flag"
"path/filepath"
"testing"
"go-common/app/interface/main/captcha/conf"
)
var (
d *Dao
)
func TestMain(m *testing.M) {
flag.Parse()
dir, _ := filepath.Abs("../cmd/captcha-test.toml")
flag.Set("conf", dir)
conf.Init()
d = New(conf.Conf)
}