Branch Coverage

blib/lib/File/chmod.pm
Criterion Covered Total %
branch 80 232 34.4


line true false branch
35 14 17 wantarray ? :
43 17 2 if $how == $SYM
44 0 2 if $how == $LS
53 0 0 if $how == $SYM
54 0 0 if $how == $LS
55 0 0 wantarray ? :
64 17 0 if CORE::chmod shift @return, $_
73 0 17 if mode($mode) != $SYM
83 15 34 if (not defined $or and /[augo]/)
84 0 15 if /a/
85 7 8 if /u/
86 4 4 if /g/
87 4 0 if /o/
90 17 17 if (/[-+=]/)
92 9 8 /[=+]/ ? :
93 0 17 if /=/
97 0 17 unless defined $or
98 0 17 unless /[ugorwxslt]/
100 0 0 $or ? :
0 17 if /u/
101 0 0 $or ? :
0 17 if /g/
102 0 0 $or ? :
0 17 if /o/
103 4 4 $or ? :
8 9 if /r/
104 1 1 $or ? :
2 15 if /w/
105 1 1 $or ? :
2 15 if /x/
106 0 0 $or ? :
0 17 if /s/
107 0 0 $or ? :
0 17 if /l/
108 3 2 $or ? :
5 12 if /t/
111 0 17 if $UMASK
114 17 0 wantarray ? :
129 0 0 if mode($mode) != $LS
134 0 0 if /r/
135 0 0 if /w/
136 0 0 if /[xs]/
137 0 0 if /[sS]/
141 0 0 if /r/
142 0 0 if /w/
143 0 0 if /[xs]/
144 0 0 if /[sS]/
148 0 0 if /r/
149 0 0 if /w/
150 0 0 if /[xt]/
151 0 0 if /[Tt]/
154 0 0 wantarray ? :
160 2 34 unless $mode =~ /\D/
161 26 8 if $mode =~ /[augo=+,]/
162 0 8 if $mode =~ /^.([r-][w-][xSs-]){2}[r-][w-][xTt-]$/
174 0 0 if $File::chmod::W & 1
175 0 0 if $File::chmod::W & 2
176 0 0 if $File::chmod::W & 4
182 0 0 if $File::chmod::W & 2
183 0 0 if $File::chmod::W & 4
189 0 0 if $File::chmod::W & 1
190 0 0 if $File::chmod::W & 2
191 0 0 if $File::chmod::W & 4
197 0 0 if $File::chmod::W & 1
198 0 0 if $File::chmod::W & 4
204 0 0 if $File::chmod::W & 1
205 0 0 if $File::chmod::W & 2
206 0 0 if $File::chmod::W & 4
212 0 0 if $File::chmod::W & 1
213 0 0 if $File::chmod::W & 2
219 0 0 if $File::chmod::W & 1
220 0 0 if $File::chmod::W & 2
221 0 0 if $File::chmod::W & 4
226 4 0 if $File::chmod::W & 1
227 3 1 if $File::chmod::W & 2
228 2 2 if $File::chmod::W & 4
233 4 0 if $File::chmod::W & 1
234 3 1 if $File::chmod::W & 2
235 2 2 if $File::chmod::W & 4
240 1 0 if $File::chmod::W & 1
241 1 0 if $File::chmod::W & 2
242 1 0 if $File::chmod::W & 4
247 1 0 if $File::chmod::W & 1
248 1 0 if $File::chmod::W & 2
249 1 0 if $File::chmod::W & 4
254 0 0 if $DEBUG
0 1 if ($File::chmod::VAL & 1024)
255 1 0 if $File::chmod::W & 1
256 1 0 if $File::chmod::W & 2
257 1 0 if $File::chmod::W & 4
262 1 0 if $File::chmod::W & 1
263 1 0 if $File::chmod::W & 2
264 1 0 if $File::chmod::W & 4
269 0 0 if $DEBUG
0 0 if ($File::chmod::VAL & 1024)
270 0 0 if $DEBUG
0 0 unless ($File::chmod::VAL & 64)
271 0 0 if $DEBUG
0 0 unless ($File::chmod::VAL & 8)
272 0 0 if $File::chmod::W & 1
273 0 0 if $File::chmod::W & 2
274 0 0 if $File::chmod::W & 4 and $DEBUG
279 0 0 if $File::chmod::W & 1
280 0 0 if $File::chmod::W & 2
281 0 0 if $File::chmod::W & 4 and $DEBUG
286 0 0 if $DEBUG
0 0 if ($File::chmod::VAL & 1032)
287 0 0 if $DEBUG
0 0 if ($File::chmod::VAL & 8)
293 0 0 if not $File::chmod::VAL & 8
298 2 0 if $File::chmod::W & 1 and $DEBUG
299 1 0 if $File::chmod::W & 2 and $DEBUG
300 2 1 if $File::chmod::W & 4
305 1 0 if $File::chmod::W & 1 and $DEBUG
306 1 0 if $File::chmod::W & 2 and $DEBUG
307 2 0 if $File::chmod::W & 4