Branch Coverage

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


line true false branch
162 0 0 if ($self->{'parse_text'} =~ s/^(${\$self->domain_spec_pattern;})//) { }
0 0 elsif ($required) { }
176 0 0 if ($self->{'parse_text'} =~ s/^(${\$self->ipv4_address_pattern;})//) { }
0 0 elsif ($required) { }
188 0 0 if ($self->{'parse_text'} =~ s[^/(\d+)][]) { }
0 0 elsif (not $required) { }
189 0 0 unless $1 >= 0 and $1 <= 32 and not $1 =~ /^0./
214 0 0 if ($self->{'parse_text'} =~ s[^(${\$self->ipv6_address_pattern;})(?=/|$)][]) { }
0 0 elsif ($required) { }
226 0 0 if ($self->{'parse_text'} =~ s[^/(\d+)][]) { }
0 0 elsif (not $required) { }
227 0 0 unless $1 >= 0 and $1 <= 128 and not $1 =~ /^0./
254 0 0 if (defined $self->{'ipv4_prefix_length'} and $self->{'parse_text'} =~ s[^/][])
275 0 0 unless defined $self->{'text'}