a1f9c413d4e00834619fca5b1b81af84ad695db2
[nonrtric/plt/sme.git] / capifcore / internal / providermanagement / mocks / ServiceRegister.go
1 // Code generated by mockery v2.20.0. DO NOT EDIT.
2
3 package mocks
4
5 import mock "github.com/stretchr/testify/mock"
6
7 // ServiceRegister is an autogenerated mock type for the ServiceRegister type
8 type ServiceRegister struct {
9         mock.Mock
10 }
11
12 // GetAefsForPublisher provides a mock function with given fields: apfId
13 func (_m *ServiceRegister) GetAefsForPublisher(apfId string) []string {
14         ret := _m.Called(apfId)
15
16         var r0 []string
17         if rf, ok := ret.Get(0).(func(string) []string); ok {
18                 r0 = rf(apfId)
19         } else {
20                 if ret.Get(0) != nil {
21                         r0 = ret.Get(0).([]string)
22                 }
23         }
24
25         return r0
26 }
27
28 // IsFunctionRegistered provides a mock function with given fields: functionId
29 func (_m *ServiceRegister) IsFunctionRegistered(functionId string) bool {
30         ret := _m.Called(functionId)
31
32         var r0 bool
33         if rf, ok := ret.Get(0).(func(string) bool); ok {
34                 r0 = rf(functionId)
35         } else {
36                 r0 = ret.Get(0).(bool)
37         }
38
39         return r0
40 }
41
42 // IsPublishingFunctionRegistered provides a mock function with given fields: apiProvFuncId
43 func (_m *ServiceRegister) IsPublishingFunctionRegistered(apiProvFuncId string) bool {
44         ret := _m.Called(apiProvFuncId)
45
46         var r0 bool
47         if rf, ok := ret.Get(0).(func(string) bool); ok {
48                 r0 = rf(apiProvFuncId)
49         } else {
50                 r0 = ret.Get(0).(bool)
51         }
52
53         return r0
54 }
55
56 type mockConstructorTestingTNewServiceRegister interface {
57         mock.TestingT
58         Cleanup(func())
59 }
60
61 // NewServiceRegister creates a new instance of ServiceRegister. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
62 func NewServiceRegister(t mockConstructorTestingTNewServiceRegister) *ServiceRegister {
63         mock := &ServiceRegister{}
64         mock.Mock.Test(t)
65
66         t.Cleanup(func() { mock.AssertExpectations(t) })
67
68         return mock
69 }