dm_test.go 347 B

123456789101112131415161718
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDMSCache(t *testing.T) {
  8. Convey("should return dms and nil", t, func() {
  9. dms, err := svr.dms(context.TODO(), 1, 1221, 1, 0)
  10. So(err, ShouldBeNil)
  11. Convey("dms shoule not be empty", func() {
  12. So(len(dms), ShouldNotBeEmpty)
  13. })
  14. })
  15. }