task_config_test.go 441 B

1234567891011121314151617
  1. package service
  2. import (
  3. "github.com/smartystreets/goconvey/convey"
  4. "testing"
  5. )
  6. func TestServiceWeightLog(t *testing.T) {
  7. convey.Convey("WeightLog", t, func(ctx convey.C) {
  8. result, cnt, err := s.WeightLog(cntx, 49, 1, 4)
  9. t.Logf("cnt(%d) error(%v)", cnt, err)
  10. ctx.Convey("Then err should be nil.result should not be nil.", func(ctx convey.C) {
  11. ctx.So(err, convey.ShouldBeNil)
  12. ctx.So(result, convey.ShouldNotBeNil)
  13. })
  14. })
  15. }