make powerdns_tests a submodule of tests

This commit is contained in:
Stefan Bühler 2020-03-07 19:02:33 +01:00
parent d10da61a1c
commit 7aeeec9f97
3 changed files with 4 additions and 5 deletions

View File

@ -8,6 +8,3 @@ pub use self::unknown::*;
#[cfg(test)]
mod tests;
#[cfg(test)]
mod powerdns_tests;

View File

@ -1,3 +1,5 @@
mod powerdns_tests;
use crate::common_types::classes;
use crate::records::structs;
use crate::ser::packet::DnsPacketData;

View File

@ -871,10 +871,10 @@ fn test_DLV() {
#[test]
fn test_TYPE65226() {
let d1 = text::parse_with("\\# 3 414243", |data| {
super::UnknownRecord::dns_parse(types::Type(65226), data)
UnknownRecord::dns_parse(types::Type(65226), data)
})
.unwrap();
let d2 = super::UnknownRecord::new(types::Type(65226), Bytes::from_static(b"\x41\x42\x43"));
let d2 = UnknownRecord::new(types::Type(65226), Bytes::from_static(b"\x41\x42\x43"));
assert_eq!(d1, d2);
assert_eq!(
d1.text().unwrap(),