| blib/lib/LinkEmbedder.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 19 | 39 | 48.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 123 | 0 | 0 | 0 | $ENV{'N'} and $ENV{'N'} ne ++$n |
| line | l | !l | condition |
|---|---|---|---|
| 12 | 0 | 31 | $ENV{'LINK_EMBEDDER_DEBUG'} || 0 |
| 58 | 0 | 0 | pop() // 'Unknown error.' |
| 72 | 10 | 1 | $args->{'url'} || '' |
| 90 | 5 | 3 | $c->stash('format') || $c->param('format') || 'json' |
| 93 | 0 | 8 | $args ||= {'url', $c->param('url')} |
| 94 | 0 | 8 | delete $args->{'log_level'} || 'debug' |
| 105 | 3 | 0 | $err->{'code'} || 500 |
| 108 | 3 | 0 | $err->{'code'} || 500 |
| 111 | 2 | 2 | $c->param('callback') || 'oembed' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 75 | 0 | 0 | 11 | $link ||= delete $args->{'class'} |
| 76 | 0 | 5 | 0 | $link ||= ucfirst $1 |
| 77 | 5 | 5 | 1 | $link or $args->{'url'}->host |
| 79 | 5 | 5 | 0 | $link ||= _host_in_hash($args->{'url'}->host, $self->url_to_link) |
| 134 | 0 | 0 | 0 | $key eq 'isa' or $key eq 'class' |
| 163 | 0 | 0 | 5 | $hash->{$host} || $hash->{'default'} |