Branch Coverage

blib/lib/Web/Sitemap/Url.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
19 0 50044 if @bad_keys
27 50041 3 if (not ref $data) { }
3 0 elsif (ref $data eq 'HASH') { }
28 0 50041 unless defined $data
33 0 3 unless (defined $data->{'loc'})
53 0 50044 $self->{'changefreq'} ? :
0 50044 $self->{'mobile'} ? :
63 3 50041 if (defined $self->{'images'})
66 4 4 ref $image eq 'HASH' ? :
69 4 4 if (ref $image eq 'HASH' and defined $image->{'caption'}) { }
2 2 elsif (defined $self->{'images'}{'caption_format_simple'}) { }
2 0 elsif (defined $self->{'images'}{'caption_format'}) { }