-
Notifications
You must be signed in to change notification settings - Fork 113
/
mvcc_mock.go
116 lines (96 loc) · 3.74 KB
/
mvcc_mock.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: github.com/iost-official/go-iost/vm/database (interfaces: IMultiValue)
// Package database is a generated GoMock package.
package database
import (
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockIMultiValue is a mock of IMultiValue interface
type MockIMultiValue struct {
ctrl *gomock.Controller
recorder *MockIMultiValueMockRecorder
}
// MockIMultiValueMockRecorder is the mock recorder for MockIMultiValue
type MockIMultiValueMockRecorder struct {
mock *MockIMultiValue
}
// NewMockIMultiValue creates a new mock instance
func NewMockIMultiValue(ctrl *gomock.Controller) *MockIMultiValue {
mock := &MockIMultiValue{ctrl: ctrl}
mock.recorder = &MockIMultiValueMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockIMultiValue) EXPECT() *MockIMultiValueMockRecorder {
return m.recorder
}
// Commit mocks base method
func (m *MockIMultiValue) Commit() {
m.ctrl.Call(m, "Commit")
}
// Commit indicates an expected call of Commit
func (mr *MockIMultiValueMockRecorder) Commit() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockIMultiValue)(nil).Commit))
}
// Del mocks base method
func (m *MockIMultiValue) Del(arg0, arg1 string) error {
ret := m.ctrl.Call(m, "Del", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Del indicates an expected call of Del
func (mr *MockIMultiValueMockRecorder) Del(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Del", reflect.TypeOf((*MockIMultiValue)(nil).Del), arg0, arg1)
}
// Get mocks base method
func (m *MockIMultiValue) Get(arg0, arg1 string) (string, error) {
ret := m.ctrl.Call(m, "Get", arg0, arg1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get
func (mr *MockIMultiValueMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockIMultiValue)(nil).Get), arg0, arg1)
}
// Has mocks base method
func (m *MockIMultiValue) Has(arg0, arg1 string) (bool, error) {
ret := m.ctrl.Call(m, "Has", arg0, arg1)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Has indicates an expected call of Has
func (mr *MockIMultiValueMockRecorder) Has(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Has", reflect.TypeOf((*MockIMultiValue)(nil).Has), arg0, arg1)
}
// Keys mocks base method
func (m *MockIMultiValue) Keys(arg0, arg1 string) ([]string, error) {
ret := m.ctrl.Call(m, "Keys", arg0, arg1)
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Keys indicates an expected call of Keys
func (mr *MockIMultiValueMockRecorder) Keys(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Keys", reflect.TypeOf((*MockIMultiValue)(nil).Keys), arg0, arg1)
}
// Put mocks base method
func (m *MockIMultiValue) Put(arg0, arg1, arg2 string) error {
ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// Put indicates an expected call of Put
func (mr *MockIMultiValueMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockIMultiValue)(nil).Put), arg0, arg1, arg2)
}
// Rollback mocks base method
func (m *MockIMultiValue) Rollback() {
m.ctrl.Call(m, "Rollback")
}
// Rollback indicates an expected call of Rollback
func (mr *MockIMultiValueMockRecorder) Rollback() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rollback", reflect.TypeOf((*MockIMultiValue)(nil).Rollback))
}