| 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
| |||||||||||
| 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__ | ||||||||||