Browse Source

make powerdns_tests a submodule of tests

preview
Stefan Bühler 2 years ago
parent
commit
7aeeec9f97
  1. 3
      lib/dnsbox-base/src/records/mod.rs
  2. 2
      lib/dnsbox-base/src/records/tests/mod.rs
  3. 4
      lib/dnsbox-base/src/records/tests/powerdns_tests.rs

3
lib/dnsbox-base/src/records/mod.rs

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

2
lib/dnsbox-base/src/records/tests.rs → lib/dnsbox-base/src/records/tests/mod.rs

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

4
lib/dnsbox-base/src/records/powerdns_tests.rs → lib/dnsbox-base/src/records/tests/powerdns_tests.rs

@ -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(),
Loading…
Cancel
Save