Branch Coverage

blib/lib/Plack/Middleware/Profiler/NYTProf.pm
Criterion Covered Total %
branch 29 46 63.0


line true false branch
64 0 4 unless defined $self->enable_reporting
69 3 1 unless $self->enable_profile
75 3 1 unless is_code_ref($self->profiling_result_dir)
81 4 0 unless is_code_ref($self->report_dir)
86 0 4 if $self->nytprofhtml_path
87 0 4 unless my $nytprofhtml_path = File::Which::which('nytprofhtml')
95 4 0 unless is_code_ref($self->generate_profile_id)
102 3 1 unless is_code_ref($self->profiling_result_file_name)
108 4 0 unless $self->nullfile_name
114 4 0 unless is_code_ref($self->before_profile)
116 4 0 unless is_code_ref($self->after_profile)
128 4 0 if (ref $res and ref $res eq 'ARRAY')
139 0 0 unless (defined $chunk)
152 1 3 unless $is_profiler_enabled
162 1 3 unless $is_profiler_enabled
165 0 3 if $self->enable_reporting
173 0 4 if $PROFILER_SETUPED{$pid}
177 1 3 unless $is_profiler_enabled
179 1 2 if $NYTPROF_LOADED
201 0 0 unless $env->{'PROFILE_ID'}
206 0 0 unless -f $profiling_result_file
229 2 22 ref $ref eq 'CODE' ? :
233 3 1 if defined &{'DB::finish_profile';}