Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
reachability.h
Go to the documentation of this file.
1// Copyright (c) 2026-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#ifndef BITCOIN_TEST_FUZZ_UTIL_REACHABILITY_H
6#define BITCOIN_TEST_FUZZ_UTIL_REACHABILITY_H
7
8#include <source_location>
9#include <string_view>
10
17 std::string_view message;
18 std::source_location location;
19
20 constexpr explicit ReachabilityGoal(
21 std::string_view message,
22 std::source_location location = std::source_location::current())
24 {
25 }
26};
27
30
32void ObserveReachabilityGoal(bool reached, const ReachabilityGoal& goal);
33
34#endif // BITCOIN_TEST_FUZZ_UTIL_REACHABILITY_H
void ObserveReachabilityGoal(bool reached, const ReachabilityGoal &goal)
Record whether a registered goal is satisfied by at least one fuzz input.
void RegisterReachabilityGoal(const ReachabilityGoal &goal)
Register a goal before executing any fuzz inputs.
A reachability condition explicitly registered by a fuzz target.
std::source_location location
constexpr ReachabilityGoal(std::string_view message, std::source_location location=std::source_location::current())
std::string_view message
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:82