github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/committer/txvalidator/v20/mocks/ledger_resources.go (about)

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