LCOV - code coverage report
Current view: top level - src/test/fuzz/util - mempool.h (source / functions) Coverage Total Hit
Test: test_bitcoin_coverage.info Lines: 0.0 % 2 0
Test Date: 2024-08-28 04:44:32 Functions: - 0 0
Branches: 0.0 % 2 0

             Branch data     Line data    Source code
       1                 :             : // Copyright (c) 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                 :             : #ifndef BITCOIN_TEST_FUZZ_UTIL_MEMPOOL_H
       6                 :             : #define BITCOIN_TEST_FUZZ_UTIL_MEMPOOL_H
       7                 :             : 
       8                 :             : #include <kernel/mempool_entry.h>
       9                 :             : #include <validation.h>
      10                 :             : 
      11                 :             : class CTransaction;
      12                 :             : class CTxMemPool;
      13                 :             : class FuzzedDataProvider;
      14                 :             : 
      15                 :             : class DummyChainState final : public Chainstate
      16                 :             : {
      17                 :             : public:
      18                 :           0 :     void SetMempool(CTxMemPool* mempool)
      19                 :             :     {
      20         [ #  # ]:           0 :         m_mempool = mempool;
      21                 :             :     }
      22                 :             : };
      23                 :             : 
      24                 :             : [[nodiscard]] CTxMemPoolEntry ConsumeTxMemPoolEntry(FuzzedDataProvider& fuzzed_data_provider, const CTransaction& tx) noexcept;
      25                 :             : 
      26                 :             : #endif // BITCOIN_TEST_FUZZ_UTIL_MEMPOOL_H
        

Generated by: LCOV version 2.0-1