Coverage Report

Created: 2026-07-14 18:13

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/bitcoin/src/kernel/mempool_removal_reason.cpp
Line
Count
Source
1
// Copyright (c) 2016-present 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 <kernel/mempool_removal_reason.h>
6
7
#include <cassert>
8
#include <string>
9
10
std::string RemovalReasonToString(const MemPoolRemovalReason& r) noexcept
11
132k
{
12
132k
    switch (r) {
  Branch (12:13): [True: 0, False: 132k]
13
61.3k
        case MemPoolRemovalReason::EXPIRY: return "expiry";
  Branch (13:9): [True: 61.3k, False: 71.5k]
14
2.57k
        case MemPoolRemovalReason::SIZELIMIT: return "sizelimit";
  Branch (14:9): [True: 2.57k, False: 130k]
15
2.90k
        case MemPoolRemovalReason::REORG: return "reorg";
  Branch (15:9): [True: 2.90k, False: 130k]
16
0
        case MemPoolRemovalReason::BLOCK: return "block";
  Branch (16:9): [True: 0, False: 132k]
17
13.7k
        case MemPoolRemovalReason::CONFLICT: return "conflict";
  Branch (17:9): [True: 13.7k, False: 119k]
18
52.3k
        case MemPoolRemovalReason::REPLACED: return "replaced";
  Branch (18:9): [True: 52.3k, False: 80.6k]
19
132k
    }
20
132k
    assert(false);
  Branch (20:5): [Folded - Ignored]
21
0
}