| blib/lib/WWW/Shorten/GitHub.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| branch | 7 | 14 | 50.0 | 
| line | true | false | branch | 
|---|---|---|---|
| 38 | 0 | 1 | unless my $url = shift() | 
| 41 | 0 | 1 | unless ($host =~ /^(gist\.)?github\.com$/) | 
| 46 | 1 | 0 | defined 'WWW::Shorten::GitHub'->VERSION ? : | 
| 52 | 0 | 0 | if ($response->header('Status') eq '200 OK') | 
| 61 | 0 | 2 | unless my $token = shift() | 
| 65 | 1 | 1 | unless ($url->scheme and $url->host eq 'git.io') | 
| 74 | 2 | 0 | if ($response->is_redirect) |