valid_test.go 415 B

123456789101112131415161718192021
  1. package archive
  2. import (
  3. "testing"
  4. arcwar "go-common/app/service/main/archive/api"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestArchivevalidView(t *testing.T) {
  8. var (
  9. vp = &arcwar.ViewReply{}
  10. )
  11. convey.Convey("validView", t, func(ctx convey.C) {
  12. valid := validView(vp, true)
  13. ctx.Convey("Then valid should not be nil.", func(ctx convey.C) {
  14. ctx.So(valid, convey.ShouldNotBeNil)
  15. })
  16. })
  17. }