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

30 lines
669 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. package hasaki_{{.app_name}}_test
  2. import (
  3. "log"
  4. "testing"
  5. "git.ouxuan.net/hasaki-service/hasaki-service-{{.app_name}}/hasaki_{{.app_name}}"
  6. "git.ouxuan.net/hasaki-service/hasaki-sdk/hskconfig"
  7. "git.ouxuan.net/hasaki-service/hasaki-sdk/hskdb"
  8. )
  9. var branch interface{} = "branch_brand_63"
  10. var api hasaki_{{.app}}.*Api
  11. func init() {
  12. hskconfig.NotFlag()
  13. hskconfig.SetGolbalConfigFileName("E:\test.json")
  14. hskdb.IsAsyncToXormSync2 = false
  15. api = hasaki_{{.app_name}}.NewApi(hskdb.GetXormAuto(branch))
  16. err := hasaki_{{.app_name}}.InitDbByConfig(branch)
  17. if err != nil {
  18. log.Fatalln(err)
  19. }
  20. }
  21. func TestNewApi(t *testing.T) {
  22. // TODO: some test case...
  23. }