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

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