Mail::SPF::Test::Scenario - SPF test-suite scenario class
use Mail::SPF::Test::Scenario; my $scenario = Mail::SPF::Test::Scenario->new_from_yaml_struct($struct); my $yaml = $scenario->as_yaml; my $description = $scenario->description; my @test_cases = $scenario->test_cases; my @spec_refs = $scenario->spec_refs(undef || '*.*/*'); my @records = $scenario->records; my @records_for_domain = $scenario->records_for_domain($domain, $rr_type);
An object of class Mail::SPF::Test::Scenario represents an SPF test-suite scenario.
The following constructors are provided:
Creates a new SPF test-suite scenario object from scratch.
Creates a new SPF test-suite scenario object from the given YAML-generated data structure.
Creates a new SPF test-suite scenario object from the given YAML string.
The following instance methods are provided:
Returns the test-suite scenario formatted as a YAML document.
Returns the description of the test-suite scenario.
Returns a list of the test-suite scenario object's test case objects.
Returns a combined and sorted list of the specification references of all the test-suite scenario object's test case objects.
See "spec_refs" in Mail::SPF::Test::Case for how to specify a granularity for the specification references.
Returns a list of the test-suite scenario object's DNS RR objects and DNS status tokens.
See "records_for_domain" for the description of DNS RR objects and DNS status tokens.
Returns either the DNS RR objects of the test-suite scenario object that match the given domain and, if specified, RR type, or a DNS status token.
DNS RR objects are of type Net::DNS::RR. A DNS status token is any of 'TIMEOUT' or 'RCODE#' (where # is a digit from 1 to 5).
Mail::SPF::Test
For availability, support, and license information, see the README file included with Mail::SPF::Test.
Julian Mehnle <julian@mehnle.net>
To install Mail::SPF::Test, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::SPF::Test
CPAN shell
perl -MCPAN -e shell install Mail::SPF::Test
For more information on module installation, please visit the detailed CPAN module installation guide.