Move capifcore code to separate folder
[nonrtric/plt/sme.git] / capifcore / internal / publishservice / mocks / APIRegister.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 // APIRegister is an autogenerated mock type for the APIRegister type
12 type APIRegister struct {
13         mock.Mock
14 }
15
16 // AreAPIsRegistered provides a mock function with given fields: serviceDescriptions
17 func (_m *APIRegister) AreAPIsRegistered(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 // GetAPIs provides a mock function with given fields:
31 func (_m *APIRegister) GetAPIs() *[]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 // IsAPIRegistered provides a mock function with given fields: aefId, path
47 func (_m *APIRegister) IsAPIRegistered(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 mockConstructorTestingTNewAPIRegister interface {
61         mock.TestingT
62         Cleanup(func())
63 }
64
65 // NewAPIRegister creates a new instance of APIRegister. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
66 func NewAPIRegister(t mockConstructorTestingTNewAPIRegister) *APIRegister {
67         mock := &APIRegister{}
68         mock.Mock.Test(t)
69
70         t.Cleanup(func() { mock.AssertExpectations(t) })
71
72         return mock
73 }