LCOV - code coverage report
Current view: top level - src/wallet/test - wallet_test_fixture.cpp (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 8 8 100.0 %
Date: 2022-04-21 14:51:19 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: 1 2 50.0 %

           Branch data     Line data    Source code
#       1                 :            : // Copyright (c) 2016-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/test/wallet_test_fixture.h>
#       6                 :            : 
#       7                 :            : #include <scheduler.h>
#       8                 :            : 
#       9                 :            : namespace wallet {
#      10                 :            : WalletTestingSetup::WalletTestingSetup(const std::string& chainName)
#      11                 :            :     : TestingSetup(chainName),
#      12                 :            :       m_wallet_loader{interfaces::MakeWalletLoader(*m_node.chain, *Assert(m_node.args))},
#      13                 :            :       m_wallet(m_node.chain.get(), "", m_args, CreateMockWalletDatabase())
#      14                 :         11 : {
#      15                 :         11 :     m_wallet.LoadWallet();
#      16                 :         11 :     m_chain_notifications_handler = m_node.chain->handleNotifications({ &m_wallet, [](CWallet*) {} });
#      17                 :         11 :     m_wallet_loader->registerRpcs();
#      18                 :         11 : }
#      19                 :            : 
#      20                 :            : WalletTestingSetup::~WalletTestingSetup()
#      21                 :         11 : {
#      22         [ +  - ]:         11 :     if (m_node.scheduler) m_node.scheduler->stop();
#      23                 :         11 : }
#      24                 :            : } // namespace wallet

Generated by: LCOV version 0-eol-96201-ge66f56f4af6a