account_notify_test.go 902 B

123456789101112131415161718192021222324252627282930313233343536
  1. package dao
  2. import (
  3. "github.com/smartystreets/goconvey/convey"
  4. "testing"
  5. )
  6. func TestDaonotifyKey(t *testing.T) {
  7. convey.Convey("notifyKey", t, func(convCtx convey.C) {
  8. var (
  9. mid = int64(0)
  10. )
  11. convCtx.Convey("When everything goes positive", func(convCtx convey.C) {
  12. p1 := notifyKey(mid)
  13. convCtx.Convey("Then p1 should not be nil.", func(convCtx convey.C) {
  14. convCtx.So(p1, convey.ShouldNotBeNil)
  15. })
  16. })
  17. })
  18. }
  19. //func TestDaoNotifyPurgeCache(t *testing.T) {
  20. // convey.Convey("NotifyPurgeCache", t, func(convCtx convey.C) {
  21. // var (
  22. // c = context.Background()
  23. // mid = int64(0)
  24. // action = ""
  25. // )
  26. // convCtx.Convey("When everything goes positive", func(convCtx convey.C) {
  27. // err := d.NotifyPurgeCache(c, mid, action)
  28. // convCtx.Convey("Then err should be nil.", func(convCtx convey.C) {
  29. // convCtx.So(err, convey.ShouldBeNil)
  30. // })
  31. // })
  32. // })
  33. //}