X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2Fsrc%2Fmsg_targets%2Fmsg_open_channel.rs;h=ce637c167efe20f83253ca7b5c39d969e5c88441;hb=46009a5f83e539fc103ea164a3c765a7f014f09a;hp=9c700c2b2e44e9b49fd55742e208c69da87a2b83;hpb=c906f2843234ba9164e562a19bccaabde0243d95;p=rust-lightning diff --git a/fuzz/src/msg_targets/msg_open_channel.rs b/fuzz/src/msg_targets/msg_open_channel.rs index 9c700c2b..ce637c16 100644 --- a/fuzz/src/msg_targets/msg_open_channel.rs +++ b/fuzz/src/msg_targets/msg_open_channel.rs @@ -1,16 +1,27 @@ +// 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 utils::test_logger; #[inline] -pub fn do_test(data: &[u8]) { - test_msg!(msgs::OpenChannel, data); +pub fn msg_open_channel_test(data: &[u8], _out: Out) { + test_msg_simple!(msgs::OpenChannel, data); } #[no_mangle] pub extern "C" fn msg_open_channel_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!(msgs::OpenChannel, data); }