Branch Coverage

blib/lib/File/chmod.pm
Criterion Covered Total %
branch 83 234 35.4


line true false branch
35 16 18 wantarray ? :
43 18 3 if $how == $SYM
44 0 3 if $how == $LS
53 0 0 if $how == $SYM
54 0 0 if $how == $LS
55 0 0 wantarray ? :
62 0 18 if $UMASK == 2
72 18 0 if CORE::chmod shift @return, $_
81 0 18 if mode($mode) != $SYM
91 16 36 if (not defined $or and /[augo]/)
92 0 16 if /a/
93 7 9 if /u/
94 4 5 if /g/
95 5 0 if /o/
98 18 18 if (/[-+=]/)
100 9 9 /[=+]/ ? :
101 0 18 if /=/
105 0 18 unless defined $or
106 0 18 unless /[ugorwxslt]/
108 0 0 $or ? :
0 18 if /u/
109 0 0 $or ? :
0 18 if /g/
110 0 0 $or ? :
0 18 if /o/
111 4 4 $or ? :
8 10 if /r/
112 1 2 $or ? :
3 15 if /w/
113 1 1 $or ? :
2 16 if /x/
114 0 0 $or ? :
0 18 if /s/
115 0 0 $or ? :
0 18 if /l/
116 3 2 $or ? :
5 13 if /t/
119 0 18 if $UMASK
122 18 0 wantarray ? :
137 0 0 if mode($mode) != $LS
142 0 0 if /r/
143 0 0 if /w/
144 0 0 if /[xs]/
145 0 0 if /[sS]/
149 0 0 if /r/
150 0 0 if /w/
151 0 0 if /[xs]/
152 0 0 if /[sS]/
156 0 0 if /r/
157 0 0 if /w/
158 0 0 if /[xt]/
159 0 0 if /[Tt]/
162 0 0 wantarray ? :
168 3 36 unless $mode =~ /\D/
169 28 8 if $mode =~ /[augo=+,]/
170 0 8 if $mode =~ /^.([r-][w-][xSs-]){2}[r-][w-][xTt-]$/
182 0 0 if $File::chmod::W & 1
183 0 0 if $File::chmod::W & 2
184 0 0 if $File::chmod::W & 4
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 & 2
199 0 0 if $File::chmod::W & 4
205 0 0 if $File::chmod::W & 1
206 0 0 if $File::chmod::W & 4
212 0 0 if $File::chmod::W & 1
213 0 0 if $File::chmod::W & 2
214 0 0 if $File::chmod::W & 4
220 0 0 if $File::chmod::W & 1
221 0 0 if $File::chmod::W & 2
227 0 0 if $File::chmod::W & 1
228 0 0 if $File::chmod::W & 2
229 0 0 if $File::chmod::W & 4
234 4 0 if $File::chmod::W & 1
235 3 1 if $File::chmod::W & 2
236 2 2 if $File::chmod::W & 4
241 4 0 if $File::chmod::W & 1
242 3 1 if $File::chmod::W & 2
243 2 2 if $File::chmod::W & 4
248 1 0 if $File::chmod::W & 1
249 1 0 if $File::chmod::W & 2
250 1 0 if $File::chmod::W & 4
255 1 1 if $File::chmod::W & 1
256 1 1 if $File::chmod::W & 2
257 2 0 if $File::chmod::W & 4
262 0 0 if $DEBUG
0 1 if ($File::chmod::VAL & 1024)
263 1 0 if $File::chmod::W & 1
264 1 0 if $File::chmod::W & 2
265 1 0 if $File::chmod::W & 4
270 1 0 if $File::chmod::W & 1
271 1 0 if $File::chmod::W & 2
272 1 0 if $File::chmod::W & 4
277 0 0 if $DEBUG
0 0 if ($File::chmod::VAL & 1024)
278 0 0 if $DEBUG
0 0 unless ($File::chmod::VAL & 64)
279 0 0 if $DEBUG
0 0 unless ($File::chmod::VAL & 8)
280 0 0 if $File::chmod::W & 1
281 0 0 if $File::chmod::W & 2
282 0 0 if $File::chmod::W & 4 and $DEBUG
287 0 0 if $File::chmod::W & 1
288 0 0 if $File::chmod::W & 2
289 0 0 if $File::chmod::W & 4 and $DEBUG
294 0 0 if $DEBUG
0 0 if ($File::chmod::VAL & 1032)
295 0 0 if $DEBUG
0 0 if ($File::chmod::VAL & 8)
301 0 0 if not $File::chmod::VAL & 8
306 2 0 if $File::chmod::W & 1 and $DEBUG
307 1 0 if $File::chmod::W & 2 and $DEBUG
308 2 1 if $File::chmod::W & 4
313 1 0 if $File::chmod::W & 1 and $DEBUG
314 1 0 if $File::chmod::W & 2 and $DEBUG
315 2 0 if $File::chmod::W & 4