kubelatte-ce

Форк
2
Форк от sbertech/kubelatte-ce
203 строки · 5.8 Кб
1
// Code generated by mockery v2.20.0. DO NOT EDIT.
2

3
package mocks
4

5
import (
6
	context "context"
7
	"gitverse.ru/synapse/kubelatte/pkg/api/v1alpha1"
8

9
	mock "github.com/stretchr/testify/mock"
10
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
11

12
	watch "k8s.io/apimachinery/pkg/watch"
13
)
14

15
// TemplateInterface is an autogenerated mock type for the TemplateInterface type
16
type TemplateInterface struct {
17
	mock.Mock
18
}
19

20
// Create provides a mock function with given fields: ctx, template
21
func (_m *TemplateInterface) Create(ctx context.Context, template *v1alpha1.Template) (*v1alpha1.Template, error) {
22
	ret := _m.Called(ctx, template)
23

24
	var r0 *v1alpha1.Template
25
	var r1 error
26
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Template) (*v1alpha1.Template, error)); ok {
27
		return rf(ctx, template)
28
	}
29
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Template) *v1alpha1.Template); ok {
30
		r0 = rf(ctx, template)
31
	} else {
32
		if ret.Get(0) != nil {
33
			r0 = ret.Get(0).(*v1alpha1.Template)
34
		}
35
	}
36

37
	if rf, ok := ret.Get(1).(func(context.Context, *v1alpha1.Template) error); ok {
38
		r1 = rf(ctx, template)
39
	} else {
40
		r1 = ret.Error(1)
41
	}
42

43
	return r0, r1
44
}
45

46
// Delete provides a mock function with given fields: ctx, name, opts
47
func (_m *TemplateInterface) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
48
	ret := _m.Called(ctx, name, opts)
49

50
	var r0 error
51
	if rf, ok := ret.Get(0).(func(context.Context, string, v1.DeleteOptions) error); ok {
52
		r0 = rf(ctx, name, opts)
53
	} else {
54
		r0 = ret.Error(0)
55
	}
56

57
	return r0
58
}
59

60
// Get provides a mock function with given fields: ctx, name, options
61
func (_m *TemplateInterface) Get(ctx context.Context, name string, options v1.GetOptions) (*v1alpha1.Template, error) {
62
	ret := _m.Called(ctx, name, options)
63

64
	var r0 *v1alpha1.Template
65
	var r1 error
66
	if rf, ok := ret.Get(0).(func(context.Context, string, v1.GetOptions) (*v1alpha1.Template, error)); ok {
67
		return rf(ctx, name, options)
68
	}
69
	if rf, ok := ret.Get(0).(func(context.Context, string, v1.GetOptions) *v1alpha1.Template); ok {
70
		r0 = rf(ctx, name, options)
71
	} else {
72
		if ret.Get(0) != nil {
73
			r0 = ret.Get(0).(*v1alpha1.Template)
74
		}
75
	}
76

77
	if rf, ok := ret.Get(1).(func(context.Context, string, v1.GetOptions) error); ok {
78
		r1 = rf(ctx, name, options)
79
	} else {
80
		r1 = ret.Error(1)
81
	}
82

83
	return r0, r1
84
}
85

86
// List provides a mock function with given fields: ctx, opts
87
func (_m *TemplateInterface) List(ctx context.Context, opts v1.ListOptions) (*v1alpha1.TemplateList, error) {
88
	ret := _m.Called(ctx, opts)
89

90
	var r0 *v1alpha1.TemplateList
91
	var r1 error
92
	if rf, ok := ret.Get(0).(func(context.Context, v1.ListOptions) (*v1alpha1.TemplateList, error)); ok {
93
		return rf(ctx, opts)
94
	}
95
	if rf, ok := ret.Get(0).(func(context.Context, v1.ListOptions) *v1alpha1.TemplateList); ok {
96
		r0 = rf(ctx, opts)
97
	} else {
98
		if ret.Get(0) != nil {
99
			r0 = ret.Get(0).(*v1alpha1.TemplateList)
100
		}
101
	}
102

103
	if rf, ok := ret.Get(1).(func(context.Context, v1.ListOptions) error); ok {
104
		r1 = rf(ctx, opts)
105
	} else {
106
		r1 = ret.Error(1)
107
	}
108

109
	return r0, r1
110
}
111

