mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-27 17:01:10 +01:00
Adds threading (with logger capture) to fuzz targets so that we can more effeciently test a failing fuzz corpus on new code changes.
18 lines
596 B
Rust
18 lines
596 B
Rust
// This file is auto-generated by gen_target.sh based on msg_target_template.txt
|
|
// To modify it, modify msg_target_template.txt and run gen_target.sh instead.
|
|
|
|
use lightning::ln::msgs;
|
|
|
|
use msg_targets::utils::VecWriter;
|
|
use utils::test_logger;
|
|
|
|
#[inline]
|
|
pub fn msg_update_fulfill_htlc_test<Out: test_logger::Output>(data: &[u8], _out: Out) {
|
|
test_msg!(msgs::UpdateFulfillHTLC, data);
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn msg_update_fulfill_htlc_run(data: *const u8, datalen: usize) {
|
|
let data = unsafe { std::slice::from_raw_parts(data, datalen) };
|
|
test_msg!(msgs::UpdateFulfillHTLC, data);
|
|
}
|