forked from asonawalla/gazette
/
mock_Shard.go
124 lines (100 loc) · 2.53 KB
/
mock_Shard.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
117
118
119
120
121
122
123
124
// Code generated by mockery v1.0.0
package consumer
import gorocksdb "github.com/tecbot/gorocksdb"
import mock "github.com/stretchr/testify/mock"
import topic "github.com/LiveRamp/gazette/pkg/topic"
// MockShard is an autogenerated mock type for the Shard type
type MockShard struct {
mock.Mock
}
// Cache provides a mock function with given fields:
func (_m *MockShard) Cache() interface{} {
ret := _m.Called()
var r0 interface{}
if rf, ok := ret.Get(0).(func() interface{}); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(interface{})
}
}
return r0
}
// Database provides a mock function with given fields:
func (_m *MockShard) Database() *gorocksdb.DB {
ret := _m.Called()
var r0 *gorocksdb.DB
if rf, ok := ret.Get(0).(func() *gorocksdb.DB); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*gorocksdb.DB)
}
}
return r0
}
// ID provides a mock function with given fields:
func (_m *MockShard) ID() ShardID {
ret := _m.Called()
var r0 ShardID
if rf, ok := ret.Get(0).(func() ShardID); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(ShardID)
}
return r0
}
// Partition provides a mock function with given fields:
func (_m *MockShard) Partition() topic.Partition {
ret := _m.Called()
var r0 topic.Partition
if rf, ok := ret.Get(0).(func() topic.Partition); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(topic.Partition)
}
return r0
}
// ReadOptions provides a mock function with given fields:
func (_m *MockShard) ReadOptions() *gorocksdb.ReadOptions {
ret := _m.Called()
var r0 *gorocksdb.ReadOptions
if rf, ok := ret.Get(0).(func() *gorocksdb.ReadOptions); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*gorocksdb.ReadOptions)
}
}
return r0
}
// SetCache provides a mock function with given fields: _a0
func (_m *MockShard) SetCache(_a0 interface{}) {
_m.Called(_a0)
}
// Transaction provides a mock function with given fields:
func (_m *MockShard) Transaction() *gorocksdb.WriteBatch {
ret := _m.Called()
var r0 *gorocksdb.WriteBatch
if rf, ok := ret.Get(0).(func() *gorocksdb.WriteBatch); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*gorocksdb.WriteBatch)
}
}
return r0
}
// WriteOptions provides a mock function with given fields:
func (_m *MockShard) WriteOptions() *gorocksdb.WriteOptions {
ret := _m.Called()
var r0 *gorocksdb.WriteOptions
if rf, ok := ret.Get(0).(func() *gorocksdb.WriteOptions); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*gorocksdb.WriteOptions)
}
}
return r0
}