github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/scenarioassignment/automock/entity_converter.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 scenarioassignment "github.com/kyma-incubator/compass/components/director/internal/domain/scenarioassignment" 7 model "github.com/kyma-incubator/compass/components/director/internal/model" 8 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // EntityConverter is an autogenerated mock type for the EntityConverter type 12 type EntityConverter struct { 13 mock.Mock 14 } 15 16 // FromEntity provides a mock function with given fields: assignment 17 func (_m *EntityConverter) FromEntity(assignment scenarioassignment.Entity) model.AutomaticScenarioAssignment { 18 ret := _m.Called(assignment) 19 20 var r0 model.AutomaticScenarioAssignment 21 if rf, ok := ret.Get(0).(func(scenarioassignment.Entity) model.AutomaticScenarioAssignment); ok { 22 r0 = rf(assignment) 23 } else { 24 r0 = ret.Get(0).(model.AutomaticScenarioAssignment) 25 } 26 27 return r0 28 } 29 30 // ToEntity provides a mock function with given fields: assignment 31 func (_m *EntityConverter) ToEntity(assignment model.AutomaticScenarioAssignment) scenarioassignment.Entity { 32 ret := _m.Called(assignment) 33 34 var r0 scenarioassignment.Entity 35 if rf, ok := ret.Get(0).(func(model.AutomaticScenarioAssignment) scenarioassignment.Entity); ok { 36 r0 = rf(assignment) 37 } else { 38 r0 = ret.Get(0).(scenarioassignment.Entity) 39 } 40 41 return r0 42 } 43 44 type mockConstructorTestingTNewEntityConverter interface { 45 mock.TestingT 46 Cleanup(func()) 47 } 48 49 // 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. 50 func NewEntityConverter(t mockConstructorTestingTNewEntityConverter) *EntityConverter { 51 mock := &EntityConverter{} 52 mock.Mock.Test(t) 53 54 t.Cleanup(func() { mock.AssertExpectations(t) }) 55 56 return mock 57 }