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 use lightning::ln::msgs;
6 use msg_targets::utils::VecWriter;
9 pub fn do_test(data: &[u8]) {
10 test_msg!(msgs::Shutdown, data);
14 pub extern "C" fn msg_shutdown_run(data: *const u8, datalen: usize) {
15 do_test(unsafe { std::slice::from_raw_parts(data, datalen) });
21 fn duplicate_crash() {
22 super::do_test(&::hex::decode("00").unwrap());