Branch Coverage

blib/lib/Mail/BIMI/Indicator.pm
Criterion Covered Total %
branch 27 50 54.0


line true false branch
54 2 25 if ($data =~ /^\037\213/u) { }
59 1 1 unless ($unzipped)
86 1 24 unless ($data)
93 1 23 unless (eval {
107 1 21 unless ($self->uri)
111 1 20 if ($self->bimi_object->options->svg_from_file)
117 0 20 unless ($response->{'success'})
118 0 0 if ($response->{'status'} == 599) { }
131 0 24 unless (defined $self->data or $self->uri)
136 0 24 unless (defined $self->data)
141 0 24 if (not $self->data and @{$self->errors})
146 1 23 if (length $self->data_uncompressed > $self->bimi_object->options->svg_max_size) { }
150 1 22 if ($self->bimi_object->options->no_validate_svg) { }
157 22 0 if ($data_xml)
163 1 21 unless (eval {
165 1 0 ref $validation_error eq 'XML::LibXML::Error' ? :
171 2 22 if @{$self->errors}
176 0 4 unless $self->is_valid
190 0 0 $self->source ? :
0 0 $self->is_valid ? :
191 0 0 $self->data_uncompressed eq $self->data ? :
192 0 0 if $self->is_valid
194 0 0 $self->is_valid ? :
195 0 0 if (not $self->is_valid)
202 0 0 $error_detail ? :