Lines Matching refs:Box

37             body: Some(Box::new(AResource { a: [127, 0, 0, 1] })),  in small_test_msg()
46 body: Some(Box::new(AResource { a: [127, 0, 0, 1] })), in small_test_msg()
55 body: Some(Box::new(AResource { a: [127, 0, 0, 1] })), in small_test_msg()
81 body: Some(Box::new(AResource { a: [127, 0, 0, 1] })), in large_test_msg()
90 body: Some(Box::new(AResource { a: [127, 0, 0, 2] })), in large_test_msg()
99 body: Some(Box::new(AaaaResource { in large_test_msg()
110 body: Some(Box::new(CnameResource { in large_test_msg()
121 body: Some(Box::new(SoaResource { in large_test_msg()
138 body: Some(Box::new(PtrResource { in large_test_msg()
149 body: Some(Box::new(MxResource { in large_test_msg()
161 body: Some(Box::new(SrvResource { in large_test_msg()
177 body: Some(Box::new(NsResource { in large_test_msg()
188 body: Some(Box::new(NsResource { in large_test_msg()
201 body: Some(Box::new(TxtResource { in large_test_msg()
212 body: Some(Box::new(TxtResource { in large_test_msg()
218 body: Some(Box::new(OptResource { in large_test_msg()
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()
466 let want = Box::new(SrvResource { in test_srv_pack_unpack()
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()
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()
765 body: Some(Box::new(TxtResource { in test_very_long_txt()
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()
832 let envs: Vec<(&str, Box<dyn Fn() -> Builder>, Error)> = vec![ in test_start_error()
835 Box::new(|| -> Builder { in test_start_error()
845 Box::new(|| -> Builder { in test_start_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()
880 body: Some(Box::<CnameResource>::default()), in test_builder_resource_error()
886 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
889 body: Some(Box::<MxResource>::default()), in test_builder_resource_error()
895 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
898 body: Some(Box::<NsResource>::default()), in test_builder_resource_error()
904 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
907 body: Some(Box::<PtrResource>::default()), in test_builder_resource_error()
913 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
916 body: Some(Box::<SoaResource>::default()), in test_builder_resource_error()
922 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
925 body: Some(Box::<TxtResource>::default()), in test_builder_resource_error()
931 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
934 body: Some(Box::<SrvResource>::default()), in test_builder_resource_error()
940 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
943 body: Some(Box::<AResource>::default()), in test_builder_resource_error()
949 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
952 body: Some(Box::<AaaaResource>::default()), in test_builder_resource_error()
958 Box::new(|b: &mut Builder| -> Result<()> { in test_builder_resource_error()
961 body: Some(Box::<OptResource>::default()), in test_builder_resource_error()
967 let envs: Vec<(&str, Box<dyn Fn() -> Builder>, Error)> = vec![ in test_builder_resource_error()
970 Box::new(|| -> Builder { in test_builder_resource_error()
980 Box::new(|| -> Builder { in test_builder_resource_error()
990 Box::new(|| -> Builder { in test_builder_resource_error()
1000 Box::new(|| -> Builder { in test_builder_resource_error()
1107 body: Some(Box::<NsResource>::default()), in test_resource_pack()
1150 body: Some(Box::new(AResource { a: [127, 0, 0, 2] })), in test_resource_pack_length()
1189 body: Some(Box::<OptResource>::default()), in test_option_pack_unpack()
1218 body: Some(Box::new(OptResource { in test_option_pack_unpack()
1263 body: Some(Box::new(OptResource { in test_option_pack_unpack()
1276 body: Some(Box::new(OptResource { in test_option_pack_unpack()