ClassDiagram/Method.pm

filter: Statementstmt 40.0% 6 / 15 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 1 / 3 Podpod 0.0% 0 / 2 totaltotal 29.1% 7 / 24 CC 3 SCAR 20.5
CC
3
Cov
32%
new
12.0
ident_color
2.0
BEGIN
1.0
CRAP 7.8
« ClassDiagram/GlobalVar.pm ↑ Summary ClassDiagram/Attribute.pm »
1 package GraphViz::Diagram::ClassDiagram::Method;
2 1 ▶use GraphViz::Diagram::ClassDiagram::ClassElement;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 our @ISA = qw(GraphViz::Diagram::ClassDiagram::ClassElement);
5 1 our $VERSION = $GraphViz::Diagram::ClassDiagram::VERSION;
6  
7 0 ▶sub new { #_{
Subroutine new: not called CC=3 SCAR=24.8
Pod undocumented
8 0 my $class_myself = shift;
9 0 my $class = shift;
10 0 my $ident = shift;
11 0 my $opts = shift;
12  
13 # my $self = {};
14  
15 0 ▶ croak unless ref $class eq 'GraphViz::Class';
Branch: 1 branch
BranchTrueFalseTotal
unless ref $class eq "GraphViz::Class" 0 0 0
16  
17 0 ▶ $opts->{type} = delete $opts->{returns} if exists $opts->{returns};
Branch: 1 branch
BranchTrueFalseTotal
if exists $opts->{"returns"} 0 0 0
18 # $class_myself->SUPER::new($self, $class, $ident, $opts);
19  
20 0 my $self = $class_myself->SUPER::new($class, $ident, $opts);
21
22 # bless $self, $class_myself;
23  
24 0 return $self;
25  
26 } #_}
27 0 ▶sub ident_color { #_{
Subroutine ident_color: not called CC=1 SCAR=6.9
Pod undocumented
28 0 return '#b08f25';
29 } #_}
30  
31 1 'tq84';
« ClassDiagram/GlobalVar.pm ↑ Summary ClassDiagram/Attribute.pm »