File Coverage

blib/lib/Mojolicious/Plugin/LinkEmbedder/Link/Image.pm
Criterion Covered Total %
statement 3 6 50.0
branch n/a
condition 0 3 0.0
subroutine 1 2 50.0
pod 0 1 0.0
total 4 12 33.3


line stmt bran cond sub pod time code
1             package Mojolicious::Plugin::LinkEmbedder::Link::Image;
2 1     1   1417 use Mojo::Base 'Mojolicious::Plugin::LinkEmbedder::Link';
  1         4  
  1         6  
3              
4             sub to_embed {
5 0     0 0   my $self = shift;
6 0           my %args = @_;
7              
8 0   0       $self->tag(img => src => $self->url, alt => $args{alt} || $self->url);
9             }
10              
11             1;