| lib/Ubic/Cmd.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 8 | 34 | 23.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 55 | 3 | 0 | 0 | $enabled_only and not 'Ubic'->is_enabled($name) |
| 260 | 0 | 0 | 0 | $> and $user ne 'Ubic'->service($name)->user |
| 359 | 0 | 0 | 0 | $name and not 'Ubic'->root_service->has_service($name) |
| line | l | !l | condition |
|---|---|---|---|
| 186 | 0 | 4 | $indent ||= 0 |
| 315 | 0 | 0 | $service->name || 'root' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 33 | 3 | 1 | 0 | $SINGLETON ||= 'Ubic::Cmd'->new |
| 50 | 0 | 3 | 0 | $results ||= 'Ubic::Cmd::Results'->new |
| 62 | 2 | 1 | 0 | $result ||= result($@) |
| 136 | 0 | 1 | 0 | shift() || 'Ubic::Cmd::Results'->new |
| 215 | 0 | 0 | 0 | shift() || 'Ubic::Cmd::Results'->new |
| 260 | 0 | 0 | 0 | $force_cached or $> and $user ne 'Ubic'->service($name)->user |
| 344 | 0 | 0 | 0 | $command eq 'status' or $command eq 'cached-status' |