-
Notifications
You must be signed in to change notification settings - Fork 178
/
block_computer.go
44 lines (33 loc) · 1.23 KB
/
block_computer.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mock
import (
context "context"
delta "github.com/onflow/flow-go/engine/execution/state/delta"
entity "github.com/onflow/flow-go/module/mempool/entity"
execution "github.com/onflow/flow-go/engine/execution"
fvm "github.com/onflow/flow-go/fvm"
mock "github.com/stretchr/testify/mock"
)
// BlockComputer is an autogenerated mock type for the BlockComputer type
type BlockComputer struct {
mock.Mock
}
// ExecuteBlock provides a mock function with given fields: _a0, _a1, _a2, _a3
func (_m *BlockComputer) ExecuteBlock(_a0 context.Context, _a1 *entity.ExecutableBlock, _a2 *delta.View, _a3 *fvm.Programs) (*execution.ComputationResult, error) {
ret := _m.Called(_a0, _a1, _a2, _a3)
var r0 *execution.ComputationResult
if rf, ok := ret.Get(0).(func(context.Context, *entity.ExecutableBlock, *delta.View, *fvm.Programs) *execution.ComputationResult); ok {
r0 = rf(_a0, _a1, _a2, _a3)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*execution.ComputationResult)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *entity.ExecutableBlock, *delta.View, *fvm.Programs) error); ok {
r1 = rf(_a0, _a1, _a2, _a3)
} else {
r1 = ret.Error(1)
}
return r0, r1
}