Tangerine/Metadata.pm

filter: Statementstmt 53.8% 14 / 26 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 30.7% 4 / 13 Podpod 0.0% 0 / 7 totaltotal 37.5% 18 / 48 CC 2 SCAR 8.0
CC
2
Cov
50%
accessor
6.0
__ANON__
2.0
new
2.0
CRAP 2.2
« Tangerine.pm ↑ Summary
1 package App::Tangerine::Metadata;
2 1 $App::Tangerine::Metadata::VERSION = '0.22';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 use overload
6 1 ▶ '""' => sub {
Subroutine BEGIN: called CC=1 SCAR=0.4
Subroutine __ANON__: not called CC=1 SCAR=0.2
7 1 ▶ no warnings 'uninitialized';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 0 return $_[0]->type."\0".$_[0]->name."\0".$_[0]->version."\0".$_[0]->file
9 },
10 0 ▶ 'cmp' => sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
11 0 my ($self, $other) = @_;
12 0 return "$self" cmp "$other"
13 1 };
14  
15  
16 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
17 0 my $class = shift;
18 0 my %args = @_;
19 0 bless { %args }, $class
20 }
21  
22 0 ▶sub accessor {
Subroutine accessor: not called CC=2 SCAR=17.9
Pod undocumented
23 0 ▶ $_[1]->{$_[0]} = $_[2] ? $_[2] : $_[1]->{$_[0]}
Branch: 1 branch
BranchTrueFalseTotal
$_[2] ? : 0 0 0
24 }
25  
26 0 ▶sub name { accessor(name => @_) }
Subroutine name: not called CC=1 SCAR=6.9
Pod undocumented
27 0 ▶sub file { accessor(file => @_) }
Subroutine file: not called CC=1 SCAR=6.9
Pod undocumented
28 0 ▶sub type { accessor(type => @_) }
Subroutine type: not called CC=1 SCAR=6.9
Pod undocumented
29 0 ▶sub line { accessor(line => @_) }
Subroutine line: not called CC=1 SCAR=6.9
Pod undocumented
30 0 ▶sub version { accessor(version => @_) }
Subroutine version: not called CC=1 SCAR=6.9
Pod undocumented
31  
32 1 1;
33  
34 __END__
« Tangerine.pm ↑ Summary