Condition Coverage

blib/lib/File/AtomicWrite.pm
Criterion Covered Total %
condition 22 48 45.8


and 3 conditions

line !l l&&!r l&&r condition
61 17 1 1 exists $params_ref->{'CHECKSUM'} and not exists $params_ref->{'checksum'}
72 0 0 0 exists $params_ref->{'CHECKSUM'} and not exists $params_ref->{'checksum'}
148 1 0 28 exists $params_ref->{'file'} and defined $params_ref->{'file'}
161 1 0 1 not -d $params_ref->{'tmpdir'} and $params_ref->{'tmpdir'} ne $params_ref->{'_dir'}
188 26 0 0 exists $params_ref->{'binmode_layer'} and defined $params_ref->{'binmode_layer'}
25 1 0 exists $params_ref->{'BINMODE'} and $params_ref->{'BINMODE'}
202 26 0 3 exists $params_ref->{'CHECKSUM'} and $params_ref->{'CHECKSUM'}
219 20 2 1 exists $params_ref->{'CHECKSUM'} and not exists $params_ref->{'checksum'}
257 0 0 4 defined $mode and $mode =~ /^[0-9]+$/
282 0 0 1 defined $params_ref->{'mtime'} and $params_ref->{'mtime'} =~ /^[0-9]+$/
295 20 1 1 exists $params_ref->{'backup'} and -f $params_ref->{'file'}
398 0 0 0 defined $user_name and $user_name ne ''
409 0 0 0 defined $group_name and $group_name ne ''

or 3 conditions

line l !l&&r !l&&!r condition
50 19 0 0 $input_ref eq 'SCALAR' or $input_ref eq 'GLOB'
298 0 0 1 not defined $params_ref->{'backup'} or $params_ref->{'backup'} eq ''
388 0 0 0 not defined $owner or length $owner < 1