github.com/anjalikarhana/fabric@v2.1.1+incompatible/orderer/common/cluster/mocks/dispatcher.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  	orderer "github.com/hyperledger/fabric-protos-go/orderer"
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // Dispatcher is an autogenerated mock type for the Dispatcher type
    13  type Dispatcher struct {
    14  	mock.Mock
    15  }
    16  
    17  // DispatchConsensus provides a mock function with given fields: ctx, request
    18  func (_m *Dispatcher) DispatchConsensus(ctx context.Context, request *orderer.ConsensusRequest) error {
    19  	ret := _m.Called(ctx, request)
    20  
    21  	var r0 error
    22  	if rf, ok := ret.Get(0).(func(context.Context, *orderer.ConsensusRequest) error); ok {
    23  		r0 = rf(ctx, request)
    24  	} else {
    25  		r0 = ret.Error(0)
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // DispatchSubmit provides a mock function with given fields: ctx, request
    32  func (_m *Dispatcher) DispatchSubmit(ctx context.Context, request *orderer.SubmitRequest) error {
    33  	ret := _m.Called(ctx, request)
    34  
    35  	var r0 error
    36  	if rf, ok := ret.Get(0).(func(context.Context, *orderer.SubmitRequest) error); ok {
    37  		r0 = rf(ctx, request)
    38  	} else {
    39  		r0 = ret.Error(0)
    40  	}
    41  
    42  	return r0
    43  }