Condition Coverage

blib/lib/Getopt/Janus/SessionBase.pm
Criterion Covered Total %
condition 28 107 26.1


and 2 conditions

line l !l condition
451 0 0 $long && "\n"
452 0 0 $long && "\n"

and 3 conditions

line !l l&&!r l&&r condition
52 2 0 27 @_ and defined $_[0]
2 6 21 @_ and defined $_[0] and not ref $_[0]
6 4 17 @_ and defined $_[0] and not ref $_[0] and $_[0] =~ /^-/s
56 11 0 0 $$short{$switch} and $$short{$switch}{'type'} ne 'HELP'
64 6 0 0 $$long{$switch} and $$long{$switch}{'type'} ne 'HELP'
81 2 4 6 @_ and ref($_[0] || '') eq 'SCALAR'
85 2 0 4 @_ and ref($_[0] || '') eq 'SCALAR'
173 0 0 2 defined $$slot and $$slot =~ /\e/
176 0 0 2 defined $$slot and length $$slot
194 0 0 2 ref $sub and UNIVERSAL::isa($sub, 'CODE')
197 0 0 2 $title and ref $title eq 'SCALAR'
198 0 0 2 $desc and ref $desc eq 'SCALAR'
259 0 0 0 defined $f and length $f
329 0 0 0 defined $i and length $i
338 0 0 0 defined $i and length $i
383 0 0 2 defined $in and length $in
485 0 0 0 $long and $$o{'short'}
0 0 0 $long and $$o{'short'} and $$o{'long'}
580 0 0 0 $$o{'short'} and $$o{'long'}

or 2 conditions

line l !l condition
81 10 0 $_[0] || ''
85 4 0 $_[0] || ''
142 4 0 $$option{'from'} ||= ['NONE DEFINED']
449 0 0 $long ||= ''
465 0 0 $$o{'type'} || 'No type'
491 0 0 $$o{'description'} || $$o{'title'} || ''
0 0 $$o{'title'} || $$o{'description'} || ''
522 0 0 $$o{'type'} || 'No type'
536 0 0 $$o{'title'} || $$o{'description'} || ''
564 0 0 $$o{'type'} || 'No type'
583 0 0 $$o{'description'} || $$o{'title'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
75 6 6 0 $long_count or $short_count
199 2 0 0 $title || $0
284 0 0 0 $d eq $f or not length $d
319 0 0 0 $^O =~ /Win32/ or $^O =~ /darwin/
354 0 2 0 ref $class || $class
452 0 0 0 $$self{'description'} or $$self{'title'}
509 0 0 0 $$self{'description'} or $$self{'title'}
552 0 0 0 $$self{'description'} or $$self{'title'}