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