LCOV - code coverage report
Current view: top level - src/test/util - validation.cpp (source / functions) Hit Total Coverage
Test: fuzz_coverage.info Lines: 2 14 14.3 %
Date: 2023-11-10 23:46:46 Functions: 0 5 0.0 %
Branches: 2 6 33.3 %

           Branch data     Line data    Source code
       1                 :            : // Copyright (c) 2020-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 <test/util/validation.h>
       6                 :            : 
       7                 :            : #include <util/check.h>
       8                 :            : #include <util/time.h>
       9                 :            : #include <validation.h>
      10                 :            : #include <validationinterface.h>
      11                 :            : 
      12                 :          0 : void TestChainstateManager::ResetIbd()
      13                 :            : {
      14                 :          0 :     m_cached_finished_ibd = false;
      15         [ #  # ]:          0 :     assert(IsInitialBlockDownload());
      16                 :          0 : }
      17         [ +  - ]:          2 : 
      18         [ +  - ]:          2 : void TestChainstateManager::JumpOutOfIbd()
      19                 :            : {
      20                 :          0 :     Assert(IsInitialBlockDownload());
      21                 :          0 :     m_cached_finished_ibd = true;
      22                 :          0 :     Assert(!IsInitialBlockDownload());
      23                 :          0 : }
      24                 :            : 
      25                 :          0 : void ValidationInterfaceTest::BlockConnected(
      26                 :            :         ChainstateRole role,
      27                 :            :         CValidationInterface& obj,
      28                 :            :         const std::shared_ptr<const CBlock>& block,
      29                 :            :         const CBlockIndex* pindex)
      30                 :            : {
      31                 :          0 :     obj.BlockConnected(role, block, pindex);
      32                 :          0 : }

Generated by: LCOV version 1.14