Branch Coverage

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


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