fn check_rrset(rrset: &Rrset, expected_type: Type, expected_rdatas: &[&[u8]]) {
        assert_eq!(rrset.rr_type, expected_type);
        let mut rdatas = rrset.rdatas();
        for &expected_rdata in expected_rdatas {
            assert_eq!(rdatas.next().unwrap().octets(), expected_rdata);
        }
        assert_eq!(rdatas.next(), None);
    }
/// Checks that an RRset has the expected type and RDATAs. The
/// RDATAs are checked in order, which is really too strict. But
/// since our RR handling code stores RDATAs in the order they were
/// written, this works for these tests, because we know the order
/// the RDATAs were added!
Checks that an RRset has the expected type and RDATAs. The
RDATAs are checked in order, which is really too strict. But
since our RR handling code stores RDATAs in the order they were
written, this works for these tests, because we know the order
the RDATAs were added!
Checks that an RRset has the expected type and RDATAs . The RDATAs are checked in order which is really too strict . But since our RR handling code stores RDATAs in the order they were written this works for these tests because we know the order the RDATAs were added!
fn check_rrset(rrset: &Rrset, expected_type: Type, expected_rdatas: &[&[u8]]) {
        assert_eq!(rrset.rr_type, expected_type);
        let mut rdatas = rrset.rdatas();
        for &expected_rdata in expected_rdatas {
            assert_eq!(rdatas.next().unwrap().octets(), expected_rdata);
        }
        assert_eq!(rdatas.next(), None);
    }
fn check_rrset ( rrset : & Rrset , expected_type : Type , expected_rdatas : & [ & [ u8 ] ] ) { assert_eq ! ( rrset rr_type expected_type ) ; let mut rdatas = rrset . rdatas ( ) ; for & expected_rdata in expected_rdatas { assert_eq ! ( rdatas next ( ) unwrap ( ) octets ( ) expected_rdata ) ; } assert_eq ! ( rdatas next ( ) None ) ; }
Checks that an RRset has the expected type and RDATAs.
Checks that an RRset has the expected type and RDATAs .
rrset
&Rrset
expected_type
Type
expected_rdatas
&[&[u8]]
rrset
&Rrset
expected_type
Type
expected_rdatas
&[&[u8]]