NONRTRIC-946: Get Allowed Publishers
[nonrtric/plt/sme.git] / capifcore / internal / publishservice / mocks / PublishRegister.go
index b264825..97cbd43 100644 (file)
@@ -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,15 +13,33 @@ 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
+}
+
+// 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
@@ -41,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)