| blib/lib/Shell/Parser.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 20 | 39 | 51.2 |
| line | l | !l | condition |
|---|---|---|---|
| 225 | 0 | 0 | carp("error: No such handler: $handler") and next |
| 403 | 0 | 0 | carp("error: Unknown syntax '${syntax}'") and return |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 125 | 3 | 112 | 0 | defined $tokens[0] and $tokens[0] eq $token |
| 136 | 0 | 1 | 1 | @tokens and index($token, "\n") < 0 |
| 139 | 114 | 1 | 0 | $type eq 'variable' and index($token, '(') == 1 |
| 140 | 0 | 0 | 0 | @tokens and index($token, ')') < 0 |
| line | l | !l | condition |
|---|---|---|---|
| 87 | 1 | 3 | $args{'syntax'} ||= 'bourne' |
| 127 | 10 | 105 | $$self{'lookup_hash'}{$token} || '' |
| 128 | 0 | 7 | $type ||= 'metachar' |
| 129 | 0 | 1 | $type ||= 'comment' |
| 130 | 0 | 1 | $type ||= 'variable' |
| 131 | 0 | 2 | $type ||= 'assign' |
| 132 | 21 | 94 | $type ||= 'text' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 82 | 0 | 4 | 0 | ref $class || $class |
| 226 | 8 | 0 | 0 | $handlers{$handler} || $default |
| 230 | 32 | 16 | 0 | $$self{'handlers'}{$handler} ||= $default |