blib/lib/WebService/Redmine.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 26 | 56 | 46.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
229 | 1 | 0 | 0 | length $$self{'host'} and $$self{'host'} =~ m[^(https?)://]i |
237 | 0 | 1 | 0 | not length $$self{'key'} and length $$self{'user'} |
319 | 0 | 0 | 0 | $$r{'method'} eq 'GET' and ref $$r{'query'} eq 'HASH' |
328 | 0 | 0 | 0 | $$r{'method'} ne 'GET' and defined $$r{'content'} |
364 | 0 | 0 | 0 | $$self{'expect_single_object'} and $$self{'no_wrapper_object'} |
407 | 0 | 7 | 4 | ref $args[-1] ne 'ARRAY' and ref $args[-1] ne 'HASH' |
line | l | !l | condition |
---|---|---|---|
219 | 0 | 1 | $arg{'protocol'} // 'http' |
226 | 2 | 4 | $arg{$param} // '' |
288 | 8 | 0 | $_[1] // '' |
314 | 0 | 0 | $self->_dispatch_name(@_) // (return) |
343 | 0 | 0 | shift() // (return) |
347 | 0 | 0 | eval { do { &JSON::XS::decode_json($response->decoded_content) } } // {} |
374 | 28 | 1 | shift() // (return $self->_set_client_error('Undefined method name')) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
355 | 0 | 0 | 0 | $request->method eq 'PUT' or $request->method eq 'DELETE' |
379 | 10 | 2 | 16 | not $action or $action eq 'read' |
400 | 7 | 4 | 3 | $action eq 'create' or $action eq 'update' |
431 | 12 | 3 | 5 | $action ne 'create' or not $is_last_object |
434 | 2 | 0 | 13 | not defined $object_id or ref \$object_id ne 'SCALAR' |
459 | 2 | 5 | 5 | $action eq 'get' or $action eq 'create' |
463 | 0 | 0 | 0 | $action eq 'create' or $action eq 'update' |
512 | 20 | 0 | 9 | not $category =~ /s$/ or $category =~ /us$/ |