github.com/anjalikarhana/fabric@v2.1.1+incompatible/orderer/common/cluster/mocks/step_stream.go (about)

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