You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
776 B
35 lines
776 B
package thirdp |
|
|
|
import ( |
|
"context" |
|
"testing" |
|
|
|
"github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestThirdpMangoOrder(t *testing.T) { |
|
var ( |
|
c = context.Background() |
|
) |
|
convey.Convey("MangoOrder", t, func(ctx convey.C) { |
|
s, err := d.MangoOrder(c) |
|
ctx.Convey("Then err should be nil.s should not be nil.", func(ctx convey.C) { |
|
ctx.So(err, convey.ShouldBeNil) |
|
ctx.So(s, convey.ShouldNotBeNil) |
|
}) |
|
}) |
|
} |
|
|
|
func TestThirdpMangoRecom(t *testing.T) { |
|
var ( |
|
c = context.Background() |
|
ids = []int64{} |
|
) |
|
convey.Convey("MangoRecom", t, func(ctx convey.C) { |
|
data, err := d.MangoRecom(c, ids) |
|
ctx.Convey("Then err should be nil.data should not be nil.", func(ctx convey.C) { |
|
ctx.So(err, convey.ShouldBeNil) |
|
ctx.So(data, convey.ShouldNotBeNil) |
|
}) |
|
}) |
|
}
|
|
|