line |
true |
false |
branch |
13
|
1 |
2 |
unless my $url = shift() |
17
|
2 |
0 |
if ($ENV{'WWW-SHORTEN-TESTING'}) |
18
|
1 |
1 |
if $url eq 'https://metacpan.org/release/WWW-Shorten' |
29
|
0 |
0 |
unless $resp->is_success |
31
|
0 |
0 |
if ($content =~ /Error/) |
33
|
0 |
0 |
if ($content =~ /
|
|
0 |
0 |
elsif (length $content > 100) { } |
44
|
0 |
0 |
if ($resp->content =~ m[(https\:\/\/tinyurl\.com\/\w+)]x) |
51
|
1 |
3 |
unless my $url = shift() |
54
|
2 |
1 |
unless $url =~ m[^https://]i |
58
|
3 |
0 |
if ($ENV{'WWW-SHORTEN-TESTING'}) |
59
|
2 |
1 |
if $url eq 'https://tinyurl.com/abc12345' |
70
|
0 |
0 |
unless ($resp->is_redirect) |
72
|
0 |
0 |
if ($content =~ /Error/) { } |
73
|
0 |
0 |
if ($content =~ /
|
|
0 |
0 |
elsif (length $content > 100) { } |