github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/formationassignment/automock/entity_converter.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 formationassignment "github.com/kyma-incubator/compass/components/director/internal/domain/formationassignment" 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 *formationassignment.Entity) *model.FormationAssignment { 19 ret := _m.Called(entity) 20 21 var r0 *model.FormationAssignment 22 if rf, ok := ret.Get(0).(func(*formationassignment.Entity) *model.FormationAssignment); ok { 23 r0 = rf(entity) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(*model.FormationAssignment) 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.FormationAssignment) *formationassignment.Entity { 35 ret := _m.Called(in) 36 37 var r0 *formationassignment.Entity 38 if rf, ok := ret.Get(0).(func(*model.FormationAssignment) *formationassignment.Entity); ok { 39 r0 = rf(in) 40 } else { 41 if ret.Get(0) != nil { 42 r0 = ret.Get(0).(*formationassignment.Entity) 43 } 44 } 45 46 return r0 47 } 48 49 type mockConstructorTestingTNewEntityConverter interface { 50 mock.TestingT 51 Cleanup(func()) 52 } 53 54 // 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. 55 func NewEntityConverter(t mockConstructorTestingTNewEntityConverter) *EntityConverter { 56 mock := &EntityConverter{} 57 mock.Mock.Test(t) 58 59 t.Cleanup(func() { mock.AssertExpectations(t) }) 60 61 return mock 62 }