Condition Coverage

lib/Getopt/Valid.pm
Criterion Covered Total %
condition 32 60 53.3


and 3 conditions

line !l l&&!r l&&r condition
264 0 0 17 $args_ref and ref $args_ref eq 'HASH'
0 0 17 $args_ref and ref $args_ref eq 'HASH' and $$args_ref{'struct'}
0 0 17 $args_ref and ref $args_ref eq 'HASH' and $$args_ref{'struct'} and ref $$args_ref{'struct'} eq 'ARRAY'
315 14 0 4 defined $kstruct and length $kstruct > 1
487 46 8 4 $required and not $value
493 44 0 14 $constraint and defined $value
44 14 0 $constraint and defined $value and ref $value || length $value
533 39 18 1 $settrigger and $value
633 0 0 1 !$sep && wantarray

or 2 conditions

line l !l condition
306 23 19 $2 || ''
307 30 12 $3 || ''
308 0 12 $4 || $5 || 'b'
314 24 18 ref $kstruct || ''
317 5 0 $$kstruct{'required'} || 0
410 75 0 $$self{'simple_struct'} ||= {}
438 34 0 $$self{'collected_args'} ||= {}
472 75 0 $$self{'updated_struct'} ||= {}
574 3 0 $$self{'version'} || eval { do { $main::VERSION } } || 'unknown'
632 1 0 $$self{'errors'} ||= []
633 0 0 $sep || "\n"
0 0 $$self{'errors'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
315 0 0 18 $rstruct eq 'Regexp' or $rstruct eq 'CODE'
493 0 14 0 ref $value || length $value
574 3 0 0 $$self{'name'} || $0