github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/fvm/mock/procedure_executor.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 fvm "github.com/onflow/flow-go/fvm" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // ProcedureExecutor is an autogenerated mock type for the ProcedureExecutor type 11 type ProcedureExecutor struct { 12 mock.Mock 13 } 14 15 // Cleanup provides a mock function with given fields: 16 func (_m *ProcedureExecutor) Cleanup() { 17 _m.Called() 18 } 19 20 // Execute provides a mock function with given fields: 21 func (_m *ProcedureExecutor) Execute() error { 22 ret := _m.Called() 23 24 var r0 error 25 if rf, ok := ret.Get(0).(func() error); ok { 26 r0 = rf() 27 } else { 28 r0 = ret.Error(0) 29 } 30 31 return r0 32 } 33 34 // Output provides a mock function with given fields: 35 func (_m *ProcedureExecutor) Output() fvm.ProcedureOutput { 36 ret := _m.Called() 37 38 var r0 fvm.ProcedureOutput 39 if rf, ok := ret.Get(0).(func() fvm.ProcedureOutput); ok { 40 r0 = rf() 41 } else { 42 r0 = ret.Get(0).(fvm.ProcedureOutput) 43 } 44 45 return r0 46 } 47 48 // Preprocess provides a mock function with given fields: 49 func (_m *ProcedureExecutor) Preprocess() error { 50 ret := _m.Called() 51 52 var r0 error 53 if rf, ok := ret.Get(0).(func() error); ok { 54 r0 = rf() 55 } else { 56 r0 = ret.Error(0) 57 } 58 59 return r0 60 } 61 62 type mockConstructorTestingTNewProcedureExecutor interface { 63 mock.TestingT 64 Cleanup(func()) 65 } 66 67 // NewProcedureExecutor creates a new instance of ProcedureExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 68 func NewProcedureExecutor(t mockConstructorTestingTNewProcedureExecutor) *ProcedureExecutor { 69 mock := &ProcedureExecutor{} 70 mock.Mock.Test(t) 71 72 t.Cleanup(func() { mock.AssertExpectations(t) }) 73 74 return mock 75 }