Condition Coverage

blib/lib/WWW/Shorten/Yourls.pm
Criterion Covered Total %
condition 12 84 14.2


and 3 conditions

line !l l&&!r l&&r condition
52 0 0 0 $url and &blessed($url)
0 0 0 $url and &blessed($url) and $url->isa('URI')
62 0 0 0 $content_type and $content_type =~ m[application/json]
73 0 0 0 @_ == 1 and ref $_[0]
0 0 0 @_ == 1 and not ref $_[0]
102 0 2 0 $path and $path->is_file
110 0 0 0 $line and $line =~ /=/
115 0 0 0 $key and $val
129 0 0 60 defined $input and not ref $input
0 0 60 defined $input and not ref $input and length $input
138 2 0 0 @_ == 1 and ref $_[0]
187 0 0 0 $user and $pass
217 0 0 0 $user and $pass
229 0 0 0 $_[0] and &blessed($_[0])
0 0 0 $_[0] and &blessed($_[0]) and $_[0]->isa('WWW::Shorten::Yourls')
235 0 0 0 ref $res eq 'HASH' and $res->{'longurl'}
241 0 0 0 $_[0] and &blessed($_[0])
0 0 0 $_[0] and &blessed($_[0]) and $_[0]->isa('WWW::Shorten::Yourls')
256 8 0 4 &blessed($val) and $val->isa('URI')
0 2 6 $val and not ref $val
292 0 0 0 $user and $pass

or 2 conditions

line l !l condition
23 54 0 _trim(shift()) || ''
107 0 0 _trim($line) || ''
113 0 0 _trim($key) || ''
172 0 0 $args->{'shortUrl'} || $args->{'single_arg'} || $args->{'URL'} || $args->{'url'} || ''
202 0 0 $args->{'shortUrl'} || $args->{'single_arg'} || $args->{'URL'} || $args->{'url'} || ''
277 0 0 $args->{'longUrl'} || $args->{'single_arg'} || $args->{'URL'} || $args->{'url'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
233 0 0 0 $self ||= 'WWW::Shorten::Yourls'->new(@_)
245 0 0 0 $self ||= 'WWW::Shorten::Yourls'->new(@_)
256 2 2 12 not defined $val or $val eq ''