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

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