github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/eventing/automock/eventing_service.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	context "context"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  
    10  	model "github.com/kyma-incubator/compass/components/director/internal/model"
    11  
    12  	uuid "github.com/google/uuid"
    13  )
    14  
    15  // EventingService is an autogenerated mock type for the EventingService type
    16  type EventingService struct {
    17  	mock.Mock
    18  }
    19  
    20  // SetForApplication provides a mock function with given fields: ctx, runtimeID, app
    21  func (_m *EventingService) SetForApplication(ctx context.Context, runtimeID uuid.UUID, app model.Application) (*model.ApplicationEventingConfiguration, error) {
    22  	ret := _m.Called(ctx, runtimeID, app)
    23  
    24  	var r0 *model.ApplicationEventingConfiguration
    25  	if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID, model.Application) *model.ApplicationEventingConfiguration); ok {
    26  		r0 = rf(ctx, runtimeID, app)
    27  	} else {
    28  		if ret.Get(0) != nil {
    29  			r0 = ret.Get(0).(*model.ApplicationEventingConfiguration)
    30  		}
    31  	}
    32  
    33  	var r1 error
    34  	if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID, model.Application) error); ok {
    35  		r1 = rf(ctx, runtimeID, app)
    36  	} else {
    37  		r1 = ret.Error(1)
    38  	}
    39  
    40  	return r0, r1
    41  }
    42  
    43  // UnsetForApplication provides a mock function with given fields: ctx, app
    44  func (_m *EventingService) UnsetForApplication(ctx context.Context, app model.Application) (*model.ApplicationEventingConfiguration, error) {
    45  	ret := _m.Called(ctx, app)
    46  
    47  	var r0 *model.ApplicationEventingConfiguration
    48  	if rf, ok := ret.Get(0).(func(context.Context, model.Application) *model.ApplicationEventingConfiguration); ok {
    49  		r0 = rf(ctx, app)
    50  	} else {
    51  		if ret.Get(0) != nil {
    52  			r0 = ret.Get(0).(*model.ApplicationEventingConfiguration)
    53  		}
    54  	}
    55  
    56  	var r1 error
    57  	if rf, ok := ret.Get(1).(func(context.Context, model.Application) error); ok {
    58  		r1 = rf(ctx, app)
    59  	} else {
    60  		r1 = ret.Error(1)
    61  	}
    62  
    63  	return r0, r1
    64  }
    65  
    66  type mockConstructorTestingTNewEventingService interface {
    67  	mock.TestingT
    68  	Cleanup(func())
    69  }
    70  
    71  // NewEventingService creates a new instance of EventingService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    72  func NewEventingService(t mockConstructorTestingTNewEventingService) *EventingService {
    73  	mock := &EventingService{}
    74  	mock.Mock.Test(t)
    75  
    76  	t.Cleanup(func() { mock.AssertExpectations(t) })
    77  
    78  	return mock
    79  }