Branch Coverage

blib/lib/Tree/Ternary.pm
Criterion Covered Total %
branch 89 96 92.7


line true false branch
66 0 11 if ($@)
145 642 1148 if (not defined $$ref[0]) { }
152 50 592 if (($$ref[0] = $char) eq '00') { }
163 55 1093 if ($char lt $$ref[0]) { }
69 1024 elsif ($char gt $$ref[0]) { }
198 16 173 if ($char lt $$ref[0]) { }
6 167 elsif ($char gt $$ref[0]) { }
203 11 156 if ($char eq '00')
243 251 165 unless (defined $$ref[0])
249 14 237 if (($$ref[0] = $char) eq '00') { }
259 16 400 if ($char lt $$ref[0]) { }
390 10 elsif ($char eq $$ref[0]) { }
263 371 19 if ($char ne '00')
290 17 0 if (defined $$self[0]) { }
305 17 169 if ($char lt $$ref[0]) { }
166 3 elsif ($char eq $$ref[0]) { }
306 13 4 if (defined $$ref[1][0]) { }
312 11 155 if ($char eq '00')
315 155 0 if (defined $$ref[2][0]) { }
321 1 2 if (defined $$ref[3][0]) { }
347 16 0 if (defined $$self[0])
351 8 8 wantarray ? :
362 152 248 if ($char eq $wildcard or $char lt $$ref[0])
363 52 100 if (defined $$ref[1][0])
371 324 76 if ($char eq $wildcard or $char eq $$ref[0])
372 292 32 if ($$ref[0] ne '00' and $char ne '00')
373 292 0 if (defined $$ref[2][0])
383 30 370 if ($char eq '00' and $$ref[0] eq '00')
387 148 252 if ($char eq $wildcard or $char gt $$ref[0])
388 40 108 if (defined $$ref[3][0])
418 16 0 if (defined $$self[0])
422 8 8 wantarray ? :
433 85 507 if (not defined $$ref[0] or $dist < 0)
437 348 159 if ($dist > 0 or $char lt $$ref[0])
438 60 288 unless (not defined $$ref[1][0] or $dist < 0)
446 35 472 if ($$ref[0] eq '00') { }
447 33 2 if ($#char <= $dist)
457 232 240 $char eq $$ref[0] ? :
4 468 $char[0] eq '00' ? :
4 468 $char eq '00' ? :
465 375 132 if ($dist > 0 or $char gt $$ref[0])
466 44 331 unless (not defined $$ref[3][0] or $dist < 0)
491 1 73 unless (defined $ref)
496 6 68 if (defined $$ref[1][0])
500 74 0 if (defined $$ref[0])
501 12 62 if ($$ref[0] eq '00')
506 62 12 if (defined $$ref[2][0])
511 5 69 if (defined $$ref[3][0])