kubelatte-ce

Форк
2
Форк от sbertech/kubelatte-ce
/
ExecutorServer.go 
64 строки · 1.7 Кб
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
	mock "github.com/stretchr/testify/mock"
10
)
11

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

17
// DoSideEffect provides a mock function with given fields: _a0, _a1
18
func (_m *ExecutorServer) DoSideEffect(_a0 context.Context, _a1 *proto.SideEffectInfo) (*proto.EmptyMes, error) {
19
	ret := _m.Called(_a0, _a1)
20

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

25
	var r0 *proto.EmptyMes
26
	var r1 error
27
	if rf, ok := ret.Get(0).(func(context.Context, *proto.SideEffectInfo) (*proto.EmptyMes, error)); ok {
28
		return rf(_a0, _a1)
29
	}
30
	if rf, ok := ret.Get(0).(func(context.Context, *proto.SideEffectInfo) *proto.EmptyMes); ok {
31
		r0 = rf(_a0, _a1)
32
	} else {
33
		if ret.Get(0) != nil {
34
			r0 = ret.Get(0).(*proto.EmptyMes)
35
		}
36
	}
37

38
	if rf, ok := ret.Get(1).(func(context.Context, *proto.SideEffectInfo) error); ok {
39
		r1 = rf(_a0, _a1)
40
	} else {
41
		r1 = ret.Error(1)
42
	}
43

44
	return r0, r1
45
}
46

47
// mustEmbedUnimplementedExecutorServer provides a mock function with given fields:
48
func (_m *ExecutorServer) mustEmbedUnimplementedExecutorServer() {
49
	_m.Called()
50
}
51

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

61
	t.Cleanup(func() { mock.AssertExpectations(t) })
62

63
	return mock
64
}
65

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

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

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

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