工具
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.
 
 

31 lines
669 B

package hasaki_{{.app_name}}_test
import (
"log"
"testing"
"git.ouxuan.net/hasaki-service/hasaki-service-{{.app_name}}/hasaki_{{.app_name}}"
"git.ouxuan.net/hasaki-service/hasaki-sdk/hskconfig"
"git.ouxuan.net/hasaki-service/hasaki-sdk/hskdb"
)
var branch interface{} = "branch_brand_63"
var api hasaki_{{.app}}.*Api
func init() {
hskconfig.NotFlag()
hskconfig.SetGolbalConfigFileName("E:\test.json")
hskdb.IsAsyncToXormSync2 = false
api = hasaki_{{.app_name}}.NewApi(hskdb.GetXormAuto(branch))
err := hasaki_{{.app_name}}.InitDbByConfig(branch)
if err != nil {
log.Fatalln(err)
}
}
func TestNewApi(t *testing.T) {
// TODO: some test case...
}