LCOV - code coverage report
Current view: top level - src/node - database_args.cpp (source / functions) Hit Total Coverage
Test: fuzz_coverage.info Lines: 0 3 0.0 %
Date: 2024-01-03 14:57:27 Functions: 0 1 0.0 %
Branches: 0 6 0.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/database_args.h>
       6                 :            : 
       7                 :            : #include <common/args.h>
       8                 :            : #include <dbwrapper.h>
       9                 :            : 
      10                 :            : namespace node {
      11                 :          0 : void ReadDatabaseArgs(const ArgsManager& args, DBOptions& options)
      12                 :            : {
      13                 :            :     // Settings here apply to all databases (chainstate, blocks, and index
      14                 :            :     // databases), but it'd be easy to parse database-specific options by adding
      15                 :            :     // a database_type string or enum parameter to this function.
      16 [ #  # ][ #  # ]:          0 :     if (auto value = args.GetBoolArg("-forcecompactdb")) options.force_compact = *value;
                 [ #  # ]
      17                 :          0 : }
      18                 :            : } // namespace node

Generated by: LCOV version 1.14