Condition Coverage

blib/lib/Linux/Bootloader.pm
Criterion Covered Total %
condition 13 66 19.7


and 2 conditions

line l !l condition
157 0 1 warn "ERROR: Can't open $config_file.\n" and return undef
189 0 0 warn "ERROR: Can't open config file.\n" and return undef

and 3 conditions

line !l l&&!r l&&r condition
128 0 1 0 defined $class and $class eq 'Linux::Bootloader'
323 0 0 0 not defined $param{'add-kernel'} and defined $param{'kernel'}
0 0 0 defined $param{'add-kernel'} && defined $param{'title'}
0 0 0 defined $param{'initrd'} and not -f "$param{'initrd'}"
380 0 0 0 defined $param{'position'} and $param{'position'} =~ /end|\d+/
421 0 0 0 defined $params{'update-kernel'} and defined $params{'args'} || defined $params{'remove-args'}
493 0 3 0 defined $sections[$index]{'title'} and $position eq $sections[$index]{'title'}
637 0 9 1 defined $tmp and $title eq $tmp

or 2 conditions

line l !l condition
585 0 69 $$self{'debug'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
127 1 0 0 ref $this || $this
154 3 0 0 shift() || $$self{'config_file'}
172 3 0 0 shift() || $$self{'config_file'}
297 0 0 0 not defined $newdefault or $newdefault < 0
0 0 0 not defined $newdefault or $newdefault < 0 or $newdefault > $kcount
385 0 0 0 $param{'position'} =~ /end/ or $param{'position'} >= $#sections
421 0 0 0 defined $params{'args'} || defined $params{'remove-args'}
437 0 0 0 not $params{'update-kernel'} =~ /^\d+$/ or $params{'update-kernel'} < 0
0 0 0 not $params{'update-kernel'} =~ /^\d+$/ or $params{'update-kernel'} < 0 or $params{'update-kernel'} > $kcount
505 0 1 1 $position < 0 or $position > $#sections
516 15 0 4 $index != $position or $_ =~ /^#/
563 0 0 0 $start < 0 or $end > $#sections - 1