manager_test.go 636 B

1234567891011121314151617181920212223242526272829303132
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_Managers(t *testing.T) {
  8. Convey("return someting", t, func() {
  9. res, err := d.Managers(context.Background())
  10. So(err, ShouldBeNil)
  11. So(res, ShouldNotBeNil)
  12. })
  13. }
  14. func Test_Manager(t *testing.T) {
  15. Convey("return someting", t, func() {
  16. res, err := d.Manager(context.Background(), 1, 2)
  17. So(err, ShouldBeNil)
  18. So(res, ShouldNotBeNil)
  19. })
  20. }
  21. func Test_ManagerTotal(t *testing.T) {
  22. Convey("return someting", t, func() {
  23. res, err := d.ManagerTotal(context.Background())
  24. So(err, ShouldBeNil)
  25. So(res, ShouldNotBeNil)
  26. })
  27. }