github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/destination/automock/destination_repository.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  
    13  // DestinationRepository is an autogenerated mock type for the destinationRepository type
    14  type DestinationRepository struct {
    15  	mock.Mock
    16  }
    17  
    18  // DeleteByDestinationNameAndAssignmentID provides a mock function with given fields: ctx, destinationName, formationAssignmentID, tenantID
    19  func (_m *DestinationRepository) DeleteByDestinationNameAndAssignmentID(ctx context.Context, destinationName string, formationAssignmentID string, tenantID string) error {
    20  	ret := _m.Called(ctx, destinationName, formationAssignmentID, tenantID)
    21  
    22  	var r0 error
    23  	if rf, ok := ret.Get(0).(func(context.Context, string, string, string) error); ok {
    24  		r0 = rf(ctx, destinationName, formationAssignmentID, tenantID)
    25  	} else {
    26  		r0 = ret.Error(0)
    27  	}
    28  
    29  	return r0
    30  }
    31  
    32  // ListByTenantIDAndAssignmentID provides a mock function with given fields: ctx, tenantID, formationAssignmentID
    33  func (_m *DestinationRepository) ListByTenantIDAndAssignmentID(ctx context.Context, tenantID string, formationAssignmentID string) ([]*model.Destination, error) {
    34  	ret := _m.Called(ctx, tenantID, formationAssignmentID)
    35  
    36  	var r0 []*model.Destination
    37  	if rf, ok := ret.Get(0).(func(context.Context, string, string) []*model.Destination); ok {
    38  		r0 = rf(ctx, tenantID, formationAssignmentID)
    39  	} else {
    40  		if ret.Get(0) != nil {
    41  			r0 = ret.Get(0).([]*model.Destination)
    42  		}
    43  	}
    44  
    45  	var r1 error
    46  	if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok {
    47  		r1 = rf(ctx, tenantID, formationAssignmentID)
    48  	} else {
    49  		r1 = ret.Error(1)
    50  	}
    51  
    52  	return r0, r1
    53  }
    54  
    55  // UpsertWithEmbeddedTenant provides a mock function with given fields: ctx, _a1
    56  func (_m *DestinationRepository) UpsertWithEmbeddedTenant(ctx context.Context, _a1 *model.Destination) error {
    57  	ret := _m.Called(ctx, _a1)
    58  
    59  	var r0 error
    60  	if rf, ok := ret.Get(0).(func(context.Context, *model.Destination) error); ok {
    61  		r0 = rf(ctx, _a1)
    62  	} else {
    63  		r0 = ret.Error(0)
    64  	}
    65  
    66  	return r0
    67  }
    68  
    69  type mockConstructorTestingTNewDestinationRepository interface {
    70  	mock.TestingT
    71  	Cleanup(func())
    72  }
    73  
    74  // NewDestinationRepository creates a new instance of DestinationRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    75  func NewDestinationRepository(t mockConstructorTestingTNewDestinationRepository) *DestinationRepository {
    76  	mock := &DestinationRepository{}
    77  	mock.Mock.Test(t)
    78  
    79  	t.Cleanup(func() { mock.AssertExpectations(t) })
    80  
    81  	return mock
    82  }