blib/lib/WWW/Pastebin/PastebinCom/API.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 16 | 63 | 25.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
161 | 0 | 0 | 0 | defined $paste_key and length $paste_key |
207 | 0 | 0 | 2 | defined $paste_key and length $paste_key |
210 | 2 | 0 | 0 | defined $login and defined $pass |
229 | 0 | 0 | 2 | 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 | 0 | shift() || 50 |
365 | 1 | 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 | 4 | 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 | 0 | 0 | 0 | $response->is_success or $response->is_redirect |
143 | 1 | 0 | 0 | $response->is_success or $response->is_redirect |
185 | 0 | 0 | 0 | $response->is_success or $response->is_redirect |
228 | 2 | 0 | 0 | $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 |
405 | 0 | 0 | 0 | $$args{'user_key'} || $self->user_key |
410 | 0 | 1 | 0 | $$args{'user_key'} || $self->user_key |
417 | 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') |