Branch Coverage

blib/lib/File/Find/Rule/Permissions.pm
Criterion Covered Total %
branch 48 52 92.3


line true false branch
112 0 2 unless exists $File::Find::Rule::Permissions::UIDsByUsername{$member}
120 0 52 UNIVERSAL::isa($_[0], 'HASH') ? :
127 0 8192 unless (exists $criteria{'isReadable'} or exists $criteria{'isWriteable'} or exists $criteria{'isExecutable'})
136 0 26624 unless exists $criteria{'user'}
137 10240 16384 if ($criteria{'user'} =~ /^\d+$/) { }
149 7168 19456 $userid == $file_uid ? :
9216 17408 $File::Find::Rule::Permissions::UIDinGID{$file_gid}{$userid} ? :
153 7168 19456 $userid == $file_uid ? :
9216 17408 $File::Find::Rule::Permissions::UIDinGID{$file_gid}{$userid} ? :
157 7168 19456 $userid == $file_uid ? :
9216 17408 $File::Find::Rule::Permissions::UIDinGID{$file_gid}{$userid} ? :
161 10240 16384 if ($userid != $file_uid and not $File::Find::Rule::Permissions::UIDinGID{$file_gid}{$userid})
169 6144 20480 if $userid == 0
170 5376 21248 if $userid == 0 and $mode & 73
176 6144 20480 if (exists $criteria{'isReadable'} and $criteria{'isReadable'}) { }
4096 32768 elsif (exists $criteria{'isReadable'} and not $criteria{'isReadable'}) { }
177 2560 3584 unless $isReadable
179 2560 1536 if $isReadable
181 4608 16896 if (exists $criteria{'isWriteable'} and $criteria{'isWriteable'}) { }
4608 24576 elsif (exists $criteria{'isWriteable'} and not $criteria{'isWriteable'}) { }
182 1792 2816 unless $isWriteable
184 2816 1792 if $isWriteable
186 4096 12800 if (exists $criteria{'isExecutable'} and $criteria{'isExecutable'}) { }
4096 17408 elsif (exists $criteria{'isExecutable'} and not $criteria{'isExecutable'}) { }
187 1664 2432 unless $isExecutable
189 2432 1664 if $isExecutable