blib/lib/Devel/StatProfiler/SectionGuard.pm

filter: Statementstmt 92.3% 12 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 2 totaltotal 80.0% 16 / 20 CC 1 SCAR 1.8
CC
1
Cov
92%
section_name
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Devel/StatProfiler/Reader.pm ↑ Summary buildtmp/StatProfiler.c »
1 package Devel::StatProfiler::SectionGuard;
2 1 ▶use 5.12.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
6 2 my $class = shift;
7 2 my $self = bless({@_} => $class);
8 2 Devel::StatProfiler::start_section($self->{section_name});
9 2 return $self;
10 }
11  
12 0 ▶sub section_name { $_[0]->{section_name} }
Subroutine section_name: not called CC=1 SCAR=6.9
Pod undocumented
13  
14 2 ▶sub DESTROY {
Subroutine DESTROY: called CC=1 SCAR=0.0
15 2 my $self = shift;
16 2 Devel::StatProfiler::end_section($self->{section_name});
17 }
18  
19 1 1;
20  
21 __END__
« blib/lib/Devel/StatProfiler/Reader.pm ↑ Summary buildtmp/StatProfiler.c »