| blib/lib/CLI/Startup.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 51 | 69 | 73.9 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 74 | 1 | 1 | 3 | defined $settings and ref $settings eq 'HASH' |
| 159 | 3 | 2 | 1 | $writer and ref $writer ne 'CODE' |
| 278 | 94 | 0 | 14 | $option eq 'verbose' && $optspec->{$V_OPTSPEC} |
| 455 | 273 | 534 | 696 | $attrs{'type'} eq '' && $attrs{'argument'} eq '' |
| 560 | 4 | 0 | 2 | $alias eq 'verbose' and $default_optspecs->{$V_OPTSPEC} eq $V_FOR_VERBOSE |
| 811 | 4 | 19 | 26 | $rcfile and -r $rcfile |
| line | l | !l | condition |
|---|---|---|---|
| 155 | 3 | 4 | shift() || 0 |
| 473 | 104 | 0 | $optspec->{$option} ||= 0 |
| 533 | 5 | 5 | $user_optspecs->{$user_optspec} or 0 |
| 572 | 154 | 5 | $user_options->{$optspec}{'desc'} or 0 |
| 655 | 59 | 0 | $self->get_optspec or 0 |
| 673 | 0 | 49 | $options->{'verbose'} //= 0 |
| 797 | 45 | 4 | $self->get_rcfile || '' |
| 831 | 26 | 0 | shift @{$files;} || {} |
| 832 | 26 | 0 | $files->{$rcfile} || {} |
| 900 | 77 | 46 | $types->{$option} || 'NONE' |
| 911 | 35 | 0 | $value // 0 |
| 963 | 65 | 2 | $argref->{'options'} || {} |
| 1021 | 1 | 1 | $main::VERSION || 'UNKNOWN' |
| 1170 | 2 | 0 | $types->{$setting} || '' |
| 1181 | 2 | 0 | $types->{$setting} || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 172 | 1 | 5 | 0 | $optspec->{$alias} ||= $$options{$aliases->{$alias}} |
| 235 | 14 | 0 | 0 | $optspec->{$V_OPTSPEC} // '' eq $V_FOR_VERBOSE |
| 278 | 108 | 0 | 0 | $option eq 'verbose' && $optspec->{$V_OPTSPEC} // '' eq $V_FOR_VERBOSE |
| 901 | 32 | 46 | 45 | ref $value eq $type or $type eq 'NONE' |
| 909 | 11 | 24 | 10 | $type eq 'BOOLEAN' or $type eq 'FLAG' |
| 1045 | 0 | 9 | 3 | shift() || $self->get_rcfile |
| 1126 | 6 | 0 | 0 | $options->{'rcfile-format'} || $default |