NONRTRIC-946: Get Allowed Publishers
[nonrtric/plt/sme.git] / capifcore / internal / publishservice / mocks / PublishRegister.go
1 // Code generated by mockery v2.35.4. DO NOT EDIT.
2
3 package mocks
4
5 import (
6         mock "github.com/stretchr/testify/mock"
7
8         publishserviceapi "oransc.org/nonrtric/capifcore/internal/publishserviceapi"
9 )
10
11 // PublishRegister is an autogenerated mock type for the PublishRegister type
12 type PublishRegister struct {
13         mock.Mock
14 }
15
16 // GetAllPublishedServices provides a mock function with given fields:
17 func (_m *PublishRegister) GetAllPublishedServices() []publishserviceapi.ServiceAPIDescription {
18         ret := _m.Called()
19
20         var r0 []publishserviceapi.ServiceAPIDescription
21         if rf, ok := ret.Get(0).(func() []publishserviceapi.ServiceAPIDescription); ok {
22                 r0 = rf()
23         } else {
24                 if ret.Get(0) != nil {
25                         r0 = ret.Get(0).([]publishserviceapi.ServiceAPIDescription)
26                 }
27         }
28
29         return r0
30 }
31
32 // GetAllowedPublishedServices provides a mock function with given fields: invokerApiList
33 func (_m *PublishRegister) GetAllowedPublishedServices(invokerApiList []publishserviceapi.ServiceAPIDescription) []publishserviceapi.ServiceAPIDescription {
34         ret := _m.Called(invokerApiList)
35
36         var r0 []publishserviceapi.ServiceAPIDescription
37         if rf, ok := ret.Get(0).(func([]publishserviceapi.ServiceAPIDescription) []publishserviceapi.ServiceAPIDescription); ok {
38                 r0 = rf(invokerApiList)
39         } else {
40                 if ret.Get(0) != nil {
41                         r0 = ret.Get(0).([]publishserviceapi.ServiceAPIDescription)
42                 }
43         }
44
45         return r0
46 }
47
48 // IsAPIPublished provides a mock function with given fields: aefId, path
49 func (_m *PublishRegister) IsAPIPublished(aefId string, path string) bool {
50         ret := _m.Called(aefId, path)
51
52         var r0 bool
53         if rf, ok := ret.Get(0).(func(string, string) bool); ok {
54                 r0 = rf(aefId, path)
55         } else {
56                 r0 = ret.Get(0).(bool)
57         }
58
59         return r0
60 }
61
62 // NewPublishRegister creates a new instance of PublishRegister. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
63 // The first argument is typically a *testing.T value.
64 func NewPublishRegister(t interface {
65         mock.TestingT
66         Cleanup(func())
67 }) *PublishRegister {
68         mock := &PublishRegister{}
69         mock.Mock.Test(t)
70
71         t.Cleanup(func() { mock.AssertExpectations(t) })
72
73         return mock
74 }