X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=capifcore%2Finternal%2Finvokermanagement%2Fmocks%2FInvokerRegister.go;h=d1e6c83d60b02ca6b2be8075ced68c2d751e736c;hb=4974b9d1c7256e90cb206b327b0c81f7364beeab;hp=3eb317a9bd37b6d70648e73d159f3c277c03b2e3;hpb=c9e08b2a2f647f9f870040570c5e71305f0fb5d2;p=nonrtric%2Fplt%2Fsme.git diff --git a/capifcore/internal/invokermanagement/mocks/InvokerRegister.go b/capifcore/internal/invokermanagement/mocks/InvokerRegister.go index 3eb317a..d1e6c83 100644 --- a/capifcore/internal/invokermanagement/mocks/InvokerRegister.go +++ b/capifcore/internal/invokermanagement/mocks/InvokerRegister.go @@ -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)