Condition Coverage

blib/lib/Devel/NYTProf/Data.pm
Criterion Covered Total %
condition 66 82 80.4


and 2 conditions

line l !l condition
107 0 6164 $_ and bless $_, $sub_class

and 3 conditions

line !l l&&!r l&&r condition
317 7693 2 5 ref $arg and UNIVERSAL::can($arg, "fid")
7695 1 4 ref $arg and UNIVERSAL::can($arg, "fid") and $arg->isa("Devel::NYTProf::FileInfo")
398 26368 448 1120 $path->[0] eq "fid_fileinfo" and @$path == 2
409 23936 448 2432 $path->[0] eq "sub_subinfo" and @$path == 2
24384 0 2432 $path->[0] eq "sub_subinfo" and @$path == 2 and $value->[0]
415 12992 10368 3264 $path->[0] =~ /^fid_\w+_time$/ and @$path == 2
459 14634 1122 12336 not $is_hash and ref $value eq "ARRAY"
15756 12336 0 not $is_hash and ref $value eq "ARRAY" and not @$value
480 11372 3560 9066 UNIVERSAL::isa($value, 'ARRAY') && @$value <= 9 && !grep({not defined $_ unless ref $_;} @$value)
711 0 0 73 $fid && $self->fileinfo_of($fid)

or 2 conditions

line l !l condition
78 675 1 shift() || {}
80 675 1 $args->{'filename'} ||= "nytprof.out"
196 0 176 $ENV{'NYTPROF_MAX_EVAL_SIBLINGS'} || 200
221 6609 1126 +(shift())->{'caches'} ||= {}
225 644 0 +(shift())->{'attribute'} || {}
229 450 0 +(shift())->{'option'} || {}
267 20 4 $pkg{shift @parts} ||= {}
271 0 0 $$node{shift @parts} ||= {}
272 20 4 $node->{''} ||= []
275 10 2 $pkg{$name} ||= []
380 449 1 shift() || {}
381 449 1 $args->{'separator'} || ''
382 448 2 $args->{'filehandle'} || \*STDOUT
509 1824 1 $level ||= "line"
577 1353 0 $self->get_fid_line_data($level) || []
673 76 6 $_->first_line || 0

or 3 conditions

line l !l&&r !l&&!r condition
241 0 0 128 $si2 != $si or $si2->subname ne $subname
411 0 192 2240 not $fi or &$hook($fi, $path, $value)
417 480 48 2736 not $fi or &$hook($fi, $path, $value)
449 6342 450 0 $path->[0] || $keys->[0]
457 14634 13458 21264 $is_hash or defined $value
620 6571 1126 0 $caches->{'_filename_to_fid_cache'} ||= do { my $filename_to_fid = {}; $$filename_to_fid{$_->filename} = $_->fid foreach ($self->all_fileinfos); $filename_to_fid }