Junction/Base.pm

filter: Statementstmt 100% 13 / 13 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 90.9% 20 / 22 CC 2 SCAR 2.9
CC
2
Cov
100%
values
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Junction/None.pm ↑ Summary Junction.pm »
1 package Perl6::Junction::Base;
2 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 8 our $VERSION = '1.60000';
4  
5 8 ▶use overload(
Subroutine BEGIN: called CC=1 SCAR=0.0
6 '==' => "num_eq",
7 '!=' => "num_ne",
8 '>=' => "num_ge",
9 '>' => "num_gt",
10 '<=' => "num_le",
11 '<' => "num_lt",
12 'eq' => "str_eq",
13 'ne' => "str_ne",
14 'ge' => "str_ge",
15 'gt' => "str_gt",
16 'le' => "str_le",
17 'lt' => "str_lt",
18 'bool' => "bool",
19 4 ▶ '""' => sub {shift},
Subroutine __ANON__: called CC=1 SCAR=0.0
20 8 );
21  
22 384 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
23 384 my ( $class, @param ) = @_;
24 384 return bless \@param, $class;
25 }
26  
27 8 ▶sub values {
Subroutine values: called CC=2 SCAR=6.9
Pod undocumented
28 8 my $self = shift;
29 8 ▶ return wantarray ? @$self : [ @$self ];
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 4 4 8
30 }
31  
32 8 1;
33  
« Junction/None.pm ↑ Summary Junction.pm »