SRS/Version.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod n/a totaltotal 65.5% 19 / 29 SCAR 7.7
CC
2
Cov
65%
__ANON__
4.5
__ANON__
2.0
BEGIN
1.1
CRAP 2.2
« SRS/ACL.pm ↑ Summary SRS/Types.pm »
1  
2 package XML::SRS::Version;
3 5 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use MooseX::Method::Signatures;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 5 has_attr "major" =>
8 is => "rw",
9 isa => "Int",
10 required => 1,
11 xml_name => "VerMajor",
12 ;
13  
14 5 has_attr "minor" =>
15 is => "rw",
16 isa => "Int",
17 required => 1,
18 xml_name => "VerMinor",
19 ;
20  
21 has "version" =>
22 is => "ro",
23 isa => "Str",
24 lazy => 1,
25 default => sub {
26 0 ▶ my $self = shift;
Subroutine __ANON__: not called CC=1 SCAR=6.9
27 0 $self->major.".".$self->minor;
28 },
29 5 ;
30  
31 5 ▶method buildargs_version( $inv: Str $version ) {
Subroutine BEGIN: called CC=1 SCAR=1.2
Subroutine __ANON__: not called CC=2 SCAR=15.1
32 0 ▶ $version = $XML::SRS::PROTOCOL_VERSION
Branch: 1 branch
BranchTrueFalseTotal
if $version eq "auto" 0 0 0
33 if $version eq "auto";
34 0 my ($vmaj, $vmin) = split /\./, $version;
35 0 (major => 0+$vmaj, minor => 0+$vmin);
36 5 }
37  
38 5 1;
« SRS/ACL.pm ↑ Summary SRS/Types.pm »