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

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