Branch Coverage

blib/lib/Data/Microformat.pm
Criterion Covered Total %
branch 46 56 82.1


line true false branch
47 329 491 if $parameter and not ref $parameter
52 0 820 unless (exists $$self{$name})
57 520 300 if ($$self{'_singulars'}{$name}) { }
58 219 301 if $parameter and not $$self{'_no_dupe_keys'} && defined $$self{$name}
61 149 151 if $parameter
62 34 266 unless $$self{$name}
63 34 266 wantarray ? :
83 5 25 if (wantarray) { }
106 0 19 unless @object_trees
116 0 79 unless $bit->attr('class')
126 13 66 if ($bit->tag eq 'abbr' and $bit->attr('title'))
137 0 19 wantarray ? :
169 29 12 if (scalar $tree->descendants == 0)
178 0 32 unless ref($child) =~ /HTML::Element/
180 29 3 unless $temp =~ /\n$/s
193 7 19 if (defined $$self{'kind'})
200 42 67 unless defined $$self{$field}
201 7 60 if $field eq 'kind'
202 4 56 if (ref($$self{$field}) =~ /Data::Microformat/) { }
206 0 4 if ($child->attr('class') eq 'vcard')
223 70 12 unless defined $$self{$field}
229 2 12 if (ref($value) =~ /Data::Microformat/) { }
233 2 0 if ($child->attr('class') eq 'vcard')
254 0 46 unless defined $content
263 3 612 unless defined $content
272 0 22 unless defined $content
283 0 8 unless @list
286 1 7 if (ref $child) { }