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 53 ▶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 53 ▶use base 'Lingy::Class';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 53 ▶use overload '""' => sub { ${$_[0]} };
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
7 0 ▶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 217188 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
10 217188 my ($class, $scalar) = @_;
11 217188 bless \$scalar, $class;
12 }
13  
14 5 ▶sub unbox {
Subroutine unbox: called CC=1 SCAR=0.0
Pod undocumented
15 5 ${$_[0]}
16 }
17  
18 53 1;
« lib/Lingy/Term.pm ↑ Summary lib/Lingy/ListClass.pm »