NONRTRIC-946: Fix panics in Capif
[nonrtric/plt/sme.git] / capifcore / internal / invokermanagement / mocks / InvokerRegister.go
index 3eb317a..d1e6c83 100644 (file)
@@ -1,14 +1,33 @@
-// Code generated by mockery v2.14.0. DO NOT EDIT.
+// Code generated by mockery v2.35.4. DO NOT EDIT.
 
 package mocks
 
-import mock "github.com/stretchr/testify/mock"
+import (
+       mock "github.com/stretchr/testify/mock"
+       invokermanagementapi "oransc.org/nonrtric/capifcore/internal/invokermanagementapi"
+)
 
 // InvokerRegister is an autogenerated mock type for the InvokerRegister type
 type InvokerRegister struct {
        mock.Mock
 }
 
+// GetInvokerApiList provides a mock function with given fields: invokerId
+func (_m *InvokerRegister) GetInvokerApiList(invokerId string) *invokermanagementapi.APIList {
+       ret := _m.Called(invokerId)
+
+       var r0 *invokermanagementapi.APIList
+       if rf, ok := ret.Get(0).(func(string) *invokermanagementapi.APIList); ok {
+               r0 = rf(invokerId)
+       } else {
+               if ret.Get(0) != nil {
+                       r0 = ret.Get(0).(*invokermanagementapi.APIList)
+               }
+       }
+
+       return r0
+}
+
 // IsInvokerRegistered provides a mock function with given fields: invokerId
 func (_m *InvokerRegister) IsInvokerRegistered(invokerId string) bool {
        ret := _m.Called(invokerId)
@@ -37,13 +56,12 @@ func (_m *InvokerRegister) VerifyInvokerSecret(invokerId string, secret string)
        return r0
 }
 
-type mockConstructorTestingTNewInvokerRegister interface {
+// NewInvokerRegister creates a new instance of InvokerRegister. 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 NewInvokerRegister(t interface {
        mock.TestingT
        Cleanup(func())
-}
-
-// NewInvokerRegister creates a new instance of InvokerRegister. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
-func NewInvokerRegister(t mockConstructorTestingTNewInvokerRegister) *InvokerRegister {
+}) *InvokerRegister {
        mock := &InvokerRegister{}
        mock.Mock.Test(t)