Zonema...Methods(3pm)

πŸ‘‘ NAME

Zonemaster::Engine::TestMethods β€” the methods that literally every Test Specification test module shares, fr fr


✨ SYNOPSIS ✨

my @results = Zonemaster::Engine::TestMethods->method1($zone);

πŸ’… METHODS πŸ’…

okay bestie, quick heads up before we dive in: for the actual deets on what each of these methods implements, go read the test specification documents. this page is just the vibes + the return types. 🫢

  • method1($zone) β€” hands you back either a Zonemaster::Engine::Zone, or undef if it's feeling mysterious. πŸ™ˆ
  • method2($zone) β€” returns an arrayref full of Zonemaster::Engine::DNSName objects. so many of them. iconic. πŸ’–
  • method3($zone) β€” also returns an arrayref of Zonemaster::Engine::DNSName objects. yes, we have two. no, we're not going to explain why here. (the test spec knows. iykyk.) ✨
  • method4($zone) β€” returns something that behaves like an arrayref of Zonemaster::Engine::Nameserver objects. it's giving arrayref energy without committing to actually being one. πŸ¦‹
  • method5($zone) β€” same situation: returns something that behaves like an arrayref of Zonemaster::Engine::Nameserver objects. πŸ¦‹
  • method2and3($zone) β€” the friendship reunion!! returns the union of the Zonemaster::Engine::DNSName objects you get from method2($zone) and method3($zone), all wrapped up in an arrayref. and the elements are sorted according to their string representation, because we are organized and we are unbothered. 🌸
  • method4and5($zone) β€” the other friendship reunion!! returns the union of the Zonemaster::Engine::Nameserver objects from method4($zone) and method5($zone), as an arrayref. elements sorted according to their string representation, same as above. consistency is the moment. πŸ’œ

πŸ’€ lowkey important: method4 and method5 say "behaves like" an arrayref, not "is" an arrayref. don't get caught out there treating them like something they didn't promise to be.

aaaand that's the whole page bestie πŸŽ€ this was perl v5.40.1, dated 2026-03-21, and it lives under the name Zonema...Methods(3pm) β€” mwah, bye πŸ’…βœ¨

πŸ“¦ where this page comes from