X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=internal%2Fpublishservice%2Fmocks%2FAPIRegister.go;fp=internal%2Fpublishservice%2Fmocks%2FAPIRegister.go;h=3ec76992bee9e409b0499357916dd822f17a575b;hb=3d37436267da1867cf4cf9a4e39a6b0da2271b38;hp=0000000000000000000000000000000000000000;hpb=96d4aabf009d42ed479fe49aad416495201f2b2c;p=nonrtric%2Fplt%2Fsme.git diff --git a/internal/publishservice/mocks/APIRegister.go b/internal/publishservice/mocks/APIRegister.go new file mode 100644 index 0000000..3ec7699 --- /dev/null +++ b/internal/publishservice/mocks/APIRegister.go @@ -0,0 +1,73 @@ +// Code generated by mockery v2.14.0. DO NOT EDIT. + +package mocks + +import ( + mock "github.com/stretchr/testify/mock" + + publishserviceapi "oransc.org/nonrtric/sme/internal/publishserviceapi" +) + +// APIRegister is an autogenerated mock type for the APIRegister type +type APIRegister struct { + mock.Mock +} + +// AreAPIsRegistered provides a mock function with given fields: serviceDescriptions +func (_m *APIRegister) AreAPIsRegistered(serviceDescriptions *[]publishserviceapi.ServiceAPIDescription) bool { + ret := _m.Called(serviceDescriptions) + + var r0 bool + if rf, ok := ret.Get(0).(func(*[]publishserviceapi.ServiceAPIDescription) bool); ok { + r0 = rf(serviceDescriptions) + } else { + r0 = ret.Get(0).(bool) + } + + return r0 +} + +// GetAPIs provides a mock function with given fields: +func (_m *APIRegister) GetAPIs() *[]publishserviceapi.ServiceAPIDescription { + ret := _m.Called() + + var r0 *[]publishserviceapi.ServiceAPIDescription + if rf, ok := ret.Get(0).(func() *[]publishserviceapi.ServiceAPIDescription); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*[]publishserviceapi.ServiceAPIDescription) + } + } + + return r0 +} + +// IsAPIRegistered provides a mock function with given fields: aefId, path +func (_m *APIRegister) IsAPIRegistered(aefId string, path string) bool { + ret := _m.Called(aefId, path) + + var r0 bool + if rf, ok := ret.Get(0).(func(string, string) bool); ok { + r0 = rf(aefId, path) + } else { + r0 = ret.Get(0).(bool) + } + + return r0 +} + +type mockConstructorTestingTNewAPIRegister interface { + mock.TestingT + Cleanup(func()) +} + +// 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. +func NewAPIRegister(t mockConstructorTestingTNewAPIRegister) *APIRegister { + mock := &APIRegister{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +}