http_test.go 358 B

12345678910111213141516171819202122232425
  1. package http
  2. import (
  3. "flag"
  4. "testing"
  5. "go-common/app/admin/main/block/conf"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestMain(m *testing.M) {
  9. flag.Set("conf", "../cmd/block-admin-test.toml")
  10. var err error
  11. if err = conf.Init(); err != nil {
  12. panic(err)
  13. }
  14. m.Run()
  15. }
  16. func TestTools(t *testing.T) {
  17. Convey("tools", t, func() {
  18. })
  19. }