You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
414 B

package newcomer
import (
"flag"
"os"
"testing"
"go-common/app/interface/main/creative/conf"
"go-common/app/interface/main/creative/service"
)
var (
s *Service
)
func TestMain(m *testing.M) {
flag.Set("conf", "../../cmd/creative.toml")
flag.Parse()
if err := conf.Init(); err != nil {
panic(err)
}
rpcdaos := service.NewRPCDaos(conf.Conf)
s = New(conf.Conf, rpcdaos)
m.Run()
os.Exit(m.Run())
}