Bitcoin Core Fuzz Coverage Report

Coverage Report

Created: 2026-06-01 16:00

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/home/zip/work/bitcoin/src/common/license_info.cpp
Line
Count
Source
1
// Copyright (c) The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or https://opensource.org/license/mit/.
4
5
#include <bitcoin-build-config.h> // IWYU pragma: keep
6
7
#include <common/license_info.h>
8
9
#include <tinyformat.h>
10
#include <util/translation.h>
11
12
#include <string>
13
14
std::string CopyrightHolders(const std::string& strPrefix)
15
0
{
16
0
    const auto copyright_devs = strprintf(_(COPYRIGHT_HOLDERS), COPYRIGHT_HOLDERS_SUBSTITUTION).translated;
Line
Count
Source
1172
0
#define strprintf tfm::format
    const auto copyright_devs = strprintf(_(COPYRIGHT_HOLDERS), COPYRIGHT_HOLDERS_SUBSTITUTION).translated;
Line
Count
Source
21
0
#define COPYRIGHT_HOLDERS "The %s developers"
    const auto copyright_devs = strprintf(_(COPYRIGHT_HOLDERS), COPYRIGHT_HOLDERS_SUBSTITUTION).translated;
Line
Count
Source
27
0
#define COPYRIGHT_HOLDERS_SUBSTITUTION "Bitcoin Core"
17
0
    std::string strCopyrightHolders = strPrefix + copyright_devs;
18
19
    // Make sure Bitcoin Core copyright is not removed by accident
20
0
    if (copyright_devs.find("Bitcoin Core") == std::string::npos) {
21
0
        strCopyrightHolders += "\n" + strPrefix + "The Bitcoin Core developers";
22
0
    }
23
0
    return strCopyrightHolders;
24
0
}
25
26
std::string LicenseInfo()
27
0
{
28
0
    const std::string URL_SOURCE_CODE = "<https://github.com/bitcoin/bitcoin>";
29
30
0
    return CopyrightHolders(strprintf(_("Copyright (C) %i-%i"), 2009, COPYRIGHT_YEAR).translated + " ") + "\n" +
Line
Count
Source
1172
0
#define strprintf tfm::format
    return CopyrightHolders(strprintf(_("Copyright (C) %i-%i"), 2009, COPYRIGHT_YEAR).translated + " ") + "\n" +
Line
Count
Source
30
0
#define COPYRIGHT_YEAR 2026
31
0
           "\n" +
32
0
           strprintf(_("Please contribute if you find %s useful. "
Line
Count
Source
1172
0
#define strprintf tfm::format
33
0
                       "Visit %s for further information about the software."),
34
0
                     CLIENT_NAME, "<" CLIENT_URL ">")
Line
Count
Source
98
0
#define CLIENT_NAME "Bitcoin Core"
35
0
               .translated +
36
0
           "\n" +
37
0
           strprintf(_("The source code is available from %s."), URL_SOURCE_CODE).translated +
Line
Count
Source
1172
0
#define strprintf tfm::format
38
0
           "\n" +
39
0
           "\n" +
40
0
           _("This is experimental software.") + "\n" +
41
0
           strprintf(_("Distributed under the MIT software license, see the accompanying file %s or %s"), "COPYING", "<https://opensource.org/license/MIT>").translated +
Line
Count
Source
1172
0
#define strprintf tfm::format
42
0
           "\n";
43
0
}