Branch Coverage

blib/lib/Mail/SPF/Term.pm
Criterion Covered Total %
branch 0 28 0.0


line true false branch
158 0 0 if ($$self{'parse_text'} =~ s/^(${\$self->domain_spec_pattern;})//) { }
0 0 elsif ($required) { }
172 0 0 if ($$self{'parse_text'} =~ s/^(${\$self->ipv4_address_pattern;})//) { }
0 0 elsif ($required) { }
184 0 0 if ($$self{'parse_text'} =~ s[^/(\d+)][]) { }
0 0 elsif (not $required) { }
185 0 0 unless $1 >= 0 and $1 <= 32 and not $1 =~ /^0./
210 0 0 if ($$self{'parse_text'} =~ s[^(${\$self->ipv6_address_pattern;})(?=/|$)][]) { }
0 0 elsif ($required) { }
222 0 0 if ($$self{'parse_text'} =~ s[^/(\d+)][]) { }
0 0 elsif (not $required) { }
223 0 0 unless $1 >= 0 and $1 <= 128 and not $1 =~ /^0./
250 0 0 if (defined $$self{'ipv4_prefix_length'} and $$self{'parse_text'} =~ s[^/][])
270 0 0 unless defined $$self{'text'}