| lib/Mail/DMARC/Base.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 12 | 28 | 42.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 44 | 47 | 0 | 2149 | ref $self->{'config'} and not $file |
| 193 | 10 | 0 | 0 | $file =~ m[^/] and -f $file |
| 10 | 0 | 0 | $file =~ m[^/] and -f $file and -r $file | |
| 199 | 40 | 0 | 0 | -f $path and -r $path |
| 201 | 10 | 0 | 0 | $path and -r $path |
| line | l | !l | condition |
|---|---|---|---|
| 192 | 10 | 0 | $self->config->{'dns'}{'public_suffix_list'} || 'share/public_suffix_list' |
| 252 | 97 | 0 | shift() || $self->config->{'dns'}{'timeout'} || 5 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 63 | 28 | 13 | 0 | shift() || $ENV{'MAIL_DMARC_CONFIG_FILE'} || $self->{'config_file'} |
| 95 | 4 | 0 | 0 | Socket6::inet_pton(10, $ip_txt) || croak("invalid IPv6: $ip_txt") |
| 99 | 10 | 0 | 0 | Socket6::inet_pton(2, $ip_txt) || croak("invalid IPv4: $ip_txt") |