Coverage Report

Created: 2026-07-01 15:07

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/root/bitcoin/src/test/fuzz/tx_out.cpp
Line
Count
Source
1
// Copyright (c) 2019-present 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 <consensus/validation.h>
6
#include <core_memusage.h>
7
#include <policy/feerate.h>
8
#include <policy/policy.h>
9
#include <primitives/transaction.h>
10
#include <streams.h>
11
#include <test/fuzz/fuzz.h>
12
13
FUZZ_TARGET(tx_out)
14
0
{
15
0
    CTxOut tx_out;
16
0
    try {
17
0
        SpanReader{buffer} >> tx_out;
18
0
    } catch (const std::ios_base::failure&) {
19
0
        return;
20
0
    }
21
22
0
    const CFeeRate dust_relay_fee{DUST_RELAY_TX_FEE};
23
0
    (void)GetDustThreshold(tx_out, dust_relay_fee);
24
0
    (void)IsDust(tx_out, dust_relay_fee);
25
0
    (void)RecursiveDynamicUsage(tx_out);
26
27
0
    (void)tx_out.ToString();
28
0
    (void)tx_out.IsNull();
29
0
    tx_out.SetNull();
30
    assert(tx_out.IsNull());
  Branch (30:5): [True: 0, False: 0]
31
0
}