Condition Coverage

blib/lib/Declare/CLI.pm
Criterion Covered Total %
condition 39 51 76.4


and 3 conditions

line !l l&&!r l&&r condition
64 0 56 2 $type || !$ref and eval { do { $first->can('CLI_META') } }
165 34 7 0 $config{'bool'} and $config{'check'}
168 34 7 0 $config{'bool'} and $config{'transform'}
171 30 11 0 $config{'list'} and $config{'bool'}
175 4 0 0 ref $config{'default'} and ref $config{'default'} ne 'CODE'
183 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'

or 2 conditions

line l !l condition
121 1 12 $config{'description'} ||= 'No Description.'
162 4 37 $config{'description'} ||= 'No Description.'
230 8 16 ref $check || ''

or 3 conditions

line l !l&&r !l&&!r condition
64 2 56 0 $type || !$ref
183 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