Add generated code
[nonrtric/plt/sme.git] / internal / providermanagement / mocks / ServiceRegister.go
1 // Code generated by mockery v2.14.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 // IsFunctionRegistered provides a mock function with given fields: aefId
13 func (_m *ServiceRegister) IsFunctionRegistered(aefId string) bool {
14         ret := _m.Called(aefId)
15
16         var r0 bool
17         if rf, ok := ret.Get(0).(func(string) bool); ok {
18                 r0 = rf(aefId)
19         } else {
20                 r0 = ret.Get(0).(bool)
21         }
22
23         return r0
24 }
25
26 type mockConstructorTestingTNewServiceRegister interface {
27         mock.TestingT
28         Cleanup(func())
29 }
30
31 // 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.
32 func NewServiceRegister(t mockConstructorTestingTNewServiceRegister) *ServiceRegister {
33         mock := &ServiceRegister{}
34         mock.Mock.Test(t)
35
36         t.Cleanup(func() { mock.AssertExpectations(t) })
37
38         return mock
39 }