forked from kyma-project/kyma
/
mock_client.go
63 lines (51 loc) · 1.5 KB
/
mock_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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package storage
import io "io"
import mock "github.com/stretchr/testify/mock"
// mockClient is an autogenerated mock type for the client type
type mockClient struct {
mock.Mock
}
// IsNotExistsError provides a mock function with given fields: err
func (_m *mockClient) IsNotExistsError(err error) bool {
ret := _m.Called(err)
var r0 bool
if rf, ok := ret.Get(0).(func(error) bool); ok {
r0 = rf(err)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// NotificationChannel provides a mock function with given fields: bucketName, stop
func (_m *mockClient) NotificationChannel(bucketName string, stop <-chan struct{}) <-chan notification {
ret := _m.Called(bucketName, stop)
var r0 <-chan notification
if rf, ok := ret.Get(0).(func(string, <-chan struct{}) <-chan notification); ok {
r0 = rf(bucketName, stop)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(<-chan notification)
}
}
return r0
}
// Object provides a mock function with given fields: bucketName, objectName
func (_m *mockClient) Object(bucketName string, objectName string) (io.Reader, error) {
ret := _m.Called(bucketName, objectName)
var r0 io.Reader
if rf, ok := ret.Get(0).(func(string, string) io.Reader); ok {
r0 = rf(bucketName, objectName)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(io.Reader)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(string, string) error); ok {
r1 = rf(bucketName, objectName)
} else {
r1 = ret.Error(1)
}
return r0, r1
}