make powerdns_tests a submodule of tests
This commit is contained in:
parent
d10da61a1c
commit
7aeeec9f97
@ -8,6 +8,3 @@ pub use self::unknown::*;
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod powerdns_tests;
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
mod powerdns_tests;
|
||||||
|
|
||||||
use crate::common_types::classes;
|
use crate::common_types::classes;
|
||||||
use crate::records::structs;
|
use crate::records::structs;
|
||||||
use crate::ser::packet::DnsPacketData;
|
use crate::ser::packet::DnsPacketData;
|
@ -871,10 +871,10 @@ fn test_DLV() {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_TYPE65226() {
|
fn test_TYPE65226() {
|
||||||
let d1 = text::parse_with("\\# 3 414243", |data| {
|
let d1 = text::parse_with("\\# 3 414243", |data| {
|
||||||
super::UnknownRecord::dns_parse(types::Type(65226), data)
|
UnknownRecord::dns_parse(types::Type(65226), data)
|
||||||
})
|
})
|
||||||
.unwrap();
|
.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, d2);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
d1.text().unwrap(),
|
d1.text().unwrap(),
|
Loading…
Reference in New Issue
Block a user