go-common/app/interface/main/tv/dao/archive/valid_test.go

22 lines
415 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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)
})
})
}