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

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  import rpc "github.com/graphql-editor/azure-functions-golang-worker/rpc"
     7  
     8  // EventStream is an autogenerated mock type for the EventStream type
     9  type EventStream struct {
    10  	mock.Mock
    11  }
    12  
    13  // Recv provides a mock function with given fields:
    14  func (_m *EventStream) Recv() (*rpc.StreamingMessage, bool) {
    15  	ret := _m.Called()
    16  
    17  	var r0 *rpc.StreamingMessage
    18  	if rf, ok := ret.Get(0).(func() *rpc.StreamingMessage); ok {
    19  		r0 = rf()
    20  	} else {
    21  		if ret.Get(0) != nil {
    22  			r0 = ret.Get(0).(*rpc.StreamingMessage)
    23  		}
    24  	}
    25  
    26  	var r1 bool
    27  	if rf, ok := ret.Get(1).(func() bool); ok {
    28  		r1 = rf()
    29  	} else {
    30  		r1 = ret.Get(1).(bool)
    31  	}
    32  
    33  	return r0, r1
    34  }
    35  
    36  // Send provides a mock function with given fields: _a0
    37  func (_m *EventStream) Send(_a0 *rpc.StreamingMessage) {
    38  	_m.Called(_a0)
    39  }
    40  
    41  // Start provides a mock function with given fields:
    42  func (_m *EventStream) Start() error {
    43  	ret := _m.Called()
    44  
    45  	var r0 error
    46  	if rf, ok := ret.Get(0).(func() error); ok {
    47  		r0 = rf()
    48  	} else {
    49  		r0 = ret.Error(0)
    50  	}
    51  
    52  	return r0
    53  }
    54  
    55  // Stop provides a mock function with given fields:
    56  func (_m *EventStream) Stop() {
    57  	_m.Called()
    58  }