LCOV - code coverage report
Current view: top level - src/node - mempool_persist_args.cpp (source / functions) Hit Total Coverage
Test: fuzz_coverage.info Lines: 2 8 25.0 %
Date: 2023-11-10 23:46:46 Functions: 0 4 0.0 %
Branches: 2 10 20.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                 :            : #include <node/mempool_persist_args.h>
       6                 :            : 
       7                 :            : #include <common/args.h>
       8                 :            : #include <util/fs.h>
       9                 :            : #include <validation.h>
      10                 :            : 
      11                 :            : namespace node {
      12                 :            : 
      13                 :          0 : bool ShouldPersistMempool(const ArgsManager& argsman)
      14                 :            : {
      15 [ #  # ][ #  # ]:          0 :     return argsman.GetBoolArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL);
      16                 :          0 : }
      17         [ +  - ]:          2 : 
      18         [ +  - ]:          2 : fs::path MempoolPath(const ArgsManager& argsman)
      19                 :            : {
      20         [ #  # ]:          0 :     return argsman.GetDataDirNet() / "mempool.dat";
      21                 :          0 : }
      22                 :            : 
      23                 :            : } // namespace node

Generated by: LCOV version 1.14