Lines Matching refs:vec
25 questions: vec![Question { in small_test_msg()
30 answers: vec![Resource { in small_test_msg()
39 authorities: vec![Resource { in small_test_msg()
48 additionals: vec![Resource { in small_test_msg()
68 questions: vec![Question { in large_test_msg()
73 answers: vec![ in large_test_msg()
169 authorities: vec![ in large_test_msg()
193 additionals: vec![ in large_test_msg()
202 txt: vec!["So Long, and Thanks for All the Fish".into()], in large_test_msg()
213 txt: vec!["Hamster Huey and the Gooey Kablooie".into()], in large_test_msg()
219 options: vec![DnsOption { in large_test_msg()
221 data: vec![0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef], in large_test_msg()
254 let buf = want.pack(vec![0; 1], &mut Some(HashMap::new()), 1)?; in test_question_pack_unpack()
284 let tests = vec![ in test_name()
307 let tests: Vec<(&str, &str, Option<Error>)> = vec![ in test_name_pack_unpack()
321 let result = input.pack(vec![], &mut Some(HashMap::new()), 0); in test_name_pack_unpack()
361 let buf = name.pack(vec![], &mut compression, 0)?; in test_incompressible_name()
384 let wants = vec![ in test_header_unpack_error()
393 let mut buf = vec![]; in test_header_unpack_error()
415 let tests: Vec<(&str, Box<dyn Fn(&mut Parser<'_>) -> Result<()>>)> = vec![ in test_resource_not_started()
473 let b = want.pack(vec![], &mut None, 0)?; in test_srv_pack_unpack()
483 let wants = vec![ in test_dns_pack_unpack()
486 questions: vec![Question { in test_dns_pack_unpack()
491 answers: vec![], in test_dns_pack_unpack()
492 authorities: vec![], in test_dns_pack_unpack()
493 additionals: vec![], in test_dns_pack_unpack()
510 let wants = vec![ in test_dns_append_pack_unpack()
513 questions: vec![Question { in test_dns_append_pack_unpack()
518 answers: vec![], in test_dns_append_pack_unpack()
519 authorities: vec![], in test_dns_append_pack_unpack()
520 additionals: vec![], in test_dns_append_pack_unpack()
526 let mut b = vec![0; 2]; in test_dns_append_pack_unpack()
609 let tests: Vec<(&str, Box<dyn Fn(&mut Parser<'_>) -> Result<()>>)> = vec![ in test_skip_after_read()
650 let tests: Vec<(&str, Box<dyn Fn(&mut Parser<'_>) -> Result<()>>)> = vec![ in test_skip_not_started()
684 let tests = vec![ in test_too_many_records()
688 questions: vec![Question::default(); recs], in test_too_many_records()
697 let mut a = vec![]; in test_too_many_records()
711 let mut a = vec![]; in test_too_many_records()
725 let mut a = vec![]; in test_too_many_records()
766 txt: vec![ in test_very_long_txt()
778 let buf = want.pack(vec![], &mut Some(HashMap::new()), 0)?; in test_very_long_txt()
801 let rb = TxtResource { txt: vec![str256] }; in test_too_long_txt()
802 if let Err(err) = rb.pack(vec![], &mut Some(HashMap::new()), 0) { in test_too_long_txt()
813 let tests: Vec<(&str, Box<dyn Fn(&mut Builder) -> Result<()>>)> = vec![ in test_start_error()
832 let envs: Vec<(&str, Box<dyn Fn() -> Builder>, Error)> = vec![ in test_start_error()
874 let tests: Vec<(&str, Box<dyn Fn(&mut Builder) -> Result<()>>)> = vec![ in test_builder_resource_error()
967 let envs: Vec<(&str, Box<dyn Fn() -> Builder>, Error)> = vec![ in test_builder_resource_error()
1082 let tests = vec![ in test_resource_pack()
1085 questions: vec![Question { in test_resource_pack()
1090 answers: vec![Resource { in test_resource_pack()
1100 questions: vec![Question { in test_resource_pack()
1105 authorities: vec![Resource { in test_resource_pack()
1115 questions: vec![Question { in test_resource_pack()
1120 additionals: vec![Resource { in test_resource_pack()
1153 let (hb, _) = r.header.pack(vec![], &mut None, 0)?; in test_resource_pack_length()
1154 let buf = r.pack(vec![], &mut None, 0)?; in test_resource_pack_length()
1167 let tests = vec![ in test_option_pack_unpack()
1170 vec![ in test_option_pack_unpack()
1178 questions: vec![Question { in test_option_pack_unpack()
1183 additionals: vec![Resource { in test_option_pack_unpack()
1198 vec![ in test_option_pack_unpack()
1207 questions: vec![Question { in test_option_pack_unpack()
1212 additionals: vec![Resource { in test_option_pack_unpack()
1219 options: vec![ in test_option_pack_unpack()
1222 data: vec![0x00, 0x00], in test_option_pack_unpack()
1226 data: vec![0x12, 0x34], in test_option_pack_unpack()
1241 vec![ in test_option_pack_unpack()
1251 questions: vec![Question { in test_option_pack_unpack()
1256 additionals: vec![ in test_option_pack_unpack()
1264 options: vec![DnsOption { in test_option_pack_unpack()
1266 data: vec![0x12, 0x34], in test_option_pack_unpack()
1277 options: vec![DnsOption { in test_option_pack_unpack()
1279 data: vec![0x00, 0x00], in test_option_pack_unpack()