| blib/lib/WWW/Challonge/Match/Attachment.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 24 | 28 | 85.7 |
| line | true | false | branch |
|---|---|---|---|
| 74 | 1 | 3 | unless $$self{'alive'} |
| 77 | 1 | 2 | unless defined $args |
| 89 | 0 | 2 | unless __args_are_valid($args) |
| 92 | 1 | 1 | if defined $$args{'asset'} |
| 106 | 0 | 2 | if $response->is_error |
| 127 | 1 | 1 | unless $$self{'alive'} |
| 142 | 0 | 1 | if $response->is_error |
| 193 | 1 | 6 | unless $$self{'alive'} |
| 208 | 0 | 6 | if $response->is_error |
| 229 | 9 | 5 | if ($arg eq 'asset') { } |
| 3 | 2 | elsif ($arg eq 'url') { } | |
| 1 | 1 | elsif ($arg ne 'description') { } | |
| 231 | 1 | 8 | unless (-f $$args{$arg}) |
| 239 | 1 | 2 | unless ($$args{$arg} =~ m[^(?:https?|ftp)://]) |