LCOV - code coverage report
Current view: top level - src - deploymentinfo.cpp (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 14 16 87.5 %
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: 11 12 91.7 %

           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                 :            : #include <deploymentinfo.h>
#       6                 :            : 
#       7                 :            : #include <consensus/params.h>
#       8                 :            : 
#       9                 :            : const struct VBDeploymentInfo VersionBitsDeploymentInfo[Consensus::MAX_VERSION_BITS_DEPLOYMENTS] = {
#      10                 :            :     {
#      11                 :            :         /*.name =*/ "testdummy",
#      12                 :            :         /*.gbt_force =*/ true,
#      13                 :            :     },
#      14                 :            :     {
#      15                 :            :         /*.name =*/ "taproot",
#      16                 :            :         /*.gbt_force =*/ true,
#      17                 :            :     },
#      18                 :            : };
#      19                 :            : 
#      20                 :            : std::string DeploymentName(Consensus::BuriedDeployment dep)
#      21                 :        430 : {
#      22                 :        430 :     assert(ValidDeployment(dep));
#      23         [ -  + ]:          0 :     switch (dep) {
#      24         [ +  + ]:         86 :     case Consensus::DEPLOYMENT_HEIGHTINCB:
#      25                 :         86 :         return "bip34";
#      26         [ +  + ]:         86 :     case Consensus::DEPLOYMENT_CLTV:
#      27                 :         86 :         return "bip65";
#      28         [ +  + ]:         86 :     case Consensus::DEPLOYMENT_DERSIG:
#      29                 :         86 :         return "bip66";
#      30         [ +  + ]:         86 :     case Consensus::DEPLOYMENT_CSV:
#      31                 :         86 :         return "csv";
#      32         [ +  + ]:         86 :     case Consensus::DEPLOYMENT_SEGWIT:
#      33                 :         86 :         return "segwit";
#      34                 :        430 :     } // no default case, so the compiler can warn about missing cases
#      35                 :          0 :     return "";
#      36                 :        430 : }

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