Perl/Analysis/Static/Answer.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Perl/Analysis/Static/Analysis/Block.pm ↑ Summary Perl/Analysis/Static/Collector.pm »
1 package Perl::Analysis::Static::Answer;
2 {
3 5 $Perl::Analysis::Static::Answer::VERSION = '0.004'; # TRIAL
4 }
5 # ABSTRACT: represents an answer to a question about a Perl document
6  
7  
8 5 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 5 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 ▶use English qw( -no_match_vars ); # Avoids regex performance penalty
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 5 has 'class' => ( is => 'rw', isa => 'Str' );
13  
14 has 'elements' => (
15 traits => ['Array'],
16 is => 'ro',
17 isa => 'ArrayRef',
18 2 ▶ default => sub { [] },
Subroutine __ANON__: called CC=1 SCAR=0.0
19 5 handles => {
20 add_element => 'push'
21 }
22 );
23  
24 5 1;
25  
26 __END__
« Perl/Analysis/Static/Analysis/Block.pm ↑ Summary Perl/Analysis/Static/Collector.pm »