bfs_test.go 660 B

123456789101112131415161718192021222324252627282930313233
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoBfsData(t *testing.T) {
  8. convey.Convey("BfsData", t, func(ctx convey.C) {
  9. var (
  10. c = context.Background()
  11. bfsURL = ""
  12. )
  13. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  14. testDao.BfsData(c, bfsURL)
  15. })
  16. })
  17. }
  18. func TestDaoBfsDmUpload(t *testing.T) {
  19. convey.Convey("BfsDmUpload", t, func(ctx convey.C) {
  20. var (
  21. c = context.Background()
  22. fileName = ""
  23. bs = []byte("231231231231")
  24. )
  25. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  26. testDao.BfsDmUpload(c, fileName, bs)
  27. })
  28. })
  29. }