Condition Coverage

blib/lib/Brackup/Restore.pm
Criterion Covered Total %
condition 30 62 48.3


and 2 conditions

line l !l condition
204 0 0 eval { do { require Lchown } } && 'Lchown::LCHOWN_AVAILABLE'

and 3 conditions

line !l l&&!r l&&r condition
29 0 0 11 $$self{'to'} and -d $$self{'to'}
58 11 0 0 $$self{'config'} and $$meta{'TargetName'}
74 7 4 0 $$self{'prefix'} and $$self{'prefix'} =~ m[^/]
110 2 2 2 $type ne 'd' and $path =~ m[^\Q$$self{'prefix'}\E/?$]
284 82 0 0 -e $full and -s $full

or 2 conditions

line l !l condition
84 29 126 $$it{'Type'} || 'f'
87 126 0 $$it{'Chunks'} || ''
88 126 0 $1 || ''
89 126 0 $dig || ''
101 29 126 $$it{'Type'} || 'f'
162 0 10 $$self{'_remote_user_map'} ||= {map({split(/:/, $_, 2);} split(/\s+/, $$meta{'UIDMap'}, 0))}
182 0 10 $$self{'_remote_group_map'} ||= {map({split(/:/, $_, 2);} split(/\s+/, $$meta{'GIDMap'}, 0))}
291 82 0 $$it{'Chunks'} || ''
301 90 10 $$self{'_cached_dig'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
62 0 11 0 $confsec ||= 'Brackup::ConfigSection'->new('fake')
127 9 92 0 $$it{'Mode'} ||= $type eq 'd' ? $$meta{'DefaultDirMode'} : $$meta{'DefaultFileMode'}
128 0 101 0 $$it{'UID'} ||= $$meta{'DefaultUID'}
129 0 101 0 $$it{'GID'} ||= $$meta{'DefaultGID'}
137 101 0 0 $$it{'UID'} or $$it{'GID'}
226 101 0 0 $$it{'Mtime'} or $$it{'Atime'}
227 101 0 0 $$it{'Atime'} || $$it{'Mtime'}
101 0 0 $$it{'Mtime'} || $$it{'Atime'}
348 82 0 0 $actual_dig eq $good_dig or $full =~ /\.brackup-digest\.db\b/