app_auth_test.go 751 B

12345678910111213141516171819202122232425262728293031323334
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoAllAppsInfo(t *testing.T) {
  8. var (
  9. c = context.Background()
  10. )
  11. convey.Convey("AllAppsInfo", t, func(ctx convey.C) {
  12. res, err := d.AllAppsInfo(c)
  13. ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) {
  14. ctx.So(err, convey.ShouldBeNil)
  15. ctx.So(res, convey.ShouldNotBeNil)
  16. })
  17. })
  18. }
  19. func TestDaoAllAppsAuth(t *testing.T) {
  20. var (
  21. c = context.Background()
  22. )
  23. convey.Convey("AllAppsAuth", t, func(ctx convey.C) {
  24. res, err := d.AllAppsAuth(c)
  25. ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) {
  26. ctx.So(err, convey.ShouldBeNil)
  27. ctx.So(res, convey.ShouldNotBeNil)
  28. })
  29. })
  30. }