Branch Coverage

blib/lib/Mojolicious/Plugin/LinkEmbedder/Link/Text/HTML.pm
Criterion Covered Total %
branch 14 22 63.6


line true false branch
67 4 0 $tx->success ? :
68 4 0 if $dom
85 4 1 if ($self->image)
115 0 4 if $e = $dom->at('meta[property="og:audio"]')
117 4 0 if $e = $dom->at('meta[property="og:description"]') || $dom->at('meta[name="twitter:description"]')
120 3 1 if $e = $dom->at('meta[property="og:image"]') || $dom->at('meta[property="og:image:url"]') || $dom->at('meta[name="twitter:image"]')
126 4 0 if $e = $dom->at('meta[property="og:title"]') || $dom->at('meta[name="twitter:title"]') || $dom->at('title')
129 3 1 if $e = $dom->at('meta[property="og:type"]') || $dom->at('meta[name="twitter:card"]')
130 0 4 if $e = $dom->at('meta[property="og:video"]')
131 4 0 if $e = $dom->at('meta[property="og:url"]') || $dom->at('meta[name="twitter:url"]')
133 4 0 if $self->canon_url and not defined $$self{'media_id'}