1 // Code generated by mockery v2.14.0. DO NOT EDIT.
6 mock "github.com/stretchr/testify/mock"
8 publishserviceapi "oransc.org/nonrtric/capifcore/internal/publishserviceapi"
11 // APIRegister is an autogenerated mock type for the APIRegister type
12 type APIRegister struct {
16 // AreAPIsRegistered provides a mock function with given fields: serviceDescriptions
17 func (_m *APIRegister) AreAPIsRegistered(serviceDescriptions *[]publishserviceapi.ServiceAPIDescription) bool {
18 ret := _m.Called(serviceDescriptions)
21 if rf, ok := ret.Get(0).(func(*[]publishserviceapi.ServiceAPIDescription) bool); ok {
22 r0 = rf(serviceDescriptions)
24 r0 = ret.Get(0).(bool)
30 // GetAPIs provides a mock function with given fields:
31 func (_m *APIRegister) GetAPIs() *[]publishserviceapi.ServiceAPIDescription {
34 var r0 *[]publishserviceapi.ServiceAPIDescription
35 if rf, ok := ret.Get(0).(func() *[]publishserviceapi.ServiceAPIDescription); ok {
38 if ret.Get(0) != nil {
39 r0 = ret.Get(0).(*[]publishserviceapi.ServiceAPIDescription)
46 // IsAPIRegistered provides a mock function with given fields: aefId, path
47 func (_m *APIRegister) IsAPIRegistered(aefId string, path string) bool {
48 ret := _m.Called(aefId, path)
51 if rf, ok := ret.Get(0).(func(string, string) bool); ok {
54 r0 = ret.Get(0).(bool)
60 type mockConstructorTestingTNewAPIRegister interface {
65 // NewAPIRegister creates a new instance of APIRegister. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
66 func NewAPIRegister(t mockConstructorTestingTNewAPIRegister) *APIRegister {
67 mock := &APIRegister{}
70 t.Cleanup(func() { mock.AssertExpectations(t) })