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%2F85%2F12585%2F1;hp=df256204d898222811659c78a66ca06dcc77ce57;hpb=e499f63287a0786ed1fb94f5bf2cce09422c518f;p=nonrtric%2Fplt%2Fsme.git diff --git a/capifcore/internal/publishservice/mocks/PublishRegister.go b/capifcore/internal/publishservice/mocks/PublishRegister.go index df25620..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 @@ -29,6 +29,22 @@ func (_m *PublishRegister) GetAllPublishedServices() []publishserviceapi.Service return r0 } +// 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) []publishserviceapi.ServiceAPIDescription); ok { + r0 = rf(invokerApiList) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]publishserviceapi.ServiceAPIDescription) + } + } + + return r0 +} + // IsAPIPublished provides a mock function with given fields: aefId, path func (_m *PublishRegister) IsAPIPublished(aefId string, path string) bool { ret := _m.Called(aefId, path) @@ -43,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)