Branch Coverage

blib/lib/Mail/BIMI/VMC.pm
Criterion Covered Total %
branch 0 108 0.0


line true false branch
50 0 0 unless ($self->uri)
54 0 0 if ($self->bimi_object->options->vmc_from_file)
60 0 0 unless ($response->{'success'})
61 0 0 if ($response->{'status'} == 599) { }
78 0 0 unless $cert_line
80 0 0 if ($cert_line =~ /^\-+END CERTIFICATE\-+$/u)
81 0 0 if @$this_cert
85 0 0 if @$this_cert
96 0 0 unless $self->chain_object
97 0 0 unless $self->chain_object->vmc
102 0 0 if $self->bimi_object->options->no_validate_cert
108 0 0 unless $self->vmc_object
114 0 0 unless $self->vmc_object
120 0 0 unless $self->vmc_object
126 0 0 unless $self->vmc_object
132 0 0 unless $self->vmc_object
134 0 0 if ($self->vmc_object->x509_object->checkend($seconds)) { }
145 0 0 unless $self->vmc_object
147 0 0 unless $exts
148 0 0 unless exists $exts->{'2.5.29.17'}
156 0 0 unless $self->check_domain
157 0 0 if $self->bimi_object->options->vmc_no_check_alt
158 0 0 unless $self->alt_name
165 0 0 if !$alt_name =~ /^dns:/u
167 0 0 if $alt_name eq $check_domain
168 0 0 if $alt_name eq $check_full_record
169 0 0 unless $self->bimi_object->options->cert_subdomain_is_valid
171 0 0 if $check_domain =~ /\.$alt_name_re$/u
178 0 0 unless $self->vmc_object
179 0 0 $self->vmc_object->x509_object->is_selfsigned ? :
184 0 0 unless $self->vmc_object
189 0 0 unless $self->vmc_object
190 0 0 unless $self->vmc_object->indicator_asn
195 0 0 unless (eval {
204 0 0 unless $self->is_cert_valid
206 0 0 unless $uri
208 0 0 if ($uri =~ m[^data:image/svg\+xml;base64,]u) { }
222 0 0 if ($self->data eq '' and @{$self->errors})
227 0 0 if $self->is_expired
228 0 0 unless $self->has_valid_usage
229 0 0 unless $self->is_valid_alt_name
232 0 0 if ($self->chain_object and not $self->chain_object->is_valid)
236 0 0 if ($self->indicator and not $self->indicator->is_valid)
240 0 0 if @{$self->errors}
247 0 0 if $self->indicator
253 0 0 $self->is_valid ? :
258 0 0 $self->is_expired ? :
260 0 0 $self->is_valid_alt_name ? :
261 0 0 $self->has_valid_usage ? :
262 0 0 $self->is_cert_valid ? :
263 0 0 $self->is_valid ? :
264 0 0 unless ($self->is_valid)
271 0 0 $error_detail ? :
274 0 0 if ($self->chain_object)