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