Branch Coverage

blib/lib/Tie/Watch.pm
Criterion Covered Total %
branch 31 60 51.6


line true false branch
264 0 5 unless defined $variable
267 1 4 if ($type =~ /(SCALAR|REF)/) { }
2 2 elsif ($type =~ /ARRAY/) { }
2 0 elsif ($type =~ /HASH/) { }
295 1 4 if ($type =~ /(SCALAR|REF)/) { }
2 2 elsif ($type =~ /ARRAY/) { }
2 0 elsif ($type =~ /HASH/) { }
313 0 0 defined $_[0]{$_[1]}[1] ? :
327 0 0 if scalar @_ >= 2
345 0 0 ref $_[1] ne '' ? :
0 0 defined $_[1] ? :
358 2 1 unless $type =~ /(SCALAR|REF)/
361 1 2 if ($type =~ /(SCALAR|REF)/) { }
1 1 elsif ($type =~ /ARRAY/) { }
1 0 elsif ($type =~ /HASH/) { }
365 1 0 if $shadow
368 1 0 if $shadow
410 15 47 if $arg =~ /variable|debug|shadow/
413 0 47 if ($ref =~ /CODE/) { }
0 47 elsif (not $ref =~ /ARRAY/) { }
435 0 1 if $$watch_obj{-'debug'}
466 2 0 if $shadow
467 2 0 $shadow ? :
469 0 2 if $$watch_obj{-'debug'}
491 0 0 if $n == 2
492 0 0 if $n == 3
493 0 0 if $n >= 4
527 2 0 if $shadow
528 2 0 $shadow ? :
530 0 2 if $$watch_obj{-'debug'}