cache_test.go 421 B

123456789101112131415161718192021
  1. package dao
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestDaocacheSFEquip(t *testing.T) {
  7. convey.Convey("cacheSFEquip", t, func(ctx convey.C) {
  8. var (
  9. id = int64(0)
  10. )
  11. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  12. p1 := d.cacheSFEquip(id)
  13. ctx.Convey("Then p1 should not be nil.", func(ctx convey.C) {
  14. ctx.So(p1, convey.ShouldNotBeNil)
  15. })
  16. })
  17. })
  18. }