Updates for G Maintenance release
[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 // 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 // IsAPIPublished provides a mock function with given fields: aefId, path
33 func (_m *PublishRegister) IsAPIPublished(aefId string, path string) bool {
34         ret := _m.Called(aefId, path)
35
36         var r0 bool
37         if rf, ok := ret.Get(0).(func(string, string) bool); ok {
38                 r0 = rf(aefId, path)
39         } else {
40                 r0 = ret.Get(0).(bool)
41         }
42
43         return r0
44 }
45
46 type mockConstructorTestingTNewPublishRegister interface {
47         mock.TestingT
48         Cleanup(func())
49 }
50
51 // 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.
52 func NewPublishRegister(t mockConstructorTestingTNewPublishRegister) *PublishRegister {
53         mock := &PublishRegister{}
54         mock.Mock.Test(t)
55
56         t.Cleanup(func() { mock.AssertExpectations(t) })
57
58         return mock
59 }