github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/process/provisioning/automock/step.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 internal "github.com/kyma-project/kyma-environment-broker/internal" 7 logrus "github.com/sirupsen/logrus" 8 9 mock "github.com/stretchr/testify/mock" 10 11 time "time" 12 ) 13 14 // Step is an autogenerated mock type for the Step type 15 type Step struct { 16 mock.Mock 17 } 18 19 // Name provides a mock function with given fields: 20 func (_m *Step) Name() string { 21 ret := _m.Called() 22 23 var r0 string 24 if rf, ok := ret.Get(0).(func() string); ok { 25 r0 = rf() 26 } else { 27 r0 = ret.Get(0).(string) 28 } 29 30 return r0 31 } 32 33 // Run provides a mock function with given fields: operation, logger 34 func (_m *Step) Run(operation internal.Operation, logger logrus.FieldLogger) (internal.Operation, time.Duration, error) { 35 ret := _m.Called(operation, logger) 36 37 var r0 internal.Operation 38 if rf, ok := ret.Get(0).(func(internal.Operation, logrus.FieldLogger) internal.Operation); ok { 39 r0 = rf(operation, logger) 40 } else { 41 r0 = ret.Get(0).(internal.Operation) 42 } 43 44 var r1 time.Duration 45 if rf, ok := ret.Get(1).(func(internal.Operation, logrus.FieldLogger) time.Duration); ok { 46 r1 = rf(operation, logger) 47 } else { 48 r1 = ret.Get(1).(time.Duration) 49 } 50 51 var r2 error 52 if rf, ok := ret.Get(2).(func(internal.Operation, logrus.FieldLogger) error); ok { 53 r2 = rf(operation, logger) 54 } else { 55 r2 = ret.Error(2) 56 } 57 58 return r0, r1, r2 59 }