-
Notifications
You must be signed in to change notification settings - Fork 179
/
block_computer.go
44 lines (33 loc) · 1.24 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"
execution "github.com/onflow/flow-go/engine/execution"
entity "github.com/onflow/flow-go/module/mempool/entity"
mock "github.com/stretchr/testify/mock"
programs "github.com/onflow/flow-go/fvm/programs"
state "github.com/onflow/flow-go/fvm/state"
)
// 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 state.View, _a3 *programs.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, state.View, *programs.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, state.View, *programs.Programs) error); ok {
r1 = rf(_a0, _a1, _a2, _a3)
} else {
r1 = ret.Error(1)
}
return r0, r1
}