blib/lib/Declare/CLI.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 40 | 51 | 78.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
64 | 0 | 56 | 2 | $type || !$ref and eval { do { $first->can('CLI_META') } } |
164 | 34 | 7 | 0 | $config{'bool'} and $config{'check'} |
167 | 34 | 7 | 0 | $config{'bool'} and $config{'transform'} |
170 | 30 | 9 | 2 | $config{'list'} and $config{'bool'} |
174 | 4 | 0 | 0 | ref $config{'default'} and ref $config{'default'} ne 'CODE' |
181 | 12 | 4 | 2 | $ref and not $ref =~ /^(CODE|Regexp)$/ |
315 | 0 | 0 | 5 | $args and @$args |
348 | 3 | 1 | 2 | @$args and $self->_item_name('argument', $self->args, $$args[0]) |
371 | 8 | 4 | 48 | $item =~ /^-+([^-=]+)(?:=(.+))?$/ and not $no_opts |
416 | 34 | 0 | 12 | ref $values and ref $values eq 'ARRAY' |
line | l | !l | condition |
---|---|---|---|
121 | 1 | 12 | $config{'description'} ||= 'No Description.' |
162 | 4 | 37 | $config{'description'} ||= 'No Description.' |
230 | 8 | 16 | ref $check || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
64 | 2 | 56 | 0 | $type || !$ref |
181 | 4 | 10 | 2 | $ref || $config{'check'} =~ /^(file|dir|number)$/ |
2 | 2 | 14 | $ref and not $ref =~ /^(CODE|Regexp)$/ or not $ref || $config{'check'} =~ /^(file|dir|number)$/ | |
251 | 4 | 6 | 0 | $ref || $check |
375 | 0 | 44 | 2 | $pre or $opt |