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

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	systemssync "github.com/kyma-incubator/compass/components/director/internal/domain/systemssync"
     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: entity
    17  func (_m *EntityConverter) FromEntity(entity *systemssync.Entity) *model.SystemSynchronizationTimestamp {
    18  	ret := _m.Called(entity)
    19  
    20  	var r0 *model.SystemSynchronizationTimestamp
    21  	if rf, ok := ret.Get(0).(func(*systemssync.Entity) *model.SystemSynchronizationTimestamp); ok {
    22  		r0 = rf(entity)
    23  	} else {
    24  		if ret.Get(0) != nil {
    25  			r0 = ret.Get(0).(*model.SystemSynchronizationTimestamp)
    26  		}
    27  	}
    28  
    29  	return r0
    30  }
    31  
    32  // ToEntity provides a mock function with given fields: in
    33  func (_m *EntityConverter) ToEntity(in *model.SystemSynchronizationTimestamp) *systemssync.Entity {
    34  	ret := _m.Called(in)
    35  
    36  	var r0 *systemssync.Entity
    37  	if rf, ok := ret.Get(0).(func(*model.SystemSynchronizationTimestamp) *systemssync.Entity); ok {
    38  		r0 = rf(in)
    39  	} else {
    40  		if ret.Get(0) != nil {
    41  			r0 = ret.Get(0).(*systemssync.Entity)
    42  		}
    43  	}
    44  
    45  	return r0
    46  }
    47  
    48  type mockConstructorTestingTNewEntityConverter interface {
    49  	mock.TestingT
    50  	Cleanup(func())
    51  }
    52  
    53  // 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.
    54  func NewEntityConverter(t mockConstructorTestingTNewEntityConverter) *EntityConverter {
    55  	mock := &EntityConverter{}
    56  	mock.Mock.Test(t)
    57  
    58  	t.Cleanup(func() { mock.AssertExpectations(t) })
    59  
    60  	return mock
    61  }