-
Notifications
You must be signed in to change notification settings - Fork 539
/
client.go
83 lines (65 loc) · 1.79 KB
/
client.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
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
cache "sigs.k8s.io/controller-runtime/pkg/cache"
client "sigs.k8s.io/controller-runtime/pkg/client"
mock "github.com/stretchr/testify/mock"
)
// Client is an autogenerated mock type for the Client type
type Client struct {
mock.Mock
}
type Client_GetCache struct {
*mock.Call
}
func (_m Client_GetCache) Return(_a0 cache.Cache) *Client_GetCache {
return &Client_GetCache{Call: _m.Call.Return(_a0)}
}
func (_m *Client) OnGetCache() *Client_GetCache {
c_call := _m.On("GetCache")
return &Client_GetCache{Call: c_call}
}
func (_m *Client) OnGetCacheMatch(matchers ...interface{}) *Client_GetCache {
c_call := _m.On("GetCache", matchers...)
return &Client_GetCache{Call: c_call}
}
// GetCache provides a mock function with given fields:
func (_m *Client) GetCache() cache.Cache {
ret := _m.Called()
var r0 cache.Cache
if rf, ok := ret.Get(0).(func() cache.Cache); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(cache.Cache)
}
}
return r0
}
type Client_GetClient struct {
*mock.Call
}
func (_m Client_GetClient) Return(_a0 client.Client) *Client_GetClient {
return &Client_GetClient{Call: _m.Call.Return(_a0)}
}
func (_m *Client) OnGetClient() *Client_GetClient {
c_call := _m.On("GetClient")
return &Client_GetClient{Call: c_call}
}
func (_m *Client) OnGetClientMatch(matchers ...interface{}) *Client_GetClient {
c_call := _m.On("GetClient", matchers...)
return &Client_GetClient{Call: c_call}
}
// GetClient provides a mock function with given fields:
func (_m *Client) GetClient() client.Client {
ret := _m.Called()
var r0 client.Client
if rf, ok := ret.Get(0).(func() client.Client); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(client.Client)
}
}
return r0
}