mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-03-14 05:46:26 -05:00
18 lines
441 B
Go
18 lines
441 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/smartystreets/goconvey/convey"
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestServiceWeightLog(t *testing.T) {
|
||
|
|
convey.Convey("WeightLog", t, func(ctx convey.C) {
|
||
|
|
result, cnt, err := s.WeightLog(cntx, 49, 1, 4)
|
||
|
|
t.Logf("cnt(%d) error(%v)", cnt, err)
|
||
|
|
ctx.Convey("Then err should be nil.result should not be nil.", func(ctx convey.C) {
|
||
|
|
ctx.So(err, convey.ShouldBeNil)
|
||
|
|
ctx.So(result, convey.ShouldNotBeNil)
|
||
|
|
})
|
||
|
|
})
|
||
|
|
}
|