Lines Matching refs:Result
17 fn small_test_msg() -> Result<Message> { in small_test_msg()
60 fn large_test_msg() -> Result<Message> { in large_test_msg()
229 fn must_edns0_resource_header(l: u16, extrc: u32, d: bool) -> Result<ResourceHeader> { in must_edns0_resource_header()
239 fn test_name_string() -> Result<()> { in test_name_string()
248 fn test_question_pack_unpack() -> Result<()> { in test_question_pack_unpack()
283 fn test_name() -> Result<()> { in test_name()
306 fn test_name_pack_unpack() -> Result<()> { in test_name_pack_unpack()
358 fn test_incompressible_name() -> Result<()> { in test_incompressible_name()
383 fn test_header_unpack_error() -> Result<()> { in test_header_unpack_error()
405 fn test_parser_start() -> Result<()> { in test_parser_start()
414 fn test_resource_not_started() -> Result<()> { in test_resource_not_started()
415 let tests: Vec<(&str, Box<dyn Fn(&mut Parser<'_>) -> Result<()>>)> = vec![ in test_resource_not_started()
418 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
422 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
426 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
430 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
434 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
438 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
442 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
446 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
450 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.resource_body().map(|_| ()) }), in test_resource_not_started()
465 fn test_srv_pack_unpack() -> Result<()> { in test_srv_pack_unpack()
482 fn test_dns_pack_unpack() -> Result<()> { in test_dns_pack_unpack()
509 fn test_dns_append_pack_unpack() -> Result<()> { in test_dns_append_pack_unpack()
537 fn test_skip_all() -> Result<()> { in test_skip_all()
560 fn test_skip_each() -> Result<()> { in test_skip_each()
603 fn test_skip_after_read() -> Result<()> { in test_skip_after_read()
609 let tests: Vec<(&str, Box<dyn Fn(&mut Parser<'_>) -> Result<()>>)> = vec![ in test_skip_after_read()
612 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.question().map(|_| ()) }), in test_skip_after_read()
616 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.answer().map(|_| ()) }), in test_skip_after_read()
620 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.authority().map(|_| ()) }), in test_skip_after_read()
624 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.additional().map(|_| ()) }), in test_skip_after_read()
649 fn test_skip_not_started() -> Result<()> { in test_skip_not_started()
650 let tests: Vec<(&str, Box<dyn Fn(&mut Parser<'_>) -> Result<()>>)> = vec![ in test_skip_not_started()
653 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.skip_all_questions() }), in test_skip_not_started()
657 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.skip_all_answers() }), in test_skip_not_started()
661 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.skip_all_authorities() }), in test_skip_not_started()
665 Box::new(|p: &mut Parser<'_>| -> Result<()> { p.skip_all_additionals() }), in test_skip_not_started()
682 fn test_too_many_records() -> Result<()> { in test_too_many_records()
752 fn test_very_long_txt() -> Result<()> { in test_very_long_txt()
796 fn test_too_long_txt() -> Result<()> { in test_too_long_txt()
812 fn test_start_error() -> Result<()> { in test_start_error()
813 let tests: Vec<(&str, Box<dyn Fn(&mut Builder) -> Result<()>>)> = vec![ in test_start_error()
816 Box::new(|b: &mut Builder| -> Result<()> { b.start_questions() }), in test_start_error()
820 Box::new(|b: &mut Builder| -> Result<()> { b.start_answers() }), in test_start_error()
824 Box::new(|b: &mut Builder| -> Result<()> { b.start_authorities() }), in test_start_error()
828 Box::new(|b: &mut Builder| -> Result<()> { b.start_additionals() }), in test_start_error()
873 fn test_builder_resource_error() -> Result<()> { in test_builder_resource_error()
874 let tests: Vec<(&str, Box<dyn Fn(&mut Builder) -> Result<()>>)> = vec![ in test_builder_resource_error()
877 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
886 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
895 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
904 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
913 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
922 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
931 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
940 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
949 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
958 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
1028 fn test_finish_error() -> Result<()> { in test_finish_error()
1041 fn test_builder() -> Result<()> { in test_builder()
1081 fn test_resource_pack() -> Result<()> { in test_resource_pack()
1142 fn test_resource_pack_length() -> Result<()> { in test_resource_pack_length()
1166 fn test_option_pack_unpack() -> Result<()> { in test_option_pack_unpack()