tips_test.go 363 B

12345678910111213141516171819202122
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoAllTips(t *testing.T) {
  8. var (
  9. c = context.TODO()
  10. now = int64(20)
  11. )
  12. convey.Convey("AllTips", t, func(ctx convey.C) {
  13. _, err := d.AllTips(c, now)
  14. ctx.Convey("Error should be nil", func(ctx convey.C) {
  15. ctx.So(err, convey.ShouldBeNil)
  16. })
  17. })
  18. }