Zonemaster::Engine::Test::Nameserver - Module implementing tests focused on the properties of a name server
my @results = Zonemaster::Engine::Test::Nameserver->all( $zone );
my @logentry_array = all( $zone );
Runs the default set of tests for that module, i.e. fourteen tests.
Takes a Zonemaster::Engine::Zone object.
Returns a list of Zonemaster::Engine::Logger::Entry objects.
my $hash_ref = metadata();
Returns a reference to a hash, the keys of which are the names of all Test Cases in the module, and the corresponding values are references to an array containing all the message tags that the Test Case can use in log entries.
my $hash_ref = tag_descriptions();
Used by the built-in translation system.
Returns a reference to a hash, the keys of which are the message tags and the corresponding values are strings (message IDs).
my $version_string = version();
Returns a string containing the version of the current module.
my $log_entry = _emit_log( $message_tag_string, $hash_ref );
Adds a message to the logger for this module. See "add($tag, $argref, $module, $testcase)" in Zonemaster::Engine::Logger::Entry for more details.
Takes a string (message tag) and a reference to a hash (arguments).
Returns a Zonemaster::Engine::Logger::Entry object.
my $bool = _ip_disabled_message( $logentry_array_ref, $ns, @query_type_array );
Checks if the IP version of a given name server is allowed to be queried. If not, it adds a logging message and returns true. Else, it returns false.
Takes a reference to an array of Zonemaster::Engine::Logger::Entry objects, a Zonemaster::Engine::Nameserver object and an array of strings (query type).
Returns a boolean.
my @logentry_array = nameserver01( $zone );
Runs the Nameserver01 Test Case.
my @logentry_array = nameserver02( $zone );
Runs the Nameserver02 Test Case.
my @logentry_array = nameserver03( $zone );
Runs the Nameserver03 Test Case.
my @logentry_array = nameserver04( $zone );
Runs the Nameserver04 Test Case.
my @logentry_array = nameserver05( $zone );
Runs the Nameserver05 Test Case.
my @logentry_array = nameserver06( $zone );
Runs the Nameserver06 Test Case.
my @logentry_array = nameserver07( $zone );
Runs the Nameserver07 Test Case.
my @logentry_array = nameserver08( $zone );
Runs the Nameserver08 Test Case.
my @logentry_array = nameserver09( $zone );
Runs the Nameserver09 Test Case.
my @logentry_array = nameserver10( $zone );
Runs the Nameserver10 Test Case.
my @logentry_array = nameserver11( $zone );
Runs the Nameserver11 Test Case.
my @logentry_array = nameserver12( $zone );
Runs the Nameserver12 Test Case.
my @logentry_array = nameserver13( $zone );
Runs the Nameserver13 Test Case.
my @logentry_array = nameserver15( $zone );
Runs the Nameserver15 Test Case.
To install Zonemaster::Engine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zonemaster::Engine
CPAN shell
perl -MCPAN -e shell install Zonemaster::Engine
For more information on module installation, please visit the detailed CPAN module installation guide.