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=0000000000000000000000000000000000000000;hb=c9e08b2a2f647f9f870040570c5e71305f0fb5d2;hp=3ec76992bee9e409b0499357916dd822f17a575b;hpb=8fcfa4ecde6d95ead33c34b0e7efc4933ad44444;p=nonrtric%2Fplt%2Fsme.git diff --git a/internal/publishservice/mocks/APIRegister.go b/internal/publishservice/mocks/APIRegister.go deleted file mode 100644 index 3ec7699..0000000 --- a/internal/publishservice/mocks/APIRegister.go +++ /dev/null @@ -1,73 +0,0 @@ -// 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 -}