kubelatte-ce

Форк
2
Форк от sbertech/kubelatte-ce
/
mock_InitManagerInterface_test.go 
117 строк · 2.7 Кб
1
// Code generated by mockery v2.40.1. DO NOT EDIT.
2

3
package initmanager
4

5
import (
6
	context "context"
7

8
	kubernetes "k8s.io/client-go/kubernetes"
9

10
	mock "github.com/stretchr/testify/mock"
11
)
12

13
// InitManagerInterface is an autogenerated mock type for the InitManagerInterface type
14
type InitManagerInterface struct {
15
	mock.Mock
16
}
17

18
// CheckPermissions provides a mock function with given fields: ctx, client
19
func (_m *InitManagerInterface) CheckPermissions(ctx context.Context, client kubernetes.Interface) error {
20
	ret := _m.Called(ctx, client)
21

22
	if len(ret) == 0 {
23
		panic("no return value specified for CheckPermissions")
24
	}
25

26
	var r0 error
27
	if rf, ok := ret.Get(0).(func(context.Context, kubernetes.Interface) error); ok {
28
		r0 = rf(ctx, client)
29
	} else {
30
		r0 = ret.Error(0)
31
	}
32

33
	return r0
34
}
35

36
// CheckResources provides a mock function with given fields: ctx
37
func (_m *InitManagerInterface) CheckResources(ctx context.Context) {
38
	_m.Called(ctx)
39
}
40

41
// DoesScopesExist provides a mock function with given fields:
42
func (_m *InitManagerInterface) DoesScopesExist() bool {
43
	ret := _m.Called()
44

45
	if len(ret) == 0 {
46
		panic("no return value specified for DoesScopesExist")
47
	}
48

49
	var r0 bool
50
	if rf, ok := ret.Get(0).(func() bool); ok {
51
		r0 = rf()
52
	} else {
53
		r0 = ret.Get(0).(bool)
54
	}
55

56
	return r0
57
}
58

59
// DoesTemplatesExist provides a mock function with given fields:
60
func (_m *InitManagerInterface) DoesTemplatesExist() bool {
61
	ret := _m.Called()
62

63
	if len(ret) == 0 {
64
		panic("no return value specified for DoesTemplatesExist")
65
	}
66

67
	var r0 bool
68
	if rf, ok := ret.Get(0).(func() bool); ok {
69
		r0 = rf()
70
	} else {
71
		r0 = ret.Get(0).(bool)
72
	}
73

74
	return r0
75
}
76

77
// DoesTriggersExist provides a mock function with given fields:
78
func (_m *InitManagerInterface) DoesTriggersExist() bool {
79
	ret := _m.Called()
80

81
	if len(ret) == 0 {
82
		panic("no return value specified for DoesTriggersExist")
83
	}
84

85
	var r0 bool
86
	if rf, ok := ret.Get(0).(func() bool); ok {
87
		r0 = rf()
88
	} else {
89
		r0 = ret.Get(0).(bool)
90
	}
91

92
	return r0
93
}
94

95
// Start provides a mock function with given fields: ctx
96
func (_m *InitManagerInterface) Start(ctx context.Context) {
97
	_m.Called(ctx)
98
}
99

100
// Stop provides a mock function with given fields: ctx
101
func (_m *InitManagerInterface) Stop(ctx context.Context) {
102
	_m.Called(ctx)
103
}
104

105
// NewInitManagerInterface creates a new instance of InitManagerInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
106
// The first argument is typically a *testing.T value.
107
func NewInitManagerInterface(t interface {
108
	mock.TestingT
109
	Cleanup(func())
110
}) *InitManagerInterface {
111
	mock := &InitManagerInterface{}
112
	mock.Mock.Test(t)
113

114
	t.Cleanup(func() { mock.AssertExpectations(t) })
115

116
	return mock
117
}
118

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

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

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

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