| 58 | } // namespace |
| 59 | |
| 60 | void initialize_process_message() |
| 61 | { |
| 62 | if (const auto val{std::getenv("LIMIT_TO_MESSAGE_TYPE")}) { |
| 63 | LIMIT_TO_MESSAGE_TYPE = val; |
| 64 | Assert(std::count(ALL_NET_MESSAGE_TYPES.begin(), ALL_NET_MESSAGE_TYPES.end(), LIMIT_TO_MESSAGE_TYPE)); // Unknown message type passed |
| 65 | } |
| 66 | |
| 67 | static const auto testing_setup{ |
| 68 | MakeNoLogFileContext<TestingSetup>( |
| 69 | /*chain_type=*/ChainType::REGTEST, |
| 70 | {}), |
| 71 | }; |
| 72 | g_setup = testing_setup.get(); |
| 73 | ResetChainman(*g_setup); |
| 74 | } |
| 75 | |
| 76 | FUZZ_TARGET(process_message, .init = initialize_process_message) |
| 77 | { |
nothing calls this directly
no test coverage detected