github.com/graphql-editor/azure-functions-golang-worker@v0.1.0/mocks/FunctionRpc_EventStreamServer.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import context "context"
     6  import metadata "google.golang.org/grpc/metadata"
     7  import mock "github.com/stretchr/testify/mock"
     8  import rpc "github.com/graphql-editor/azure-functions-golang-worker/rpc"
     9  
    10  // FunctionRpc_EventStreamServer is an autogenerated mock type for the FunctionRpc_EventStreamServer type
    11  type FunctionRpc_EventStreamServer struct {
    12  	mock.Mock
    13  }
    14  
    15  // Context provides a mock function with given fields:
    16  func (_m *FunctionRpc_EventStreamServer) Context() context.Context {
    17  	ret := _m.Called()
    18  
    19  	var r0 context.Context
    20  	if rf, ok := ret.Get(0).(func() context.Context); ok {
    21  		r0 = rf()
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(context.Context)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // Recv provides a mock function with given fields:
    32  func (_m *FunctionRpc_EventStreamServer) Recv() (*rpc.StreamingMessage, error) {
    33  	ret := _m.Called()
    34  
    35  	var r0 *rpc.StreamingMessage
    36  	if rf, ok := ret.Get(0).(func() *rpc.StreamingMessage); ok {
    37  		r0 = rf()
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).(*rpc.StreamingMessage)
    41  		}
    42  	}
    43  
    44  	var r1 error
    45  	if rf, ok := ret.Get(1).(func() error); ok {
    46  		r1 = rf()
    47  	} else {
    48  		r1 = ret.Error(1)
    49  	}
    50  
    51  	return r0, r1
    52  }
    53  
    54  // RecvMsg provides a mock function with given fields: m
    55  func (_m *FunctionRpc_EventStreamServer) RecvMsg(m interface{}) error {
    56  	ret := _m.Called(m)
    57  
    58  	var r0 error
    59  	if rf, ok := ret.Get(0).(func(interface{}) error); ok {
    60  		r0 = rf(m)
    61  	} else {
    62  		r0 = ret.Error(0)
    63  	}
    64  
    65  	return r0
    66  }
    67  
    68  // Send provides a mock function with given fields: _a0
    69  func (_m *FunctionRpc_EventStreamServer) Send(_a0 *rpc.StreamingMessage) error {
    70  	ret := _m.Called(_a0)
    71  
    72  	var r0 error
    73  	if rf, ok := ret.Get(0).(func(*rpc.StreamingMessage) error); ok {
    74  		r0 = rf(_a0)
    75  	} else {
    76  		r0 = ret.Error(0)
    77  	}
    78  
    79  	return r0
    80  }
    81  
    82  // SendHeader provides a mock function with given fields: _a0
    83  func (_m *FunctionRpc_EventStreamServer) SendHeader(_a0 metadata.MD) error {
    84  	ret := _m.Called(_a0)
    85  
    86  	var r0 error
    87  	if rf, ok := ret.Get(0).(func(metadata.MD) error); ok {
    88  		r0 = rf(_a0)
    89  	} else {
    90  		r0 = ret.Error(0)
    91  	}
    92  
    93  	return r0
    94  }
    95  
    96  // SendMsg provides a mock function with given fields: m
    97  func (_m *FunctionRpc_EventStreamServer) SendMsg(m interface{}) error {
    98  	ret := _m.Called(m)
    99  
   100  	var r0 error
   101  	if rf, ok := ret.Get(0).(func(interface{}) error); ok {
   102  		r0 = rf(m)
   103  	} else {
   104  		r0 = ret.Error(0)
   105  	}
   106  
   107  	return r0
   108  }
   109  
   110  // SetHeader provides a mock function with given fields: _a0
   111  func (_m *FunctionRpc_EventStreamServer) SetHeader(_a0 metadata.MD) error {
   112  	ret := _m.Called(_a0)
   113  
   114  	var r0 error
   115  	if rf, ok := ret.Get(0).(func(metadata.MD) error); ok {
   116  		r0 = rf(_a0)
   117  	} else {
   118  		r0 = ret.Error(0)
   119  	}
   120  
   121  	return r0
   122  }
   123  
   124  // SetTrailer provides a mock function with given fields: _a0
   125  func (_m *FunctionRpc_EventStreamServer) SetTrailer(_a0 metadata.MD) {
   126  	_m.Called(_a0)
   127  }