-
Notifications
You must be signed in to change notification settings - Fork 0
/
ServiceRegLoader.go
43 lines (35 loc) · 1.13 KB
/
ServiceRegLoader.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Code generated by mockery v2.10.0. DO NOT EDIT.
package mocks
import (
authservice "github.com/rokwire/core-auth-library-go/v2/authservice"
mock "github.com/stretchr/testify/mock"
)
// ServiceRegLoader is an autogenerated mock type for the ServiceRegLoader type
type ServiceRegLoader struct {
mock.Mock
authService *authservice.AuthService
*authservice.ServiceRegSubscriptions
}
// LoadServices provides a mock function with given fields:
func (_m *ServiceRegLoader) LoadServices() ([]authservice.ServiceReg, error) {
ret := _m.Called()
var r0 []authservice.ServiceReg
if rf, ok := ret.Get(0).(func() []authservice.ServiceReg); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]authservice.ServiceReg)
}
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
func NewServiceRegLoader(authService *authservice.AuthService, subscribedServices []string) *ServiceRegLoader {
subscriptions := authservice.NewServiceRegSubscriptions(subscribedServices)
return &ServiceRegLoader{authService: authService, ServiceRegSubscriptions: subscriptions}
}