112
// Update provides a mock function with given fields: ctx, template, opts
113
func (_m *TemplateInterface) Update(ctx context.Context, template *v1alpha1.Template, opts v1.UpdateOptions) (*v1alpha1.Template, error) {
114
	ret := _m.Called(ctx, template, opts)
115

116
	var r0 *v1alpha1.Template
117
	var r1 error
118
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Template, v1.UpdateOptions) (*v1alpha1.Template, error)); ok {
119
		return rf(ctx, template, opts)
120
	}
121
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Template, v1.UpdateOptions) *v1alpha1.Template); ok {
122
		r0 = rf(ctx, template, opts)
123
	} else {
124
		if ret.Get(0) != nil {
125
			r0 = ret.Get(0).(*v1alpha1.Template)
126
		}
127
	}
128

129
	if rf, ok := ret.Get(1).(func(context.Context, *v1alpha1.Template, v1.UpdateOptions) error); ok {
130
		r1 = rf(ctx, template, opts)
131
	} else {
132
		r1 = ret.Error(1)
133
	}
134

135
	return r0, r1
136
}
137

138
// UpdateStatus provides a mock function with given fields: ctx, hostEntry, opts
139
func (_m *TemplateInterface) UpdateStatus(ctx context.Context, hostEntry *v1alpha1.Template, opts v1.UpdateOptions) (*v1alpha1.Template, error) {
140
	ret := _m.Called(ctx, hostEntry, opts)
141

142
	var r0 *v1alpha1.Template
143
	var r1 error
144
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Template, v1.UpdateOptions) (*v1alpha1.Template, error)); ok {
145
		return rf(ctx, hostEntry, opts)
146
	}
147
	if rf, ok := ret.Get(0).(func(context.Context, *v1alpha1.Template, v1.UpdateOptions) *v1alpha1.Template); ok {
148
		r0 = rf(ctx, hostEntry, opts)
149
	} else {
150
		if ret.Get(0) != nil {
151
			r0 = ret.Get(0).(*v1alpha1.Template)
152
		}
153
	}
154

155
	if rf, ok := ret.Get(1).(func(context.Context, *v1alpha1.Template, v1.UpdateOptions) error); ok {
156
		r1 = rf(ctx, hostEntry, opts)
157
	} else {
158
		r1 = ret.Error(1)
159
	}
160

161
	return r0, r1
162
}
163

164
// Watch provides a mock function with given fields: ctx, opts
165
func (_m *TemplateInterface) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
166
	ret := _m.Called(ctx, opts)
167

168
	var r0 watch.Interface
169
	var r1 error
170
	if rf, ok := ret.Get(0).(func(context.Context, v1.ListOptions) (watch.Interface, error)); ok {
171
		return rf(ctx, opts)
172
	}
173
	if rf, ok := ret.Get(0).(func(context.Context, v1.ListOptions) watch.Interface); ok {
174
		r0 = rf(ctx, opts)
175
	} else {
176
		if ret.Get(0) != nil {
177
			r0 = ret.Get(0).(watch.Interface)
178
		}
179
	}
180

181
	if rf, ok := ret.Get(1).(func(context.Context, v1.ListOptions) error); ok {
182
		r1 = rf(ctx, opts)
183
	} else {
184
		r1 = ret.Error(1)
185
	}
186

187
	return r0, r1
188
}
189

190
type mockConstructorTestingTNewTemplateInterface interface {
191
	mock.TestingT
192
	Cleanup(func())
193
}
194

195
// NewTemplateInterface creates a new instance of TemplateInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
196
func NewTemplateInterface(t mockConstructorTestingTNewTemplateInterface) *TemplateInterface {
197
	mock := &TemplateInterface{}
198
	mock.Mock.Test(t)
199

200
	t.Cleanup(func() { mock.AssertExpectations(t) })
201

202
	return mock
203
}
204

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.