album_test.go 619 B

12345678910111213141516171819202122232425262728
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDao_AlbumCount(t *testing.T) {
  8. convey.Convey("test album count", t, func(ctx convey.C) {
  9. mid := int64(28272030)
  10. data, err := d.AlbumCount(context.Background(), mid)
  11. convey.So(err, convey.ShouldBeNil)
  12. convey.Printf("%d", data)
  13. })
  14. }
  15. func TestDao_AlbumList(t *testing.T) {
  16. convey.Convey("test album list", t, func(ctx convey.C) {
  17. mid := int64(28272030)
  18. pn := 0
  19. ps := 1
  20. data, err := d.AlbumList(context.Background(), mid, pn, ps)
  21. convey.So(err, convey.ShouldBeNil)
  22. convey.Printf("%+v", data)
  23. })
  24. }