blib/lib/Test2/EventFacet/Parent.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 86.6% 26 / 30 CC 3 SCAR 6.3
CC
3
Cov
91%
init
3.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« blib/lib/Test2/Tools/Event.pm ↑ Summary blib/lib/Test2/Require/EnvVar.pm »
1 package Test2::EventFacet::Parent;
2 455 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 455 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 455 our $VERSION = '1.302226';
6  
7 455 ▶use Carp qw/confess/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 455 ▶BEGIN { require Test2::EventFacet; our @ISA = qw(Test2::EventFacet) }
Subroutine BEGIN: called CC=1 SCAR=0.0
10 455 ▶use Test2::Util::HashBase qw{-hid -children -buffered -start_stamp -stop_stamp};
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 6 ▶sub init {
Subroutine init: called CC=3 SCAR=12.0
Pod undocumented
13 confess "Attribute 'hid' must be set"
14 6 ▶ unless defined $_[0]->{+HID};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_[0]{"hid"} 0 6 6
15  
16 6 ▶ $_[0]->{+CHILDREN} ||= [];
Condition50%1/2
$_[0]{"children"} ||= []
l!l
60
MC/DC0%0/1
$_[0]{"children"} ||= []
$_[0]{"children"}
Truth table50%1/2
A
A= $_[0]{"children"}
Aresult
11
00
17 }
18  
19 455 1;
20  
21 __END__
« blib/lib/Test2/Tools/Event.pm ↑ Summary blib/lib/Test2/Require/EnvVar.pm »