工具
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
530 B

4 years ago
  1. package hasaki_{{.app_name}}
  2. import (
  3. "fmt"
  4. "log"
  5. "testing"
  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 *Api
  11. func init() {
  12. hskconfig.NotFlag()
  13. hskconfig.SetGolbalConfigFileName("E:\test.json")
  14. hskdb.IsAsyncToXormSync2 = false
  15. api = NewApi(hskdb.GetXormAuto(branch))
  16. err := InitDbByConfig(branch)
  17. if err != nil {
  18. log.Fatalln(err)
  19. }
  20. }
  21. func TestNewApi(t *testing.T) {
  22. // TODO: some test case...
  23. }