github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/destination/automock/runtime_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 11 // RuntimeRepository is an autogenerated mock type for the runtimeRepository type 12 type RuntimeRepository struct { 13 mock.Mock 14 } 15 16 // OwnerExists provides a mock function with given fields: ctx, tenant, id 17 func (_m *RuntimeRepository) OwnerExists(ctx context.Context, tenant string, id string) (bool, error) { 18 ret := _m.Called(ctx, tenant, id) 19 20 var r0 bool 21 if rf, ok := ret.Get(0).(func(context.Context, string, string) bool); ok { 22 r0 = rf(ctx, tenant, id) 23 } else { 24 r0 = ret.Get(0).(bool) 25 } 26 27 var r1 error 28 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 29 r1 = rf(ctx, tenant, id) 30 } else { 31 r1 = ret.Error(1) 32 } 33 34 return r0, r1 35 } 36 37 type mockConstructorTestingTNewRuntimeRepository interface { 38 mock.TestingT 39 Cleanup(func()) 40 } 41 42 // NewRuntimeRepository creates a new instance of RuntimeRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 43 func NewRuntimeRepository(t mockConstructorTestingTNewRuntimeRepository) *RuntimeRepository { 44 mock := &RuntimeRepository{} 45 mock.Mock.Test(t) 46 47 t.Cleanup(func() { mock.AssertExpectations(t) }) 48 49 return mock 50 }