bfs_test.go 540 B

12345678910111213141516171819202122232425
  1. package dao
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestDaoauthorize(t *testing.T) {
  7. convey.Convey("authorize", t, func(ctx convey.C) {
  8. var (
  9. key = ""
  10. secret = ""
  11. method = ""
  12. bucket = ""
  13. expire = int64(0)
  14. )
  15. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  16. authorization := authorize(key, secret, method, bucket, expire)
  17. ctx.Convey("Then authorization should not be nil.", func(ctx convey.C) {
  18. ctx.So(authorization, convey.ShouldNotBeNil)
  19. })
  20. })
  21. })
  22. }