lib/Ftree/Cemetery.pm

filter: Statementstmt 74.0% 20 / 27 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod 0.0% 0 / 2 totaltotal 66.6% 26 / 39 CC 2 SCAR 8.0
CC
2
Cov
69%
toString
6.0
new
2.0
BEGIN
1.0
CRAP 2.2
« blib/lib/Ftree/TextGenerators/RussianTextGenerator.pm ↑ Summary blib/lib/Ftree/Exporters/Serializer.pm »
1 package Ftree::Cemetery;
2
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5
6 2 ▶use version; our $VERSION = qv('2.3.41');
Subroutine BEGIN: called CC=1 SCAR=0.0
7
8 2 ▶use Ftree::Place;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Params::Validate qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
10
11 2 ▶use base 'Ftree::Place';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
13 0 my $type = shift;
14 0 my $self = $type->SUPER::new(@_);
15 0 $self->{cemetery} = $_[2];
16 0 return $self;
17 }
18
19 0 ▶ sub toString {
Subroutine toString: not called CC=2 SCAR=17.9
Pod undocumented
20 0 my ( $self) = validate_pos(@_, {type => HASHREF});
21 0 my $string = $self->SUPER::toString();
22 0 ▶ return defined $self->{cemetery} ? "$string, $self->{cemetery}" : $string;
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'cemetery'} ? : 0 0 0
23 }
24
25 2 1;
« blib/lib/Ftree/TextGenerators/RussianTextGenerator.pm ↑ Summary blib/lib/Ftree/Exporters/Serializer.pm »