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... }