-
Notifications
You must be signed in to change notification settings - Fork 211
/
vm.go
116 lines (98 loc) · 3.41 KB
/
vm.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Code generated by MockGen. DO NOT EDIT.
// Source: ./vm.go
//
// Generated by this command:
//
// mockgen -typed -package=mocks -destination=./mocks/vm.go -source=./vm.go
//
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
types "github.com/spacemeshos/go-spacemesh/common/types"
gomock "go.uber.org/mock/gomock"
)
// MockValidationRequest is a mock of ValidationRequest interface.
type MockValidationRequest struct {
ctrl *gomock.Controller
recorder *MockValidationRequestMockRecorder
}
// MockValidationRequestMockRecorder is the mock recorder for MockValidationRequest.
type MockValidationRequestMockRecorder struct {
mock *MockValidationRequest
}
// NewMockValidationRequest creates a new mock instance.
func NewMockValidationRequest(ctrl *gomock.Controller) *MockValidationRequest {
mock := &MockValidationRequest{ctrl: ctrl}
mock.recorder = &MockValidationRequestMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockValidationRequest) EXPECT() *MockValidationRequestMockRecorder {
return m.recorder
}
// Parse mocks base method.
func (m *MockValidationRequest) Parse() (*types.TxHeader, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Parse")
ret0, _ := ret[0].(*types.TxHeader)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Parse indicates an expected call of Parse.
func (mr *MockValidationRequestMockRecorder) Parse() *ValidationRequestParseCall {
mr.mock.ctrl.T.Helper()
call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Parse", reflect.TypeOf((*MockValidationRequest)(nil).Parse))
return &ValidationRequestParseCall{Call: call}
}
// ValidationRequestParseCall wrap *gomock.Call
type ValidationRequestParseCall struct {
*gomock.Call
}
// Return rewrite *gomock.Call.Return
func (c *ValidationRequestParseCall) Return(arg0 *types.TxHeader, arg1 error) *ValidationRequestParseCall {
c.Call = c.Call.Return(arg0, arg1)
return c
}
// Do rewrite *gomock.Call.Do
func (c *ValidationRequestParseCall) Do(f func() (*types.TxHeader, error)) *ValidationRequestParseCall {
c.Call = c.Call.Do(f)
return c
}
// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *ValidationRequestParseCall) DoAndReturn(f func() (*types.TxHeader, error)) *ValidationRequestParseCall {
c.Call = c.Call.DoAndReturn(f)
return c
}
// Verify mocks base method.
func (m *MockValidationRequest) Verify() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Verify")
ret0, _ := ret[0].(bool)
return ret0
}
// Verify indicates an expected call of Verify.
func (mr *MockValidationRequestMockRecorder) Verify() *ValidationRequestVerifyCall {
mr.mock.ctrl.T.Helper()
call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockValidationRequest)(nil).Verify))
return &ValidationRequestVerifyCall{Call: call}
}
// ValidationRequestVerifyCall wrap *gomock.Call
type ValidationRequestVerifyCall struct {
*gomock.Call
}
// Return rewrite *gomock.Call.Return
func (c *ValidationRequestVerifyCall) Return(arg0 bool) *ValidationRequestVerifyCall {
c.Call = c.Call.Return(arg0)
return c
}
// Do rewrite *gomock.Call.Do
func (c *ValidationRequestVerifyCall) Do(f func() bool) *ValidationRequestVerifyCall {
c.Call = c.Call.Do(f)
return c
}
// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *ValidationRequestVerifyCall) DoAndReturn(f func() bool) *ValidationRequestVerifyCall {
c.Call = c.Call.DoAndReturn(f)
return c
}