Devel/Agent/AwareRole.pm

filter: Statementstmt 62.5% 10 / 16 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 52.1% 12 / 23 CC 3 SCAR 20.3
CC
3
Cov
50%
___db_stack_filter
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 7.6
« Devel/Agent/Util.pm ↑ Summary Plack/Middleware/Devel/Agent/Plack.pm »
1 package Devel::Agent::AwareRole;
2  
3 1 ▶use Modern::Perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Role::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 require Devel::Agent;
6 1 our $VERSION=$Devel::Agent::VERSION;
7  
8 1 require Scalar::Util;
9  
10 0 ▶sub ___db_stack_filter {
Subroutine ___db_stack_filter: not called CC=3 SCAR=24.8
11 0 my ($class,$agent,$frame,$args,$raw_caller)=@_;
12  
13 # prevent deeper traces if we are in here
14 0 $agent->max_depth($frame->{depth});
15  
16 0 ▶ if(my $blessed=&Scalar::Util::blessed($class)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $blessed = &Scalar::Util::blessed($class)) 0 0 0
17 0 $class=$blessed;
18 }
19  
20 # hide internal calls from our trace
21 0 ▶ return 0 if $frame->{caller_class} eq $class;
Branch: 1 branch
BranchTrueFalseTotal
if $frame->{"caller_class"} eq $class 0 0 0
22  
23 0 return 1;
24 }
25  
26 1 1;
27 __END__
« Devel/Agent/Util.pm ↑ Summary Plack/Middleware/Devel/Agent/Plack.pm »