Scroll to navigation

Zonemaster::Test::Example(3pm) User Contributed Perl Documentation Zonemaster::Test::Example(3pm)

NAME

Zonemaster::Test::Example - example module showing the expected structure of Zonemaster test modules

SYNOPSIS

    my @results = Zonemaster::Test::Example->all($zone);

METHODS

Runs the default set of tests and returns a list of log entries made by the tests.
Returns a reference to a hash, the keys of which are the names of all test methods in the module, and the corresponding values are references to lists with all the tags that the method can use in log entries.
Returns a reference to a nested hash, where the outermost keys are language codes, the keys below that are message tags and their values are translation strings.
Returns a reference to a hash with the default policy for the module. The keys are message tags, and the corresponding values are their default log levels.
Returns a version string for the module.

TESTS

Since this is an example module, this test does nothing except return a single log entry.
2022-06-28 perl v5.34.0