MCPcopy Create free account
hub / github.com/ElementsProject/elements / FUZZ_TARGET

Function FUZZ_TARGET

src/test/fuzz/tx_out.cpp:13–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <version.h>
12
13FUZZ_TARGET(tx_out)
14{
15 CDataStream ds(buffer, SER_NETWORK, INIT_PROTO_VERSION);
16 CTxOut tx_out;
17 try {
18 int version;
19 ds >> version;
20 ds.SetVersion(version);
21 ds >> tx_out;
22 } catch (const std::ios_base::failure&) {
23 return;
24 }
25
26 const CFeeRate dust_relay_fee{DUST_RELAY_TX_FEE};
27 (void)GetDustThreshold(tx_out, dust_relay_fee);
28 (void)IsDust(tx_out, dust_relay_fee);
29 (void)RecursiveDynamicUsage(tx_out);
30
31 (void)tx_out.ToString();
32 (void)tx_out.IsNull();
33 tx_out.SetNull();
34 assert(tx_out.IsNull());
35}

Callers

nothing calls this directly

Calls 7

GetDustThresholdFunction · 0.85
IsDustFunction · 0.85
RecursiveDynamicUsageFunction · 0.85
SetVersionMethod · 0.45
ToStringMethod · 0.45
IsNullMethod · 0.45
SetNullMethod · 0.45

Tested by

no test coverage detected