Branch Coverage

blib/lib/Mail/BIMI/Indicator.pm
Criterion Covered Total %
branch 34 50 68.0


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