Lines Matching refs:got

266     let got = p.question()?;  in test_question_pack_unpack()  localVariable
275 got, want, in test_question_pack_unpack()
337 let mut got = Name::default(); in test_name_pack_unpack() localVariable
338 let n = got.unpack(&buf, 0)?; in test_name_pack_unpack()
349 got, want, in test_name_pack_unpack()
474 let mut got = SrvResource::default(); in test_srv_pack_unpack() localVariable
475 got.unpack(&b, 0, 0)?; in test_srv_pack_unpack()
476 assert_eq!(got.to_string(), want.to_string(),); in test_srv_pack_unpack()
500 let mut got = Message::default(); in test_dns_pack_unpack() localVariable
501 got.unpack(&b)?; in test_dns_pack_unpack()
502 assert_eq!(got.to_string(), want.to_string()); in test_dns_pack_unpack()
528 let mut got = Message::default(); in test_dns_append_pack_unpack() localVariable
529 got.unpack(&b[2..])?; in test_dns_append_pack_unpack()
530 assert_eq!(got.to_string(), want.to_string()); in test_dns_append_pack_unpack()
738 if let Err(got) = msg.pack() { in test_too_many_records()
740 got, want, in test_too_many_records()
779 let mut got = Resource::default(); in test_very_long_txt() localVariable
780 let off = got.header.unpack(&buf, 0, 0)?; in test_very_long_txt()
781 let (body, n) = unpack_resource_body(got.header.typ, &buf, off, got.header.length as usize)?; in test_very_long_txt()
782 got.body = Some(body); in test_very_long_txt()
790 assert_eq!(got.to_string(), want.to_string()); in test_very_long_txt()
1031 if let Err(got) = b.finish() { in test_finish_error()
1032 assert_eq!(got, want, "got Builder.Finish() = {got}, want = {want}"); in test_finish_error()
1068 let got = b.finish()?; in test_builder() localVariable
1070 got, in test_builder()
1073 got.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()