blib/lib/WWW/Pastebin/PastebinCom/API.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 22 | 63 | 34.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
161 | 0 | 0 | 1 | defined $paste_key and length $paste_key |
207 | 0 | 0 | 4 | defined $paste_key and length $paste_key |
210 | 2 | 0 | 2 | defined $login and defined $pass |
229 | 0 | 0 | 3 | defined $response->content and length $response->content |
258 | 0 | 0 | 1 | defined $paste_text and length $paste_text |
397 | 1 | 0 | 0 | $args->{'owned'} and not $args->{'private'} |
line | l | !l | condition |
---|---|---|---|
88 | 0 | 1 | shift() || 50 |
365 | 3 | 0 | $self->user_key || (return $self->_set_error('API user key must be provided to create private pastes. See ->user_key() or ->get_user_key() in the documentation.')) |
374 | 6 | 0 | $self->api_key || (return $self->_set_error(q[Can't operate without an API key. Sign up / Log in to pastebin.com, then go to http://pastebin.com/api to see your API key (it's in the section "Your Unique Developer API Key")])) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
74 | 1 | 0 | 0 | $response->is_success or $response->is_redirect |
112 | 1 | 0 | 0 | $response->is_success or $response->is_redirect |
143 | 1 | 0 | 0 | $response->is_success or $response->is_redirect |
185 | 1 | 0 | 0 | $response->is_success or $response->is_redirect |
228 | 3 | 0 | 1 | $response->is_success or $response->is_redirect |
282 | 1 | 0 | 0 | $response->is_success or $response->is_redirect |
312 | 1 | 0 | 0 | $response->is_success or $response->is_redirect |
398 | 0 | 0 | 0 | $args->{'user_key'} || $self->user_key |
406 | 0 | 0 | 0 | $args->{'user_key'} || $self->user_key |
410 | 0 | 1 | 0 | $args->{'user_key'} || $self->user_key |
419 | 0 | 1 | 0 | $args->{'user_key'} || $self->user_key |
478 | 1 | 0 | 0 | $expiries{lc $expiry} || $self->_set_error('Invalid expiry value') |
713 | 1 | 0 | 0 | $formats{$format} || $self->_set_error('Invalid syntax highlighting code') |