1 // Code generated by mockery v2.35.4. DO NOT EDIT.
6 mock "github.com/stretchr/testify/mock"
8 publishserviceapi "oransc.org/nonrtric/capifcore/internal/publishserviceapi"
11 // PublishRegister is an autogenerated mock type for the PublishRegister type
12 type PublishRegister struct {
16 // GetAllPublishedServices provides a mock function with given fields:
17 func (_m *PublishRegister) GetAllPublishedServices() []publishserviceapi.ServiceAPIDescription {
20 var r0 []publishserviceapi.ServiceAPIDescription
21 if rf, ok := ret.Get(0).(func() []publishserviceapi.ServiceAPIDescription); ok {
24 if ret.Get(0) != nil {
25 r0 = ret.Get(0).([]publishserviceapi.ServiceAPIDescription)
32 // GetAllowedPublishedServices provides a mock function with given fields: invokerApiList
33 func (_m *PublishRegister) GetAllowedPublishedServices(invokerApiList []publishserviceapi.ServiceAPIDescription) []publishserviceapi.ServiceAPIDescription {
34 ret := _m.Called(invokerApiList)
36 var r0 []publishserviceapi.ServiceAPIDescription
37 if rf, ok := ret.Get(0).(func([]publishserviceapi.ServiceAPIDescription) []publishserviceapi.ServiceAPIDescription); ok {
38 r0 = rf(invokerApiList)
40 if ret.Get(0) != nil {
41 r0 = ret.Get(0).([]publishserviceapi.ServiceAPIDescription)
48 // IsAPIPublished provides a mock function with given fields: aefId, path
49 func (_m *PublishRegister) IsAPIPublished(aefId string, path string) bool {
50 ret := _m.Called(aefId, path)
53 if rf, ok := ret.Get(0).(func(string, string) bool); ok {
56 r0 = ret.Get(0).(bool)
62 // NewPublishRegister creates a new instance of PublishRegister. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
63 // The first argument is typically a *testing.T value.
64 func NewPublishRegister(t interface {
68 mock := &PublishRegister{}
71 t.Cleanup(func() { mock.AssertExpectations(t) })