kubelatte-ce
Форк от sbertech/kubelatte-ce
68 строк · 1.8 Кб
1// Code generated by mockery v2.43.1. DO NOT EDIT.
2
3package mocks4
5import (6context "context"7"gitverse.ru/synapse/kubelatte/pkg/sideeffect/grpc/proto"8
9grpc "google.golang.org/grpc"10
11mock "github.com/stretchr/testify/mock"12)
13
14// ExecutorClient is an autogenerated mock type for the ExecutorClient type
15type ExecutorClient struct {16mock.Mock17}
18
19// DoSideEffect provides a mock function with given fields: ctx, in, opts
20func (_m *ExecutorClient) DoSideEffect(ctx context.Context, in *proto.SideEffectInfo, opts ...grpc.CallOption) (*proto.EmptyMes, error) {21_va := make([]interface{}, len(opts))22for _i := range opts {23_va[_i] = opts[_i]24}25var _ca []interface{}26_ca = append(_ca, ctx, in)27_ca = append(_ca, _va...)28ret := _m.Called(_ca...)29
30if len(ret) == 0 {31panic("no return value specified for DoSideEffect")32}33
34var r0 *proto.EmptyMes35var r1 error36if rf, ok := ret.Get(0).(func(context.Context, *proto.SideEffectInfo, ...grpc.CallOption) (*proto.EmptyMes, error)); ok {37return rf(ctx, in, opts...)38}39if rf, ok := ret.Get(0).(func(context.Context, *proto.SideEffectInfo, ...grpc.CallOption) *proto.EmptyMes); ok {40r0 = rf(ctx, in, opts...)41} else {42if ret.Get(0) != nil {43r0 = ret.Get(0).(*proto.EmptyMes)44}45}46
47if rf, ok := ret.Get(1).(func(context.Context, *proto.SideEffectInfo, ...grpc.CallOption) error); ok {48r1 = rf(ctx, in, opts...)49} else {50r1 = ret.Error(1)51}52
53return r0, r154}
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.
58func NewExecutorClient(t interface {59mock.TestingT60Cleanup(func())61}) *ExecutorClient {62mock := &ExecutorClient{}63mock.Mock.Test(t)64
65t.Cleanup(func() { mock.AssertExpectations(t) })66
67return mock68}
69