bangumi_test.go 367 B

1234567891011121314151617
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDao_BangumiList(t *testing.T) {
  8. convey.Convey("test bangumi list", t, func(ctx convey.C) {
  9. data, count, err := d.BangumiList(context.Background(), 908085, 1, 10)
  10. convey.So(err, convey.ShouldBeNil)
  11. convey.Printf("%+v", data)
  12. convey.Printf("%d", count)
  13. })
  14. }