16 | +void test_one_input(const std::vector<uint8_t>& buffer)
17 | +{
18 | + FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
19 | +
20 | + const TransactionError transaction_error = fuzzed_data_provider.PickValueInArray<TransactionError>({TransactionError::OK, TransactionError::MISSING_INPUTS, TransactionError::ALREADY_IN_CHAIN, TransactionError::P2P_DISABLED, TransactionError::MEMPOOL_REJECTED, TransactionError::MEMPOOL_ERROR, TransactionError::INVALID_PSBT, TransactionError::PSBT_MISMATCH, TransactionError::SIGHASH_MISMATCH, TransactionError::MAX_FEE_EXCEEDED});
21 | + (void)TransactionErrorString(transaction_error);
Is this not string.cpp related?
src/test/fuzz/string.cpp is used for fuzzing functions taking std::string or std::vector<std::string> as inputs whereas this one takes a TransactionError as input (the only method doing so).
I think this one deserves to be in the new "anything goes" kitchen_sink.cpp due to lack of a more appropriate home :)