Zonemaster::Engine::Test::Example - example module showing the expected structure of Zonemaster test modules
my @results = Zonemaster::Engine::Test::Example->all($zone);
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.
Since this is an example module, this test does nothing except return a single log entry.
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.