Coverage Report

Created: 2024-10-21 15:10

/root/bitcoin/src/kernel/mempool_removal_reason.cpp
Line
Count
Source (jump to first uncovered line)
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
0
{
12
0
    switch (r) {
13
0
        case MemPoolRemovalReason::EXPIRY: return "expiry";
14
0
        case MemPoolRemovalReason::SIZELIMIT: return "sizelimit";
15
0
        case MemPoolRemovalReason::REORG: return "reorg";
16
0
        case MemPoolRemovalReason::BLOCK: return "block";
17
0
        case MemPoolRemovalReason::CONFLICT: return "conflict";
18
0
        case MemPoolRemovalReason::REPLACED: return "replaced";
19
0
    }
20
0
    assert(false);
21
0
}