We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf2464 commit 901bf3bCopy full SHA for 901bf3b
mock/batcher.go
@@ -4,24 +4,24 @@ import (
4
"github.com/stretchr/testify/mock"
5
)
6
7
-type MockBatcher struct {
+type Batcher struct {
8
mock.Mock
9
PutChan chan bool
10
}
11
12
-func (m *MockBatcher) Put(items interface{}) error {
+func (m *Batcher) Put(items interface{}) error {
13
args := m.Called(items)
14
if m.PutChan != nil {
15
m.PutChan <- true
16
17
return args.Error(0)
18
19
20
-func (m *MockBatcher) Get() ([]interface{}, error) {
+func (m *Batcher) Get() ([]interface{}, error) {
21
args := m.Called()
22
return args.Get(0).([]interface{}), args.Error(1)
23
24
25
-func (m *MockBatcher) Dispose() {
+func (m *Batcher) Dispose() {
26
m.Called()
27
0 commit comments