members_test.go 492 B

123456789101112131415161718192021222324
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/admin/main/apm/model/monitor"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestService_Members(t *testing.T) {
  9. var (
  10. c = context.Background()
  11. mt *monitor.Monitor
  12. err error
  13. )
  14. convey.Convey("Members", t, func(ctx convey.C) {
  15. mt, err = svr.Members(c)
  16. ctx.So(mt, convey.ShouldNotBeEmpty)
  17. ctx.So(err, convey.ShouldBeNil)
  18. t.Logf("AppID=%s, Interface=%s, Count=%d", mt.AppID, mt.Interface, mt.Count)
  19. })
  20. }