LCOV - code coverage report
Current view: top level - src/wallet - transaction.cpp (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 14 14 100.0 %
Date: 2021-06-29 14:35:33 Functions: 3 3 100.0 %
Legend: Modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed

Not modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed
Branches: 5 6 83.3 %

           Branch data     Line data    Source code
#       1                 :            : // Copyright (c) 2021 The Bitcoin Core developers
#       2                 :            : // Distributed under the MIT software license, see the accompanying
#       3                 :            : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#       4                 :            : 
#       5                 :            : #include <wallet/transaction.h>
#       6                 :            : 
#       7                 :            : bool CWalletTx::IsEquivalentTo(const CWalletTx& _tx) const
#       8                 :       3415 : {
#       9                 :       3415 :         CMutableTransaction tx1 {*this->tx};
#      10                 :       3415 :         CMutableTransaction tx2 {*_tx.tx};
#      11         [ +  + ]:       3437 :         for (auto& txin : tx1.vin) txin.scriptSig = CScript();
#      12         [ +  + ]:       3451 :         for (auto& txin : tx2.vin) txin.scriptSig = CScript();
#      13                 :       3415 :         return CTransaction(tx1) == CTransaction(tx2);
#      14                 :       3415 : }
#      15                 :            : 
#      16                 :            : bool CWalletTx::InMempool() const
#      17                 :     310240 : {
#      18                 :     310240 :     return fInMempool;
#      19                 :     310240 : }
#      20                 :            : 
#      21                 :            : int64_t CWalletTx::GetTxTime() const
#      22                 :       3181 : {
#      23                 :       3181 :     int64_t n = nTimeSmart;
#      24         [ +  - ]:       3181 :     return n ? n : nTimeReceived;
#      25                 :       3181 : }

Generated by: LCOV version 1.14