X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2Fsrc%2Fmsg_targets%2Fmsg_target_template.txt;h=c6064388dcabc4fbcf8280a23826da6c6aa02af7;hb=1852715fc8163262e370f49995e81ea6efb1cf83;hp=ea785ff4ef314073a6e4e7baff428793abaa9c31;hpb=a343cf94368f33171f1c146ac79777cb4edea055;p=rust-lightning diff --git a/fuzz/src/msg_targets/msg_target_template.txt b/fuzz/src/msg_targets/msg_target_template.txt index ea785ff4..c6064388 100644 --- a/fuzz/src/msg_targets/msg_target_template.txt +++ b/fuzz/src/msg_targets/msg_target_template.txt @@ -1,16 +1,25 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + // 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 crate::msg_targets::utils::VecWriter; +use crate::utils::test_logger; #[inline] -pub fn do_test(data: &[u8]) { - TEST_MSG!(msgs::MSG_TARGET, dataEXTRA_ARGS); +pub fn TARGET_NAME_test(data: &[u8], _out: Out) { + TEST_MSG!(MSG_TARGET, dataEXTRA_ARGS); } #[no_mangle] pub extern "C" fn TARGET_NAME_run(data: *const u8, datalen: usize) { - do_test(unsafe { std::slice::from_raw_parts(data, datalen) }); + let data = unsafe { std::slice::from_raw_parts(data, datalen) }; + TEST_MSG!(MSG_TARGET, dataEXTRA_ARGS); }