LCOV - code coverage report
Current view: top level - src - deploymentinfo.h (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 3 4 75.0 %
Date: 2022-04-21 14:51:19 Functions: 1 1 100.0 %
Legend: Modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed

Not modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed
Branches: 0 0 -

           Branch data     Line data    Source code
#       1                 :            : // Copyright (c) 2016-2021 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_DEPLOYMENTINFO_H
#       6                 :            : #define BITCOIN_DEPLOYMENTINFO_H
#       7                 :            : 
#       8                 :            : #include <consensus/params.h>
#       9                 :            : 
#      10                 :            : #include <string>
#      11                 :            : 
#      12                 :            : struct VBDeploymentInfo {
#      13                 :            :     /** Deployment name */
#      14                 :            :     const char *name;
#      15                 :            :     /** Whether GBT clients can safely ignore this rule in simplified usage */
#      16                 :            :     bool gbt_force;
#      17                 :            : };
#      18                 :            : 
#      19                 :            : extern const VBDeploymentInfo VersionBitsDeploymentInfo[Consensus::MAX_VERSION_BITS_DEPLOYMENTS];
#      20                 :            : 
#      21                 :            : std::string DeploymentName(Consensus::BuriedDeployment dep);
#      22                 :            : 
#      23                 :            : inline std::string DeploymentName(Consensus::DeploymentPos pos)
#      24                 :        172 : {
#      25                 :        172 :     assert(Consensus::ValidDeployment(pos));
#      26                 :          0 :     return VersionBitsDeploymentInfo[pos].name;
#      27                 :        172 : }
#      28                 :            : 
#      29                 :            : #endif // BITCOIN_DEPLOYMENTINFO_H

Generated by: LCOV version 0-eol-96201-ge66f56f4af6a