LCOV - code coverage report
Current view: top level - src/wallet/test - wallet_test_fixture.cpp (source / functions) Hit Total Coverage
Test: fuzz_coverage.info Lines: 0 26 0.0 %
Date: 2023-10-05 12:38:51 Functions: 0 13 0.0 %
Branches: 0 0 -

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

Generated by: LCOV version 1.14