1 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
2 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
4 extern crate lightning;
6 use lightning::ln::msgs;
12 pub fn do_test(data: &[u8]) {
13 test_msg!(msgs::Init, data);
16 #[cfg(feature = "afl")]
17 #[macro_use] extern crate afl;
18 #[cfg(feature = "afl")]
25 #[cfg(feature = "honggfuzz")]
26 #[macro_use] extern crate honggfuzz;
27 #[cfg(feature = "honggfuzz")]
40 fn duplicate_crash() {
41 super::do_test(&::hex::decode("00").unwrap());