Condition Coverage

blib/lib/File/AtomicWrite.pm
Criterion Covered Total %
condition 29 63 46.0


and 3 conditions

line !l l&&!r l&&r condition
59 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'}
156 1 0 28 exists $params_ref->{'file'} and defined $params_ref->{'file'}
169 1 0 1 not -d $params_ref->{'tmpdir'} and $params_ref->{'tmpdir'} ne $params_ref->{'_dir'}
196 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'}
210 26 0 3 exists $params_ref->{'CHECKSUM'} and $params_ref->{'CHECKSUM'}
230 20 2 1 exists $params_ref->{'CHECKSUM'} and not exists $params_ref->{'checksum'}
268 0 0 4 defined $mode and $mode =~ /^[0-9]+$/
293 0 0 1 defined $params_ref->{'mtime'} and $params_ref->{'mtime'} =~ /^[0-9]+$/
306 20 1 1 exists $params_ref->{'backup'} and -f $params_ref->{'file'}
415 0 0 0 defined $user_name and $user_name ne ''
426 0 0 0 defined $group_name and $group_name ne ''

or 2 conditions

line l !l condition
33 22 1 shift() || {}
85 7 1 shift() || {}
153 29 0 shift() || {}

or 3 conditions

line l !l&&r !l&&!r condition
48 19 0 0 $input_ref eq 'SCALAR' or $input_ref eq 'GLOB'
98 0 0 0 shift() || croak('safe_level() requires a value')
104 1 0 0 shift() || croak('set_template() requires a template')
124 1 0 0 shift() || croak('checksum requires an argument')
309 0 0 1 not defined $params_ref->{'backup'} or $params_ref->{'backup'} eq ''
405 0 0 0 not defined $owner or length $owner < 1