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.
17 lines
441 B
17 lines
441 B
package service |
|
|
|
import ( |
|
"github.com/smartystreets/goconvey/convey" |
|
"testing" |
|
) |
|
|
|
func TestServiceWeightLog(t *testing.T) { |
|
convey.Convey("WeightLog", t, func(ctx convey.C) { |
|
result, cnt, err := s.WeightLog(cntx, 49, 1, 4) |
|
t.Logf("cnt(%d) error(%v)", cnt, err) |
|
ctx.Convey("Then err should be nil.result should not be nil.", func(ctx convey.C) { |
|
ctx.So(err, convey.ShouldBeNil) |
|
ctx.So(result, convey.ShouldNotBeNil) |
|
}) |
|
}) |
|
}
|
|
|