role_test.go 377 B

1234567891011121314151617
  1. package service
  2. import (
  3. "github.com/smartystreets/goconvey/convey"
  4. "testing"
  5. )
  6. func TestServiceGetRoleBiz(t *testing.T) {
  7. convey.Convey("GetRoleBiz", t, func(ctx convey.C) {
  8. result, err := s.GetRoleBiz(cntx, 421, "leader", true)
  9. t.Logf("result(%+v)", result)
  10. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  11. ctx.So(err, convey.ShouldBeNil)
  12. })
  13. })
  14. }