package dao import ( "context" "testing" "github.com/smartystreets/goconvey/convey" ) func TestDaoNotice(t *testing.T) { convey.Convey("Notice", t, func(ctx convey.C) { var ( c = context.Background() id = int64(0) ) ctx.Convey("When everything goes positive", func(ctx convey.C) { res, err := d.Notice(c, id) ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) { ctx.So(err, convey.ShouldBeNil) ctx.So(res, convey.ShouldNotBeNil) }) }) }) } func TestDaoTopArc(t *testing.T) { convey.Convey("TopArc", t, func(ctx convey.C) { var ( c = context.Background() id = int64(2089809) ) ctx.Convey("When everything goes positive", func(ctx convey.C) { res, err := d.TopArc(c, id) ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) { ctx.So(err, convey.ShouldBeNil) ctx.So(res, convey.ShouldNotBeNil) }) }) }) } func TestDaoMasterpiece(t *testing.T) { convey.Convey("Masterpiece", t, func(ctx convey.C) { var ( c = context.Background() id = int64(0) ) ctx.Convey("When everything goes positive", func(ctx convey.C) { res, err := d.Masterpiece(c, id) ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) { ctx.So(err, convey.ShouldBeNil) ctx.So(res, convey.ShouldNotBeNil) }) }) }) } func TestDaoTheme(t *testing.T) { convey.Convey("Theme", t, func(ctx convey.C) { var ( c = context.Background() id = int64(0) ) ctx.Convey("When everything goes positive", func(ctx convey.C) { res, err := d.Theme(c, id) ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) { ctx.So(err, convey.ShouldBeNil) ctx.So(res, convey.ShouldNotBeNil) }) }) }) } func TestDaoTopDynamic(t *testing.T) { convey.Convey("TopDynamic", t, func(ctx convey.C) { var ( c = context.Background() id = int64(0) ) ctx.Convey("When everything goes positive", func(ctx convey.C) { res, err := d.TopDynamic(c, id) ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) { ctx.So(err, convey.ShouldBeNil) ctx.So(res, convey.ShouldNotBeNil) }) }) }) }