X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2Fsrc%2Fmsg_targets%2Fmsg_pong.rs;h=1c90eefdb32a9f1949ff80cfaa33a1cdd54904a8;hb=a1a2f2abc86b0015f05ca69b22ce27380d4d90aa;hp=cec5c5adf68b9e2be02cf1856c4ad6726204a290;hpb=2ec7c7703698b55942a7d0d1b23d83e3881d557f;p=rust-lightning diff --git a/fuzz/src/msg_targets/msg_pong.rs b/fuzz/src/msg_targets/msg_pong.rs index cec5c5ad..1c90eefd 100644 --- a/fuzz/src/msg_targets/msg_pong.rs +++ b/fuzz/src/msg_targets/msg_pong.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_simple!(msgs::Pong, data); +pub fn msg_pong_test(data: &[u8], _out: Out) { + test_msg_simple!(lightning::ln::msgs::Pong, data); } #[no_mangle] pub extern "C" fn msg_pong_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::Pong, data); }