X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=capifcore%2Finternal%2Fpublishservice%2Fmocks%2FPublishRegister.go;h=97cbd4380cd1166d5caf7b7d6612fec7f2dfd6d3;hb=refs%2Fchanges%2F67%2F12567%2F1;hp=a798a71b9d5d5f23feef71085b64e5ca298981b4;hpb=0b4c4ecb52b1c04037a65644dc8c6c29981d9736;p=nonrtric%2Fplt%2Fsme.git diff --git a/capifcore/internal/publishservice/mocks/PublishRegister.go b/capifcore/internal/publishservice/mocks/PublishRegister.go index a798a71..97cbd43 100644 --- a/capifcore/internal/publishservice/mocks/PublishRegister.go +++ b/capifcore/internal/publishservice/mocks/PublishRegister.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.14.0. DO NOT EDIT. +// Code generated by mockery v2.35.4. DO NOT EDIT. package mocks @@ -13,27 +13,29 @@ type PublishRegister struct { mock.Mock } -// AreAPIsPublished provides a mock function with given fields: serviceDescriptions -func (_m *PublishRegister) AreAPIsPublished(serviceDescriptions *[]publishserviceapi.ServiceAPIDescription) bool { - ret := _m.Called(serviceDescriptions) +// GetAllPublishedServices provides a mock function with given fields: +func (_m *PublishRegister) GetAllPublishedServices() []publishserviceapi.ServiceAPIDescription { + ret := _m.Called() - var r0 bool - if rf, ok := ret.Get(0).(func(*[]publishserviceapi.ServiceAPIDescription) bool); ok { - r0 = rf(serviceDescriptions) + var r0 []publishserviceapi.ServiceAPIDescription + if rf, ok := ret.Get(0).(func() []publishserviceapi.ServiceAPIDescription); ok { + r0 = rf() } else { - r0 = ret.Get(0).(bool) + if ret.Get(0) != nil { + r0 = ret.Get(0).([]publishserviceapi.ServiceAPIDescription) + } } return r0 } -// GetAllPublishedServices provides a mock function with given fields: -func (_m *PublishRegister) GetAllPublishedServices() []publishserviceapi.ServiceAPIDescription { - ret := _m.Called() +// GetAllowedPublishedServices provides a mock function with given fields: invokerApiList +func (_m *PublishRegister) GetAllowedPublishedServices(invokerApiList []publishserviceapi.ServiceAPIDescription) []publishserviceapi.ServiceAPIDescription { + ret := _m.Called(invokerApiList) var r0 []publishserviceapi.ServiceAPIDescription - if rf, ok := ret.Get(0).(func() []publishserviceapi.ServiceAPIDescription); ok { - r0 = rf() + if rf, ok := ret.Get(0).(func([]publishserviceapi.ServiceAPIDescription) []publishserviceapi.ServiceAPIDescription); ok { + r0 = rf(invokerApiList) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]publishserviceapi.ServiceAPIDescription) @@ -57,13 +59,12 @@ func (_m *PublishRegister) IsAPIPublished(aefId string, path string) bool { return r0 } -type mockConstructorTestingTNewPublishRegister interface { +// 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. +// The first argument is typically a *testing.T value. +func NewPublishRegister(t interface { mock.TestingT Cleanup(func()) -} - -// 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. -func NewPublishRegister(t mockConstructorTestingTNewPublishRegister) *PublishRegister { +}) *PublishRegister { mock := &PublishRegister{} mock.Mock.Test(t)