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