You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
507 B

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)
})
}