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

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	context "context"
     7  
     8  	model "github.com/kyma-incubator/compass/components/director/internal/model"
     9  	mock "github.com/stretchr/testify/mock"
    10  
    11  	time "time"
    12  )
    13  
    14  // OperationRepository is an autogenerated mock type for the OperationRepository type
    15  type OperationRepository struct {
    16  	mock.Mock
    17  }
    18  
    19  // Create provides a mock function with given fields: ctx, _a1
    20  func (_m *OperationRepository) Create(ctx context.Context, _a1 *model.Operation) error {
    21  	ret := _m.Called(ctx, _a1)
    22  
    23  	var r0 error
    24  	if rf, ok := ret.Get(0).(func(context.Context, *model.Operation) error); ok {
    25  		r0 = rf(ctx, _a1)
    26  	} else {
    27  		r0 = ret.Error(0)
    28  	}
    29  
    30  	return r0
    31  }
    32  
    33  // DeleteOlderThan provides a mock function with given fields: ctx, opType, status, date
    34  func (_m *OperationRepository) DeleteOlderThan(ctx context.Context, opType string, status model.OperationStatus, date time.Time) error {
    35  	ret := _m.Called(ctx, opType, status, date)
    36  
    37  	var r0 error
    38  	if rf, ok := ret.Get(0).(func(context.Context, string, model.OperationStatus, time.Time) error); ok {
    39  		r0 = rf(ctx, opType, status, date)
    40  	} else {
    41  		r0 = ret.Error(0)
    42  	}
    43  
    44  	return r0
    45  }
    46  
    47  type mockConstructorTestingTNewOperationRepository interface {
    48  	mock.TestingT
    49  	Cleanup(func())
    50  }
    51  
    52  // NewOperationRepository creates a new instance of OperationRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    53  func NewOperationRepository(t mockConstructorTestingTNewOperationRepository) *OperationRepository {
    54  	mock := &OperationRepository{}
    55  	mock.Mock.Test(t)
    56  
    57  	t.Cleanup(func() { mock.AssertExpectations(t) })
    58  
    59  	return mock
    60  }