forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Throttler.go
38 lines (29 loc) · 815 Bytes
/
Throttler.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
// Code generated by mockery v1.1.1. DO NOT EDIT.
package mocks
import (
mock "github.com/stretchr/testify/mock"
time "time"
)
// Throttler is an autogenerated mock type for the Throttler type
type Throttler struct {
mock.Mock
}
// Add provides a mock function with given fields: key, priority, creationTime
func (_m *Throttler) Add(key string, priority int32, creationTime time.Time) {
_m.Called(key, priority, creationTime)
}
// Admit provides a mock function with given fields: key
func (_m *Throttler) Admit(key string) bool {
ret := _m.Called(key)
var r0 bool
if rf, ok := ret.Get(0).(func(string) bool); ok {
r0 = rf(key)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// Remove provides a mock function with given fields: key
func (_m *Throttler) Remove(key string) {
_m.Called(key)
}