Tangerine/HookData.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond 100% 6 / 6 MC/DCmcdc 100% 3 / 3 Subroutinesub 100% 8 / 8 Podpod 80.0% 4 / 5 totaltotal 97.5% 39 / 40 CC 4 SCAR 7.4
CC
4
Cov
100%
new
4.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« Tangerine/hook/package.pm ↑ Summary Tangerine/Occurence.pm »
1 package Tangerine::HookData;
2 15 $Tangerine::HookData::VERSION = '0.22';
3 15 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 15 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 15 ▶use Tangerine::Utils qw/accessor/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 sub new {
8 179 ▶ my $class = shift;
Subroutine new: called CC=4 SCAR=13.9
Pod undocumented
9 179 my %args = @_;
10 bless {
11 _children => $args{children} // [],
12 _hooks => $args{hooks} // [],
13 _modules => $args{modules} // {},
14 _type => $args{type},
15 179 ▶ }, $class
Condition100%6/6
$args{"children"} // []
l!l
22157
$args{"hooks"} // []
l!l
14165
$args{"modules"} // {}
l!l
14336
MC/DC100%1/1
$args{"children"} // []
$args{"children"}
MC/DC100%1/1
$args{"hooks"} // []
$args{"hooks"}
MC/DC100%1/1
$args{"modules"} // {}
$args{"modules"}
Truth table100%2/2
A
A= $args{"children"}
Aresult
11
00
Truth table100%2/2
A
A= $args{"hooks"}
Aresult
11
00
Truth table100%2/2
A
A= $args{"modules"}
Aresult
11
00
16 }
17  
18 201 ▶sub children { accessor _children => @_ }
Subroutine children: called CC=1 SCAR=0.0
Pod documented
19 193 ▶sub hooks { accessor _hooks => @_ }
Subroutine hooks: called CC=1 SCAR=0.0
Pod documented
20 179 ▶sub modules { accessor _modules => @_ }
Subroutine modules: called CC=1 SCAR=0.0
Pod documented
21 22 ▶sub type { accessor _type => @_ }
Subroutine type: called CC=1 SCAR=0.0
Pod documented
22  
23 15 1;
24  
25 __END__
« Tangerine/hook/package.pm ↑ Summary Tangerine/Occurence.pm »