Branch Coverage

blib/lib/Catalyst/Stats.pm
Criterion Covered Total %
branch 35 40 87.5


line true false branch
29 1 75 unless $self->enable
32 4 71 if (@_ <= 1) { }
0 71 elsif (@_ % 2 != 0) { }
49 33 42 if ($params{'end'})
52 33 4 if ($stack->[$i]->getNodeValue->{'action'} eq $params{'end'})
62 5 37 if ($params{'parent'})
66 37 5 unless ($parent)
68 0 37 unless $prev = $parent = $stack->[-1]
70 10 27 if $n > 0
79 30 12 if $params{'uid'}
82 34 8 if $params{'begin'}
101 15 1 unless (wantarray)
115 1 38 $stat->{'action'} && $stat->{'comment'} ? :
9 30 $stat->{'comment'} ? :
31 8 $stat->{'action'} ? :
119 28 11 if ($t) { }
120 28 0 defined $r[2] ? :
127 1 15 wantarray ? :
146 1 0 if ($stat->{'elapsed'})
159 1 0 if ($stat->{'elapsed'})