github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/onetimetoken/automock/application_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  // ApplicationConverter is an autogenerated mock type for the ApplicationConverter type
    13  type ApplicationConverter struct {
    14  	mock.Mock
    15  }
    16  
    17  // ToGraphQL provides a mock function with given fields: in
    18  func (_m *ApplicationConverter) ToGraphQL(in *model.Application) *graphql.Application {
    19  	ret := _m.Called(in)
    20  
    21  	var r0 *graphql.Application
    22  	if rf, ok := ret.Get(0).(func(*model.Application) *graphql.Application); ok {
    23  		r0 = rf(in)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).(*graphql.Application)
    27  		}
    28  	}
    29  
    30  	return r0
    31  }
    32  
    33  type mockConstructorTestingTNewApplicationConverter interface {
    34  	mock.TestingT
    35  	Cleanup(func())
    36  }
    37  
    38  // NewApplicationConverter creates a new instance of ApplicationConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    39  func NewApplicationConverter(t mockConstructorTestingTNewApplicationConverter) *ApplicationConverter {
    40  	mock := &ApplicationConverter{}
    41  	mock.Mock.Test(t)
    42  
    43  	t.Cleanup(func() { mock.AssertExpectations(t) })
    44  
    45  	return mock
    46  }