forked from grab/async
/
partitioner.go
47 lines (38 loc) · 1.04 KB
/
partitioner.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
// Copyright 2019 Grabtaxi Holdings PTE LTE (GRAB), All rights reserved.
// Use of this source code is governed by an MIT-style license that can be found in the LICENSE file
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import (
"github.com/kelindar/async"
"github.com/stretchr/testify/mock"
)
// Partitioner is an autogenerated mock type for the Partitioner type
type Partitioner struct {
mock.Mock
}
// Append provides a mock function with given fields: items
func (_m *Partitioner) Append(items any) async.Task {
ret := _m.Called(items)
var r0 async.Task
if rf, ok := ret.Get(0).(func(any) async.Task); ok {
r0 = rf(items)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(async.Task)
}
}
return r0
}
// Partition provides a mock function with given fields:
func (_m *Partitioner) Partition() map[string][]any {
ret := _m.Called()
var r0 map[string][]any
if rf, ok := ret.Get(0).(func() map[string][]any); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string][]any)
}
}
return r0
}