Singleton/Frame/Deducer.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.5% 28 / 29 CC 2 SCAR 2.5
CC
2
Cov
100%
parent
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Singleton/Frame/Promise/Builder.pm ↑ Summary Singleton/Exception/Invalid.pm »
1  
2 9 ▶use v5.10;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 package Context::Singleton::Frame::Deducer;
7 9 $Context::Singleton::Frame::Deducer::VERSION = '1.0.9';
8 9 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 9 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 9 has q (frame)
13 => is => q (ro)
14 => weak_ref => 1
15 => handles => [
16 q (depth),
17 q (db),
18 ];
19  
20 172 ▶sub parent {
Subroutine parent: called CC=2 SCAR=6.9
Pod undocumented
21 172 my ($deducer) = @_;
22  
23 return
24 172 ▶ unless $deducer->frame->parent
Branch: 1 branch
BranchTrueFalseTotal
unless $deducer->frame->parent 106 66 172
25 ;
26 66 return $deducer->frame->parent->_deducer;
27 }
28  
29 9 1;
« Singleton/Frame/Promise/Builder.pm ↑ Summary Singleton/Exception/Invalid.pm »