Class/Variable.pm

filter: Statementstmt 95.2% 20 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 2 totaltotal 86.2% 25 / 29 CC 1 SCAR 1.5
CC
1
Cov
95%
is_variable
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Class/Method.pm ↑ Summary
1 package PlantUML::ClassDiagram::Class::Variable;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 ▶use parent qw/PlantUML::ClassDiagram::Class::Base/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 __PACKAGE__->follow_best_practice;
9  
10 4 my @self_valiables = qw/
11 name
12 attribute
13 /;
14 4 __PACKAGE__->mk_ro_accessors(@self_valiables);
15  
16 2 ▶sub build {
Subroutine build: called CC=1 SCAR=0.0
Pod undocumented
17 2 my ($class, $string) = @_;
18  
19 2 my ($name) = $string =~ /(\w+)/;
20 2 my ($attribute) = $string =~ /\{(\w+)\}/;
21  
22 2 return $class->new($name, $attribute);
23 }
24  
25 0 ▶sub is_variable { 1 }
Subroutine is_variable: not called CC=1 SCAR=6.9
Pod undocumented
26  
27 4 1;
« Class/Method.pm ↑ Summary