github.com/koko1123/flow-go-1@v0.29.6/engine/execution/state/mock/view_committer.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 context "context" 7 8 delta "github.com/koko1123/flow-go-1/engine/execution/state/delta" 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // ViewCommitter is an autogenerated mock type for the ViewCommitter type 13 type ViewCommitter struct { 14 mock.Mock 15 } 16 17 // CommitView provides a mock function with given fields: _a0, _a1, _a2 18 func (_m *ViewCommitter) CommitView(_a0 context.Context, _a1 delta.View, _a2 []byte) ([]byte, []byte, error) { 19 ret := _m.Called(_a0, _a1, _a2) 20 21 var r0 []byte 22 if rf, ok := ret.Get(0).(func(context.Context, delta.View, []byte) []byte); ok { 23 r0 = rf(_a0, _a1, _a2) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).([]byte) 27 } 28 } 29 30 var r1 []byte 31 if rf, ok := ret.Get(1).(func(context.Context, delta.View, []byte) []byte); ok { 32 r1 = rf(_a0, _a1, _a2) 33 } else { 34 if ret.Get(1) != nil { 35 r1 = ret.Get(1).([]byte) 36 } 37 } 38 39 var r2 error 40 if rf, ok := ret.Get(2).(func(context.Context, delta.View, []byte) error); ok { 41 r2 = rf(_a0, _a1, _a2) 42 } else { 43 r2 = ret.Error(2) 44 } 45 46 return r0, r1, r2 47 }