kubelatte-ce
Форк от sbertech/kubelatte-ce
64 строки · 1.7 Кб
1// Code generated by mockery v2.43.1. DO NOT EDIT.
2
3package mocks
4
5import (
6context "context"
7"gitverse.ru/synapse/kubelatte/pkg/sideeffect/grpc/proto"
8
9mock "github.com/stretchr/testify/mock"
10)
11
12// ExecutorServer is an autogenerated mock type for the ExecutorServer type
13type ExecutorServer struct {
14mock.Mock
15}
16
17// DoSideEffect provides a mock function with given fields: _a0, _a1
18func (_m *ExecutorServer) DoSideEffect(_a0 context.Context, _a1 *proto.SideEffectInfo) (*proto.EmptyMes, error) {
19ret := _m.Called(_a0, _a1)
20
21if len(ret) == 0 {
22panic("no return value specified for DoSideEffect")
23}
24
25var r0 *proto.EmptyMes
26var r1 error
27if rf, ok := ret.Get(0).(func(context.Context, *proto.SideEffectInfo) (*proto.EmptyMes, error)); ok {
28return rf(_a0, _a1)
29}
30if rf, ok := ret.Get(0).(func(context.Context, *proto.SideEffectInfo) *proto.EmptyMes); ok {
31r0 = rf(_a0, _a1)
32} else {
33if ret.Get(0) != nil {
34r0 = ret.Get(0).(*proto.EmptyMes)
35}
36}
37
38if rf, ok := ret.Get(1).(func(context.Context, *proto.SideEffectInfo) error); ok {
39r1 = rf(_a0, _a1)
40} else {
41r1 = ret.Error(1)
42}
43
44return r0, r1
45}
46
47// mustEmbedUnimplementedExecutorServer provides a mock function with given fields:
48func (_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.
54func NewExecutorServer(t interface {
55mock.TestingT
56Cleanup(func())
57}) *ExecutorServer {
58mock := &ExecutorServer{}
59mock.Mock.Test(t)
60
61t.Cleanup(func() { mock.AssertExpectations(t) })
62
63return mock
64}
65