blib/lib/Commandable/Command.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 23 | 30 | 76.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
120 | 11 | 0 | 1 | not $optspec{$opt} and $opt =~ /no-(.+)/u |
121 | 0 | 0 | 1 | $spec = $optspec{$1} and $spec->negatable |
132 | 6 | 1 | 2 | $self->config->{'bundling'} and length $token |
7 | 0 | 2 | $self->config->{'bundling'} and length $token and length $1 == 1 | |
186 | 110 | 1 | 2 | defined $spec->default and not exists $opts->{$name} |
line | l | !l | condition |
---|---|---|---|
21 | 19 | 7 | $args{'arguments'} //= [] |
22 | 9 | 17 | $args{'options'} //= {} |
23 | 7 | 19 | $args{'config'} //= {} |
153 | 5 | 0 | $cinv->pull_token // die("Expected value for option --$name\n") |
347 | 15 | 6 | $args{'mode'} //= "set" |
348 | 0 | 2 | $args{'negatable'} //= 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
157 | 0 | 1 | 12 | $value_in_token or length $token |