Lines Matching refs:want

240     let want = "foo";  in test_name_string()  localVariable
241 let name = Name::new(want)?; in test_name_string()
242 assert_eq!(name.to_string(), want); in test_name_string()
249 let want = Question { in test_question_pack_unpack() localVariable
254 let buf = want.pack(vec![0; 1], &mut Some(HashMap::new()), 1)?; in test_question_pack_unpack()
275 got, want, in test_question_pack_unpack()
319 for (input, want, want_err) in tests { in test_name_pack_unpack()
335 let want = Name::new(want)?; in test_name_pack_unpack() localVariable
349 got, want, in test_name_pack_unpack()
394 for want in wants { in test_header_unpack_error()
397 assert!(result.is_err(), "{}", want); in test_header_unpack_error()
466 let want = Box::new(SrvResource { in test_srv_pack_unpack() localVariable
473 let b = want.pack(vec![], &mut None, 0)?; in test_srv_pack_unpack()
476 assert_eq!(got.to_string(), want.to_string(),); in test_srv_pack_unpack()
498 for mut want in wants { in test_dns_pack_unpack()
499 let b = want.pack()?; in test_dns_pack_unpack()
502 assert_eq!(got.to_string(), want.to_string()); in test_dns_pack_unpack()
525 for mut want in wants { in test_dns_append_pack_unpack()
527 b = want.append_pack(b)?; in test_dns_append_pack_unpack()
530 assert_eq!(got.to_string(), want.to_string()); in test_dns_append_pack_unpack()
737 for (name, mut msg, want) in tests { in test_too_many_records()
740 got, want, in test_too_many_records()
758 let mut want = Resource { in test_very_long_txt() localVariable
778 let buf = want.pack(vec![], &mut Some(HashMap::new()), 0)?; in test_very_long_txt()
790 assert_eq!(got.to_string(), want.to_string()); in test_very_long_txt()
1030 let want = Error::ErrNotStarted; in test_finish_error() localVariable
1032 assert_eq!(got, want, "got Builder.Finish() = {got}, want = {want}"); in test_finish_error()
1043 let want = msg.pack()?; in test_builder() localVariable
1071 want, in test_builder()
1074 want.len() in test_builder()
1159 let (got, want) = (hdr.length as usize, buf.len() - hb.len()); in test_resource_pack_length()
1160 assert_eq!(got, want, "got hdr.Length = {got}, want = {want}"); in test_resource_pack_length()