Skip to content

Commit 901bf3b

Browse files
batching: renamed mock batcher struct
1 parent bdf2464 commit 901bf3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mock/batcher.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ import (
44
"github.com/stretchr/testify/mock"
55
)
66

7-
type MockBatcher struct {
7+
type Batcher struct {
88
mock.Mock
99
PutChan chan bool
1010
}
1111

12-
func (m *MockBatcher) Put(items interface{}) error {
12+
func (m *Batcher) Put(items interface{}) error {
1313
args := m.Called(items)
1414
if m.PutChan != nil {
1515
m.PutChan <- true
1616
}
1717
return args.Error(0)
1818
}
1919

20-
func (m *MockBatcher) Get() ([]interface{}, error) {
20+
func (m *Batcher) Get() ([]interface{}, error) {
2121
args := m.Called()
2222
return args.Get(0).([]interface{}), args.Error(1)
2323
}
2424

25-
func (m *MockBatcher) Dispose() {
25+
func (m *Batcher) Dispose() {
2626
m.Called()
2727
}

0 commit comments

Comments
 (0)