Condition Coverage

blib/lib/Setup/File.pm
Criterion Covered Total %
condition 153 196 78.0


and 3 conditions

line !l l&&!r l&&r condition
83 99 1 15 $is_sym && -d $path
84 6 28 81 $exists && dir_empty($path)
90 6 55 2 $exists and not $is_dir || $allow_sym && $is_sym_to_dir
95 7 7 1 defined $d and not $d
172 74 2 4 $is_sym && -d $path
176 29 17 6 $exists and not $is_dir || $allow_sym && $is_sym_to_dir
256 0 413 0 not $follow_sym and $is_sym
260 18 156 239 not $args{-'tx_recovery'} and defined $orig_mode
174 0 239 not $args{-'tx_recovery'} and defined $orig_mode and defined $cur_mode
156 236 3 not $args{-'tx_recovery'} and defined $orig_mode and defined $cur_mode and $cur_mode != $orig_mode
236 2 1 not $args{-'tx_recovery'} and defined $orig_mode and defined $cur_mode and $cur_mode != $orig_mode and not $args{-'confirm'}
426 8 0 12 $follow_sym and $exists
443 4 5 4 defined $want_uid and $cur_uid != $want_uid
2 5 2 defined $want_gid and $cur_gid != $want_gid
447 2 0 4 defined $want_uid && $cur_uid != $want_uid
2 2 2 defined $want_gid && $cur_gid != $want_gid
555 188 1 15 $is_sym && -f $path
561 8 99 2 $exists and not $is_file || $allow_sym && $is_sym_to_file
564 10 21 68 not $args{-'confirm'} and defined $args{'orig_content'} || defined $args{'orig_content_md5'}
711 235 1 2 $is_sym && -f $path
712 104 131 3 $exists and not $is_file || $allow_sym && $is_sym_to_file
825 58 42 0 defined $ct and defined $check_ct || defined $gen_ct
870 4 78 18 defined $should_exist and not $should_exist
881 80 0 0 not $allow_sym and $is_sym
68 12 0 $is_dir and $which eq 'file'
12 51 17 not $is_dir and $which eq 'dir'

or 2 conditions

line l !l condition
72 124 0 $args{-'tx_action'} // ''
78 115 0 $args{'allow_symlink'} // 0
160 80 0 $args{-'tx_action'} // ''
164 4 76 $args{'allow_symlink'} // 0
165 0 80 $args{'mode'} // 493
246 413 0 $args{-'tx_action'} // ''
250 407 6 $args{'follow_symlink'} // 0
355 20 0 $args{-'tx_action'} // ''
359 17 3 $args{'follow_symlink'} // 0
458 4 2 $want_owner // '-'
4 2 $want_group // '-'
466 3 2 $want_uid // -1
3 2 $want_gid // -1
469 2 2 $want_uid // -1
2 2 $want_gid // -1
471 1 0 $want_uid // -1
1 0 $want_gid // -1
476 0 0 $want_uid // -1
0 0 $want_gid // -1
543 216 0 $args{-'tx_action'} // ''
549 204 0 $args{'allow_symlink'} // 0
698 251 0 $args{-'tx_action'} // ''
704 2 236 $args{'allow_symlink'} // 0
813 100 0 $args{'allow_symlink'} // 1
814 100 0 $args{'replace_file'} // 1
815 100 0 $args{'replace_dir'} // 1
816 100 0 $args{'replace_symlink'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
81 16 93 6 $is_sym || -e _
90 48 7 2 $is_dir || $allow_sym && $is_sym_to_dir
170 6 17 57 $is_sym || -e _
176 15 2 6 $is_dir || $allow_sym && $is_sym_to_dir
257 0 411 2 $is_sym || -e _
364 14 6 0 defined $want_owner or defined $want_group
425 0 18 2 $is_sym || -e _
432 0 0 20 $args{-'tx_recovery'} or $args{-'confirm'}
433 0 0 20 defined $orig_uid && $orig_uid != $cur_uid || defined $orig_gid && $orig_gid != $cur_gid
443 4 2 7 defined $want_uid and $cur_uid != $want_uid or defined $want_gid and $cur_gid != $want_gid
550 100 104 0 $args{'suffix'} // substr($taid, 0, 8)
553 16 180 8 $is_sym || -e _
561 92 7 2 $is_file || $allow_sym && $is_sym_to_file
564 9 59 21 defined $args{'orig_content'} || defined $args{'orig_content_md5'}
705 115 123 0 $args{'suffix'} // substr($taid, 0, 8)
709 3 131 104 $is_sym || -e _
712 130 1 3 $is_file || $allow_sym && $is_sym_to_file
777 47 52 0 $fix_content or not $exists
825 0 0 42 defined $check_ct || defined $gen_ct
879 78 2 2 defined $should_exist or $exists

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
822 0 0 0 100 defined $check_ct xor defined $gen_ct