2efd37311e3bd82f5e19ee0b1e430cb0a9515406
[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 // 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 // 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.
47 // The first argument is typically a *testing.T value.
48 func NewPublishRegister(t interface {
49         mock.TestingT
50         Cleanup(func())
51 }) *PublishRegister {
52         mock := &PublishRegister{}
53         mock.Mock.Test(t)
54
55         t.Cleanup(func() { mock.AssertExpectations(t) })
56
57         return mock
58 }