auth_role_test.go 286 B

1234567891011121314151617
  1. package manager
  2. import (
  3. "context"
  4. . "github.com/smartystreets/goconvey/convey"
  5. "testing"
  6. )
  7. func Test_GetUserRole(t *testing.T) {
  8. var (
  9. err error
  10. )
  11. Convey("GetUserRole", t, WithDao(func(d *Dao) {
  12. _, err = d.GetUserRole(context.Background(), 1)
  13. So(err, ShouldBeNil)
  14. }))
  15. }