kubelatte-ce

Форк
2
Форк от sbertech/kubelatte-ce
/
ExecutorClient.go 
68 строк · 1.8 Кб
1
// Code generated by mockery v2.43.1. DO NOT EDIT.
2

3
package mocks
4

5
import (
6
	context "context"
7
	"gitverse.ru/synapse/kubelatte/pkg/sideeffect/grpc/proto"
8

9
	grpc "google.golang.org/grpc"
10

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

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

19
// DoSideEffect provides a mock function with given fields: ctx, in, opts
20
func (_m *ExecutorClient) DoSideEffect(ctx context.Context, in *proto.SideEffectInfo, opts ...grpc.CallOption) (*proto.EmptyMes, error) {
21
	_va := make([]interface{}, len(opts))
22
	for _i := range opts {
23
		_va[_i] = opts[_i]
24
	}
25
	var _ca []interface{}
26
	_ca = append(_ca, ctx, in)
27
	_ca = append(_ca, _va...)
28
	ret := _m.Called(_ca...)
29

30
	if len(ret) == 0 {
31
		panic("no return value specified for DoSideEffect")
32
	}
33

34
	var r0 *proto.EmptyMes
35
	var r1 error
36
	if rf, ok := ret.Get(0).(func(context.Context, *proto.SideEffectInfo, ...grpc.CallOption) (*proto.EmptyMes, error)); ok {
37
		return rf(ctx, in, opts...)
38
	}
39
	if rf, ok := ret.Get(0).(func(context.Context, *proto.SideEffectInfo, ...grpc.CallOption) *proto.EmptyMes); ok {
40
		r0 = rf(ctx, in, opts...)
41
	} else {
42
		if ret.Get(0) != nil {
43
			r0 = ret.Get(0).(*proto.EmptyMes)
44
		}
45
	}
46

47
	if rf, ok := ret.Get(1).(func(context.Context, *proto.SideEffectInfo, ...grpc.CallOption) error); ok {
48
		r1 = rf(ctx, in, opts...)
49
	} else {
50
		r1 = ret.Error(1)
51
	}
52

53
	return r0, r1
54
}
55

56
// NewExecutorClient creates a new instance of ExecutorClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
57
// The first argument is typically a *testing.T value.
58
func NewExecutorClient(t interface {
59
	mock.TestingT
60
	Cleanup(func())
61
}) *ExecutorClient {
62
	mock := &ExecutorClient{}
63
	mock.Mock.Test(t)
64

65
	t.Cleanup(func() { mock.AssertExpectations(t) })
66

67
	return mock
68
}
69

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

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

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

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