a798a71b9d5d5f23feef71085b64e5ca298981b4
[nonrtric/plt/sme.git] / capifcore / internal / publishservice / mocks / PublishRegister.go
1 // Code generated by mockery v2.14.0. 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 // AreAPIsPublished provides a mock function with given fields: serviceDescriptions
17 func (_m *PublishRegister) AreAPIsPublished(serviceDescriptions *[]publishserviceapi.ServiceAPIDescription) bool {
18         ret := _m.Called(serviceDescriptions)
19
20         var r0 bool
21         if rf, ok := ret.Get(0).(func(*[]publishserviceapi.ServiceAPIDescription) bool); ok {
22                 r0 = rf(serviceDescriptions)
23         } else {
24                 r0 = ret.Get(0).(bool)
25         }
26
27         return r0
28 }
29
30 // GetAllPublishedServices provides a mock function with given fields:
31 func (_m *PublishRegister) GetAllPublishedServices() []publishserviceapi.ServiceAPIDescription {
32         ret := _m.Called()
33
34         var r0 []publishserviceapi.ServiceAPIDescription
35         if rf, ok := ret.Get(0).(func() []publishserviceapi.ServiceAPIDescription); ok {
36                 r0 = rf()
37         } else {
38                 if ret.Get(0) != nil {
39                         r0 = ret.Get(0).([]publishserviceapi.ServiceAPIDescription)
40                 }
41         }
42
43         return r0
44 }
45
46 // IsAPIPublished provides a mock function with given fields: aefId, path
47 func (_m *PublishRegister) IsAPIPublished(aefId string, path string) bool {
48         ret := _m.Called(aefId, path)
49
50         var r0 bool
51         if rf, ok := ret.Get(0).(func(string, string) bool); ok {
52                 r0 = rf(aefId, path)
53         } else {
54                 r0 = ret.Get(0).(bool)
55         }
56
57         return r0
58 }
59
60 type mockConstructorTestingTNewPublishRegister interface {
61         mock.TestingT
62         Cleanup(func())
63 }
64
65 // 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.
66 func NewPublishRegister(t mockConstructorTestingTNewPublishRegister) *PublishRegister {
67         mock := &PublishRegister{}
68         mock.Mock.Test(t)
69
70         t.Cleanup(func() { mock.AssertExpectations(t) })
71
72         return mock
73 }