Condition Coverage

blib/lib/Mojolicious/Plugin/LinkEmbedder.pm
Criterion Covered Total %
condition 6 35 17.1


and 3 conditions

line !l l&&!r l&&r condition
26 0 3 0 $url and $url->host
54 0 0 0 $etag and $etag eq ($c->req->headers->etag // '')
66 0 0 0 $ct =~ m[^image/] and $self->_new_link_object('image', $c, {'url', $url, '_tx', $tx}, $cb)
67 0 0 0 $ct =~ m[^video/] and $self->_new_link_object('video', $c, {'url', $url, '_tx', $tx}, $cb)
68 0 0 0 $ct =~ m[^text/plain] and $self->_new_link_object('text', $c, {'url', $url, '_tx', $tx}, $cb)
166 0 0 0 $if_none_match and $if_none_match eq $link->etag
176 0 0 0 not $link->etag and $config->{'max_age'}

or 2 conditions

line l !l condition
6 0 23 $ENV{'MOJO_LINKEMBEDDER_DEBUG'} || 0
15 3 0 $url || ''
50 0 0 $tx->res->headers->content_type || ''
54 0 0 $c->req->headers->etag // ''
148 0 23 $config->{'max_age'} //= 60
167 3 0 $err->{'code'} || 500
168 3 0 $err->{'message'} || 'Unknown error.'