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

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	orderer "github.com/hyperledger/fabric-protos-go/orderer"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // Handler is an autogenerated mock type for the Handler type
    11  type Handler struct {
    12  	mock.Mock
    13  }
    14  
    15  // OnConsensus provides a mock function with given fields: channel, sender, req
    16  func (_m *Handler) OnConsensus(channel string, sender uint64, req *orderer.ConsensusRequest) error {
    17  	ret := _m.Called(channel, sender, req)
    18  
    19  	var r0 error
    20  	if rf, ok := ret.Get(0).(func(string, uint64, *orderer.ConsensusRequest) error); ok {
    21  		r0 = rf(channel, sender, req)
    22  	} else {
    23  		r0 = ret.Error(0)
    24  	}
    25  
    26  	return r0
    27  }
    28  
    29  // OnSubmit provides a mock function with given fields: channel, sender, req
    30  func (_m *Handler) OnSubmit(channel string, sender uint64, req *orderer.SubmitRequest) error {
    31  	ret := _m.Called(channel, sender, req)
    32  
    33  	var r0 error
    34  	if rf, ok := ret.Get(0).(func(string, uint64, *orderer.SubmitRequest) error); ok {
    35  		r0 = rf(channel, sender, req)
    36  	} else {
    37  		r0 = ret.Error(0)
    38  	}
    39  
    40  	return r0
    41  }