Condition Coverage

blib/lib/Linux/Bootloader/Grub.pm
Criterion Covered Total %
condition 13 48 27.0


and 2 conditions

line l !l condition
188 0 0 warn "ERROR: cannot read grub default file.\n" and return undef
236 0 0 warn "ERROR: cannot open default file.\n" and return undef
248 0 0 warn "ERROR: cannot open default file.\n" and return undef

and 3 conditions

line !l l&&!r l&&r condition
267 1 2 3 defined $param{'add-kernel'} && defined $param{'title'}
2 0 1 defined $param{'initrd'} and not -f "$param{'initrd'}"
343 1 0 0 defined $param{'position'} and $param{'position'} =~ /end|\d+/
385 0 0 0 defined $params{'option'} and not defined $params{'update-kernel'}
0 0 0 defined $params{'update-kernel'} && (defined $params{'args'} || defined $params{'remove-args'} || defined $params{'option'})
398 0 0 0 defined $params{'update-kernel'} and not $params{'update-kernel'} =~ /^\d+$/

or 3 conditions

line l !l&&r !l&&!r condition
124 0 1 0 ref $this || $this
214 3 0 2 $newdefault =~ /^\d+$/ or $newdefault =~ /^saved$/
221 0 1 2 $newdefault < 0 or $newdefault > $kcount
348 0 0 1 $param{'position'} =~ /end/ or $param{'position'} >= $#sections
370 0 0 1 defined $param{'make-default'} or defined $param{'boot-once'}
403 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
420 0 0 0 defined $params{'args'} or defined $params{'remove-args'}