mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 05:58:29 -05:00
22 lines
415 B
Go
22 lines
415 B
Go
|
|
package archive
|
||
|
|
|
||
|
|
import (
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
arcwar "go-common/app/service/main/archive/api"
|
||
|
|
|
||
|
|
"github.com/smartystreets/goconvey/convey"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestArchivevalidView(t *testing.T) {
|
||
|
|
var (
|
||
|
|
vp = &arcwar.ViewReply{}
|
||
|
|
)
|
||
|
|
convey.Convey("validView", t, func(ctx convey.C) {
|
||
|
|
valid := validView(vp, true)
|
||
|
|
ctx.Convey("Then valid should not be nil.", func(ctx convey.C) {
|
||
|
|
ctx.So(valid, convey.ShouldNotBeNil)
|
||
|
|
})
|
||
|
|
})
|
||
|
|
}
|