blib/lib/App/PAIA/Command.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 33 | 50 | 66.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
23 | 133 | 0 | 106 | not exists $_[0]{$name} and $default |
172 | 2 | 2 | 1 | $scope and $self->scope |
4 | 1 | 0 | $scope and $self->scope and not $self->has_scope($scope) | |
197 | 2 | 5 | 1 | ref $json and defined $$json{'error'} |
274 | 0 | 1 | 0 | $self->scope and not $self->has_scope($scope) |
332 | 0 | 0 | 1 | $uri and $uri->scheme |
381 | 12 | 2 | 4 | defined $response and not $self->app->global_options->quiet |
line | l | !l | condition |
---|---|---|---|
19 | 4 | 48 | $options{'coerce'} || sub { $_[0]; } |
168 | 5 | 1 | $self->token // (return 'missing access token') |
181 | 2 | 0 | $self->scope // '' |
190 | 4 | 0 | $self->token // die("missing access_token - login required\n") |
271 | 0 | 1 | $self->scope // '' |
307 | 3 | 1 | $self->session->get('core') // '' |
333 | 0 | 1 | $2 // 'item' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
35 | 12 | 0 | 16 | $self->app->global_options->{$name} // $self->config->get($name) |
12 | 5 | 11 | ($self->app->global_options->{$name} // $self->config->get($name)) // $self->session->get($name) | |
206 | 2 | 0 | 0 | $$response{'content'} // 'HTTP request failed: ' . $$response{'status'} |
297 | 4 | 0 | 0 | $self->core // $self->usage_error('missing PAIA core server URL') |
301 | 4 | 0 | 0 | $self->patron // $self->usage_error('missing patron identifier') |