mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 05:58:29 -05:00
18 lines
286 B
Go
18 lines
286 B
Go
|
|
package manager
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
. "github.com/smartystreets/goconvey/convey"
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
func Test_GetUserRole(t *testing.T) {
|
||
|
|
var (
|
||
|
|
err error
|
||
|
|
)
|
||
|
|
Convey("GetUserRole", t, WithDao(func(d *Dao) {
|
||
|
|
_, err = d.GetUserRole(context.Background(), 1)
|
||
|
|
So(err, ShouldBeNil)
|
||
|
|
}))
|
||
|
|
}
|