mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-07 21:48:31 -05:00
36 lines
848 B
Go
36 lines
848 B
Go
package dao
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestDao_AudioCard(t *testing.T) {
|
|
convey.Convey("test audio card", t, func(ctx convey.C) {
|
|
mid := int64(28272030)
|
|
data, err := d.AudioCard(context.Background(), mid)
|
|
convey.So(err, convey.ShouldBeNil)
|
|
convey.Printf("%v", data)
|
|
})
|
|
}
|
|
|
|
func TestDao_AudioUpperCert(t *testing.T) {
|
|
convey.Convey("test audio upper cert", t, func(ctx convey.C) {
|
|
mid := int64(28272030)
|
|
data, err := d.AudioUpperCert(context.Background(), mid)
|
|
convey.So(err, convey.ShouldBeNil)
|
|
convey.Printf("%v", data)
|
|
})
|
|
}
|
|
|
|
func TestDao_AudioCnt(t *testing.T) {
|
|
convey.Convey("test audio cnt", t, func(ctx convey.C) {
|
|
mid := int64(28272030)
|
|
data, err := d.AudioCnt(context.Background(), mid)
|
|
convey.So(err, convey.ShouldBeNil)
|
|
convey.Printf("%v", data)
|
|
})
|
|
}
|