Condition Coverage

lib/Haineko/CLI.pm
Criterion Covered Total %
condition 26 39 66.6


and 3 conditions

line !l l&&!r l&&r condition
154 0 0 1 $$self{'pidfile'} and not $$self{'runfile'}

or 2 conditions

line l !l condition
36 0 4 $$argvs{'runfile'} || ''
1 3 $$argvs{'pidfile'} || ''
4 0 $$argvs{'verbose'} || 0
4 0 $$argvs{'runmode'} || 1
0 4 $$argvs{'logging'} || {'disabled', 1, 'facility', 'local2', 'file', ''}
61 4 1 shift() || (return '')
112 1 0 shift() || 0
125 1 0 shift() // 1
162 1 0 'IO::File'->new($$self{'runfile'}, 'w') || (return 0)
186 1 0 'IO::File'->new($$self{'pidfile'}, 'w') || (return 0)
208 1 0 'IO::File'->new($$self{'pidfile'}, 'r') || (return undef)
219 6 1 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
36 0 4 0 $$argvs{'command'} || [caller]->[1]
225 1 1 5 $argvs eq 'o' or $argvs eq 'option'
226 1 1 3 $argvs eq 's' or $argvs eq 'subcommand'
227 1 1 1 $argvs eq 'e' or $argvs eq 'example'