mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-07 21:48:31 -05:00
20 lines
285 B
Go
20 lines
285 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"flag"
|
||
|
|
"path/filepath"
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
"go-common/app/interface/main/captcha/conf"
|
||
|
|
)
|
||
|
|
|
||
|
|
var svr *Service
|
||
|
|
|
||
|
|
func TestMain(m *testing.M) {
|
||
|
|
flag.Parse()
|
||
|
|
dir, _ := filepath.Abs("../cmd/captcha-test.toml")
|
||
|
|
flag.Set("conf", dir)
|
||
|
|
conf.Init()
|
||
|
|
svr = New(conf.Conf)
|
||
|
|
}
|