Branch Coverage

blib/lib/Devel/NYTProf/Callgrind/Ticks.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
59 8 5 if ($self->file)
70 0 8 unless (-f $file)
81 8 262 if ($line =~ /events:\s(\w+)/i)
87 0 262 if ($area ne 'ticks')
90 52 210 if ($line =~ /^\s*$/)
93 42 10 if (scalar keys %$block != 0)
100 166 44 if ($line =~ /(\w+)=(.+)/)
105 26 140 if ($key eq 'calls')
113 44 166 if ($line =~ /^(\d+) (\d+)$/)
121 2 6 if (keys %$block)
167 2 29 if ($found) { }
170 29 0 if (scalar keys %$block != 0)
208 22 2 if (exists $self->blocks_by_id->{$id})
233 0 2 unless open my $fh, ">$file"
257 52 18 if exists $node->{$p}