X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2Fsrc%2Fmsg_targets%2Fmsg_closing_signed.rs;h=0497b1fcc65c81b958b55c81be50636bda418dda;hb=refs%2Fheads%2F2024-02-drop-useless-refs;hp=8043d9de083853fc1c70145e2df2c8908c68962f;hpb=425e4adbf23e9b67ea03457375812f758e95c9e4;p=rust-lightning diff --git a/fuzz/src/msg_targets/msg_closing_signed.rs b/fuzz/src/msg_targets/msg_closing_signed.rs index 8043d9de..0497b1fc 100644 --- a/fuzz/src/msg_targets/msg_closing_signed.rs +++ b/fuzz/src/msg_targets/msg_closing_signed.rs @@ -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::ClosingSigned, data); +pub fn msg_closing_signed_test(data: &[u8], _out: Out) { + test_msg_simple!(lightning::ln::msgs::ClosingSigned, data); } #[no_mangle] pub extern "C" fn msg_closing_signed_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_simple!(lightning::ln::msgs::ClosingSigned, data); }