github.com/graphql-editor/azure-functions-golang-worker@v0.1.0/mocks/FunctionRpcClient.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import context "context" 6 import grpc "google.golang.org/grpc" 7 import mock "github.com/stretchr/testify/mock" 8 import rpc "github.com/graphql-editor/azure-functions-golang-worker/rpc" 9 10 // FunctionRpcClient is an autogenerated mock type for the FunctionRpcClient type 11 type FunctionRpcClient struct { 12 mock.Mock 13 } 14 15 // EventStream provides a mock function with given fields: ctx, opts 16 func (_m *FunctionRpcClient) EventStream(ctx context.Context, opts ...grpc.CallOption) (rpc.FunctionRpc_EventStreamClient, error) { 17 _va := make([]interface{}, len(opts)) 18 for _i := range opts { 19 _va[_i] = opts[_i] 20 } 21 var _ca []interface{} 22 _ca = append(_ca, ctx) 23 _ca = append(_ca, _va...) 24 ret := _m.Called(_ca...) 25 26 var r0 rpc.FunctionRpc_EventStreamClient 27 if rf, ok := ret.Get(0).(func(context.Context, ...grpc.CallOption) rpc.FunctionRpc_EventStreamClient); ok { 28 r0 = rf(ctx, opts...) 29 } else { 30 if ret.Get(0) != nil { 31 r0 = ret.Get(0).(rpc.FunctionRpc_EventStreamClient) 32 } 33 } 34 35 var r1 error 36 if rf, ok := ret.Get(1).(func(context.Context, ...grpc.CallOption) error); ok { 37 r1 = rf(ctx, opts...) 38 } else { 39 r1 = ret.Error(1) 40 } 41 42 return r0, r1 43 }