Branch Coverage

blib/lib/LinkEmbedder/Link/Basic.pm
Criterion Covered Total %
branch 8 30 26.6


line true false branch
13 0 5 $url =~ /$VIDEO_RE/u ? :
0 5 $url =~ /$PHOTO_RE/u ? :
17 5 0 $type eq 'link' ? :
27 0 4 if $tmp
31 0 4 if ($tmp)
37 0 4 if ($tmp = $dom->at('pre#paste') || $dom->at('pre.paste') || $dom->at('body > pre') || $dom->at('body > div > pre'))
44 0 4 if ($tmp and not @{$tmp->children;})
50 0 0 if (not $self->thumbnail_url and $tmp and $tmp->{'src'} ||= $tmp->{'href'})
55 0 4 if (not $self->description and $tmp)
66 0 0 unless ref $json eq 'HASH'
67 0 0 unless ref $json eq 'HASH'
69 0 0 ref $json->{'author'} eq 'ARRAY' ? :
70 0 0 if ref $author eq 'HASH' and $author->{'name'}
71 0 0 if $json->{'description'}
72 0 0 if $json->{'headline'}