github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/bundleinstanceauth/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  // CreateInputFromGraphQL provides a mock function with given fields: in
    18  func (_m *Converter) CreateInputFromGraphQL(in graphql.BundleInstanceAuthCreateInput) (model.BundleInstanceAuthCreateInput, error) {
    19  	ret := _m.Called(in)
    20  
    21  	var r0 model.BundleInstanceAuthCreateInput
    22  	if rf, ok := ret.Get(0).(func(graphql.BundleInstanceAuthCreateInput) model.BundleInstanceAuthCreateInput); ok {
    23  		r0 = rf(in)
    24  	} else {
    25  		r0 = ret.Get(0).(model.BundleInstanceAuthCreateInput)
    26  	}
    27  
    28  	var r1 error
    29  	if rf, ok := ret.Get(1).(func(graphql.BundleInstanceAuthCreateInput) error); ok {
    30  		r1 = rf(in)
    31  	} else {
    32  		r1 = ret.Error(1)
    33  	}
    34  
    35  	return r0, r1
    36  }
    37  
    38  // RequestInputFromGraphQL provides a mock function with given fields: in
    39  func (_m *Converter) RequestInputFromGraphQL(in graphql.BundleInstanceAuthRequestInput) model.BundleInstanceAuthRequestInput {
    40  	ret := _m.Called(in)
    41  
    42  	var r0 model.BundleInstanceAuthRequestInput
    43  	if rf, ok := ret.Get(0).(func(graphql.BundleInstanceAuthRequestInput) model.BundleInstanceAuthRequestInput); ok {
    44  		r0 = rf(in)
    45  	} else {
    46  		r0 = ret.Get(0).(model.BundleInstanceAuthRequestInput)
    47  	}
    48  
    49  	return r0
    50  }
    51  
    52  // SetInputFromGraphQL provides a mock function with given fields: in
    53  func (_m *Converter) SetInputFromGraphQL(in graphql.BundleInstanceAuthSetInput) (model.BundleInstanceAuthSetInput, error) {
    54  	ret := _m.Called(in)
    55  
    56  	var r0 model.BundleInstanceAuthSetInput
    57  	if rf, ok := ret.Get(0).(func(graphql.BundleInstanceAuthSetInput) model.BundleInstanceAuthSetInput); ok {
    58  		r0 = rf(in)
    59  	} else {
    60  		r0 = ret.Get(0).(model.BundleInstanceAuthSetInput)
    61  	}
    62  
    63  	var r1 error
    64  	if rf, ok := ret.Get(1).(func(graphql.BundleInstanceAuthSetInput) error); ok {
    65  		r1 = rf(in)
    66  	} else {
    67  		r1 = ret.Error(1)
    68  	}
    69  
    70  	return r0, r1
    71  }
    72  
    73  // ToGraphQL provides a mock function with given fields: in
    74  func (_m *Converter) ToGraphQL(in *model.BundleInstanceAuth) (*graphql.BundleInstanceAuth, error) {
    75  	ret := _m.Called(in)
    76  
    77  	var r0 *graphql.BundleInstanceAuth
    78  	if rf, ok := ret.Get(0).(func(*model.BundleInstanceAuth) *graphql.BundleInstanceAuth); ok {
    79  		r0 = rf(in)
    80  	} else {
    81  		if ret.Get(0) != nil {
    82  			r0 = ret.Get(0).(*graphql.BundleInstanceAuth)
    83  		}
    84  	}
    85  
    86  	var r1 error
    87  	if rf, ok := ret.Get(1).(func(*model.BundleInstanceAuth) error); ok {
    88  		r1 = rf(in)
    89  	} else {
    90  		r1 = ret.Error(1)
    91  	}
    92  
    93  	return r0, r1
    94  }
    95  
    96  // UpdateInputFromGraphQL provides a mock function with given fields: in
    97  func (_m *Converter) UpdateInputFromGraphQL(in graphql.BundleInstanceAuthUpdateInput) (model.BundleInstanceAuthUpdateInput, error) {
    98  	ret := _m.Called(in)
    99  
   100  	var r0 model.BundleInstanceAuthUpdateInput
   101  	if rf, ok := ret.Get(0).(func(graphql.BundleInstanceAuthUpdateInput) model.BundleInstanceAuthUpdateInput); ok {
   102  		r0 = rf(in)
   103  	} else {
   104  		r0 = ret.Get(0).(model.BundleInstanceAuthUpdateInput)
   105  	}
   106  
   107  	var r1 error
   108  	if rf, ok := ret.Get(1).(func(graphql.BundleInstanceAuthUpdateInput) error); ok {
   109  		r1 = rf(in)
   110  	} else {
   111  		r1 = ret.Error(1)
   112  	}
   113  
   114  	return r0, r1
   115  }
   116  
   117  type mockConstructorTestingTNewConverter interface {
   118  	mock.TestingT
   119  	Cleanup(func())
   120  }
   121  
   122  // 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.
   123  func NewConverter(t mockConstructorTestingTNewConverter) *Converter {
   124  	mock := &Converter{}
   125  	mock.Mock.Test(t)
   126  
   127  	t.Cleanup(func() { mock.AssertExpectations(t) })
   128  
   129  	return mock
   130  }