lib/Lingy/ScalarClass.pm

filter: Statementstmt 95.6% 22 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 0.0% 0 / 2 totaltotal 88.2% 30 / 34 CC 1 SCAR 0.0
CC
1
Cov
96%
BEGIN
1.0
__ANON__
1.0
BEGIN
1.0
CRAP 1.0
« lib/Lingy/Term.pm ↑ Summary lib/Lingy/ListClass.pm »
1 57 ▶use strict; use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Lingy::ScalarClass;
3  
4 57 ▶use base 'Lingy::Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 57 ▶use overload '""' => sub { ${$_[0]} };
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
7 57 ▶use overload cmp => sub { "$_[0]" cmp "$_[1]" };
Subroutine BEGIN: called CC=1 SCAR=0.2
Subroutine __ANON__: not called CC=1 SCAR=0.2
8  
9 sub new {
10 229924 ▶ my ($class, $scalar) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
11 229924 bless \$scalar, $class;
12 }
13  
14 sub unbox {
15 5 ▶ ${$_[0]}
Subroutine unbox: called CC=1 SCAR=0.0
Pod undocumented
16 }
17  
18 57 1;
« lib/Lingy/Term.pm ↑ Summary lib/Lingy/ListClass.pm »