Condition Coverage

blib/lib/WWW/Shorten/Naver.pm
Criterion Covered Total %
condition 1 46 2.1


and 3 conditions

line !l l&&!r l&&r condition
47 0 0 0 $url and &blessed($url)
0 0 0 $url and &blessed($url) and $url->isa('URI')
61 0 0 0 $content_type and $content_type =~ m[application/json]
72 0 0 0 @_ == 1 and ref $_[0]
0 0 0 @_ == 1 and not ref $_[0]
92 0 0 0 defined $input and not ref $input
0 0 0 defined $input and not ref $input and length $input
101 0 0 0 @_ == 1 and ref $_[0]
128 0 0 0 $_[0] and &blessed($_[0])
0 0 0 $_[0] and &blessed($_[0]) and $_[0]->isa('WWW::Shorten::Naver')
139 0 0 0 $_[0] and &blessed($_[0])
0 0 0 $_[0] and &blessed($_[0]) and $_[0]->isa('WWW::Shorten::Bitly')

or 2 conditions

line l !l condition
14 0 1 $ENV{'NAVER_SHORTEN_API_URL'} || 'https://openapi.naver.com/v1/util/shorturl'
18 0 0 _trim(shift()) || ''

or 3 conditions

line l !l&&r !l&&!r condition
132 0 0 0 $self ||= 'WWW::Shorten::Naver'->new(@_)
143 0 0 0 $self ||= 'WWW::Shorten::Naver'->new(@_)