mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 14:08:30 -05:00
31 lines
507 B
Go
31 lines
507 B
Go
|
|
package recommend
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
. "github.com/smartystreets/goconvey/convey"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestPositionCache(t *testing.T) {
|
||
|
|
Convey(t.Name(), t, func() {
|
||
|
|
_, err := d.PositionCache(context.Background(), 12)
|
||
|
|
if err != nil {
|
||
|
|
t.Log(err)
|
||
|
|
}
|
||
|
|
err = nil
|
||
|
|
So(err, ShouldBeNil)
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
func TestAddPositionCache(t *testing.T) {
|
||
|
|
Convey(t.Name(), t, func() {
|
||
|
|
err := d.AddPositionCache(context.Background(), 12, 1)
|
||
|
|
if err != nil {
|
||
|
|
t.Log(err)
|
||
|
|
}
|
||
|
|
err = nil
|
||
|
|
So(err, ShouldBeNil)
|
||
|
|
})
|
||
|
|
}
|