Branch Coverage

blib/lib/Data/Microformat/hCard/type.pm
Criterion Covered Total %
branch 13 16 81.2


line true false branch
20 0 22 unless $tree
28 19 28 if (ref $bit eq 'HTML::Element') { }
2 26 elsif ($tree->attr('class') =~ /(email|tel)/ and $tree->tag =~ /(a|area)/ and $tree->attr('href')) { }
30 0 19 unless $bit->attr('class')
37 2 17 if ($bit->tag eq 'abbr' and $bit->attr('title')) { }
2 15 elsif ($tree->attr('class') =~ /(email|tel)/ and $bit->tag =~ /(a|area)/ and $bit->attr('href')) { }
48 0 19 if ($type eq $object->kind) { }
69 16 10 if (length $bit > 0 and not $object->value)