LCOV - code coverage report
Current view: top level - src/wallet/test - wallet_test_fixture.cpp (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 12 14 85.7 %
Date: 2026-06-25 07:23:43 Functions: 5 7 71.4 %

          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          28 : WalletTestingSetup::WalletTestingSetup(const std::string& chainName)
      11          14 :     : TestingSetup(chainName),
      12          14 :       m_coinjoin_loader{interfaces::MakeCoinJoinLoader(m_node)},
      13          14 :       m_wallet_loader{interfaces::MakeWalletLoader(*m_node.chain, *Assert(m_node.args), m_node, *Assert(m_coinjoin_loader))},
      14          14 :       m_wallet(m_node.chain.get(), m_coinjoin_loader.get(), "", m_args, CreateMockWalletDatabase())
      15           0 : {
      16          14 :     m_wallet.LoadWallet();
      17          28 :     m_chain_notifications_handler = m_node.chain->handleNotifications({ &m_wallet, [](CWallet*) {} });
      18          14 :     m_wallet_loader->registerRpcs();
      19          14 : }
      20             : 
      21          14 : WalletTestingSetup::~WalletTestingSetup()
      22           0 : {
      23          14 :     if (m_node.scheduler) m_node.scheduler->stop();
      24          14 : }
      25             : } // namespace wallet

Generated by: LCOV version 1.16