| 1 | package Test2::EventFacet; | ||||||||||||||||||||
| 2 | 455 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 455 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 455 | our $VERSION = '1.302226'; | |||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | 455 | ▶ | use Test2::Util::HashBase qw/-details/; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | 455 | ▶ | use Carp qw/croak/; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 455 | my $SUBLEN = length(__PACKAGE__ . '::'); | |||||||||||||||||||
| 11 | 44 | ▶ | sub facet_key { | ||||||||||||||||||
|
Subroutine
facet_key: called CC=2 SCAR=7.6
Pod
documented
| |||||||||||||||||||||
| 12 | 44 | ▶ | my $key = ref($_[0]) || $_[0]; | ||||||||||||||||||
|
Condition33%1/3
ref $_[0] || $_[0]
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0]
$_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
| |||||||||||||||||||||
| 13 | 44 | substr($key, 0, $SUBLEN, ''); | |||||||||||||||||||
| 14 | 44 | return lc($key); | |||||||||||||||||||
| 15 | } | ||||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 117 | ▶ | sub is_list { 0 } | ||||||||||||||||||
|
Subroutine
is_list: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 119 | ▶ | sub clone { | ||||||||||||||||||
|
Subroutine
clone: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 20 | 119 | my $self = shift; | |||||||||||||||||||
| 21 | 119 | my $type = ref($self); | |||||||||||||||||||
| 22 | 119 | return bless {%$self, @_}, $type; | |||||||||||||||||||
| 23 | } | ||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | 455 | 1; | |||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | __END__ | ||||||||||||||||||||