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
62 17 1 1 exists $params_ref->{'CHECKSUM'} and not exists $params_ref->{'checksum'}
75 0 0 0 exists $params_ref->{'CHECKSUM'} and not exists $params_ref->{'checksum'}
159 1 28 0 exists $params_ref->{'file'} and defined $params_ref->{'file'}
172 1 0 1 not -d $params_ref->{'tmpdir'} and $params_ref->{'tmpdir'} ne $params_ref->{'_dir'}
199 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'}
213 26 3 0 exists $params_ref->{'CHECKSUM'} and $params_ref->{'CHECKSUM'}
233 20 2 1 exists $params_ref->{'CHECKSUM'} and not exists $params_ref->{'checksum'}
271 0 4 0 defined $mode and $mode =~ /^[0-9]+$/
296 0 1 0 defined $params_ref->{'mtime'} and $params_ref->{'mtime'} =~ /^[0-9]+$/
309 20 1 1 exists $params_ref->{'backup'} and -f $params_ref->{'file'}
416 0 0 0 defined $user_name and $user_name ne ''
427 0 0 0 defined $group_name and $group_name ne ''

or 2 conditions

line l !l condition
36 22 1 shift() || {}
88 7 1 shift() || {}
156 29 0 shift() || {}

or 3 conditions

line l !l&&r !l&&!r condition
51 19 0 0 $input_ref eq 'SCALAR' or $input_ref eq 'GLOB'
101 0 0 0 shift() || croak('safe_level() requires a value')
107 1 0 0 shift() || croak('set_template() requires a template')
127 1 0 0 shift() || croak('checksum requires an argument')
312 0 0 1 not defined $params_ref->{'backup'} or $params_ref->{'backup'} eq ''
406 0 0 0 not defined $owner or length $owner < 1