blib/lib/Opsview/REST/Config.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 15 | 20 | 75.0 |
line | true | false | branch |
---|---|---|---|
29 | 1 | 124 | unless $obj_type |
32 | 4 | 120 | if scalar @args & 1 |
33 | 0 | 124 | if scalar @args & 1 |
35 | 4 | 120 | if (defined $id) |
36 | 2 | 2 | unless ($id =~ /^\d+$/) |
41 | 122 | 0 | if (defined $obj_type) { } |
42 | 0 | 122 | unless (scalar grep({$obj_type eq $_;} @valid_types)) |
49 | 0 | 122 | if (@args == 1) { } |
53 | 122 | 0 | if ($obj_type) |
55 | 2 | 120 | if $id |