line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
{ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Acme::Mitey::Cards::Card::Joker; |
4
|
3
|
|
|
3
|
|
18
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
73
|
|
5
|
3
|
|
|
3
|
|
12
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
66
|
|
6
|
3
|
|
|
3
|
|
12
|
no warnings qw( once void ); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
328
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $USES_MITE = "Mite::Class"; |
9
|
|
|
|
|
|
|
our $MITE_SHIM = "Acme::Mitey::Cards::Mite"; |
10
|
|
|
|
|
|
|
our $MITE_VERSION = "0.010002"; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# Mite keywords |
13
|
|
|
|
|
|
|
BEGIN { |
14
|
3
|
|
|
3
|
|
12
|
my ( $SHIM, $CALLER ) = |
15
|
|
|
|
|
|
|
( "Acme::Mitey::Cards::Mite", "Acme::Mitey::Cards::Card::Joker" ); |
16
|
|
|
|
|
|
|
( |
17
|
|
|
|
|
|
|
*after, *around, *before, *extends, *field, |
18
|
|
|
|
|
|
|
*has, *param, *signature_for, *with |
19
|
|
|
|
|
|
|
) |
20
|
3
|
|
|
|
|
6
|
= do { |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
package Acme::Mitey::Cards::Mite; |
23
|
3
|
|
|
3
|
|
17
|
no warnings 'redefine'; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
570
|
|
24
|
|
|
|
|
|
|
( |
25
|
0
|
|
|
0
|
|
0
|
sub { $SHIM->HANDLE_after( $CALLER, "class", @_ ) }, |
26
|
0
|
|
|
0
|
|
0
|
sub { $SHIM->HANDLE_around( $CALLER, "class", @_ ) }, |
27
|
0
|
|
|
0
|
|
0
|
sub { $SHIM->HANDLE_before( $CALLER, "class", @_ ) }, |
28
|
|
|
|
3
|
|
|
sub { }, |
29
|
0
|
|
|
0
|
|
0
|
sub { $SHIM->HANDLE_has( $CALLER, field => @_ ) }, |
30
|
0
|
|
|
0
|
|
0
|
sub { $SHIM->HANDLE_has( $CALLER, has => @_ ) }, |
31
|
0
|
|
|
0
|
|
0
|
sub { $SHIM->HANDLE_has( $CALLER, param => @_ ) }, |
32
|
3
|
|
|
3
|
|
13
|
sub { $SHIM->HANDLE_signature_for( $CALLER, "class", @_ ) }, |
33
|
0
|
|
|
0
|
|
0
|
sub { $SHIM->HANDLE_with( $CALLER, @_ ) }, |
34
|
3
|
|
|
|
|
430
|
); |
35
|
|
|
|
|
|
|
}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# Mite imports |
39
|
|
|
|
|
|
|
BEGIN { |
40
|
3
|
|
|
3
|
|
17
|
require Scalar::Util; |
41
|
3
|
|
|
|
|
7
|
*STRICT = \&Acme::Mitey::Cards::Mite::STRICT; |
42
|
3
|
|
|
|
|
5
|
*bare = \&Acme::Mitey::Cards::Mite::bare; |
43
|
3
|
|
|
|
|
6
|
*blessed = \&Scalar::Util::blessed; |
44
|
3
|
|
|
|
|
5
|
*carp = \&Acme::Mitey::Cards::Mite::carp; |
45
|
3
|
|
|
|
|
4
|
*confess = \&Acme::Mitey::Cards::Mite::confess; |
46
|
3
|
|
|
|
|
5
|
*croak = \&Acme::Mitey::Cards::Mite::croak; |
47
|
3
|
|
|
|
|
11
|
*false = \&Acme::Mitey::Cards::Mite::false; |
48
|
3
|
|
|
|
|
5
|
*guard = \&Acme::Mitey::Cards::Mite::guard; |
49
|
3
|
|
|
|
|
12
|
*lazy = \&Acme::Mitey::Cards::Mite::lazy; |
50
|
3
|
|
|
|
|
5
|
*ro = \&Acme::Mitey::Cards::Mite::ro; |
51
|
3
|
|
|
|
|
5
|
*rw = \&Acme::Mitey::Cards::Mite::rw; |
52
|
3
|
|
|
|
|
4
|
*rwp = \&Acme::Mitey::Cards::Mite::rwp; |
53
|
3
|
|
|
|
|
102
|
*true = \&Acme::Mitey::Cards::Mite::true; |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
BEGIN { |
57
|
3
|
|
|
3
|
|
487
|
require Acme::Mitey::Cards::Card; |
58
|
|
|
|
|
|
|
|
59
|
3
|
|
|
3
|
|
15
|
use mro 'c3'; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
16
|
|
60
|
3
|
|
|
|
|
5
|
our @ISA; |
61
|
3
|
|
|
|
|
442
|
push @ISA, "Acme::Mitey::Cards::Card"; |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
# See UNIVERSAL |
65
|
|
|
|
|
|
|
sub DOES { |
66
|
0
|
|
|
0
|
0
|
|
my ( $self, $role ) = @_; |
67
|
0
|
|
|
|
|
|
our %DOES; |
68
|
0
|
0
|
|
|
|
|
return $DOES{$role} if exists $DOES{$role}; |
69
|
0
|
0
|
|
|
|
|
return 1 if $role eq __PACKAGE__; |
70
|
0
|
|
|
|
|
|
return $self->SUPER::DOES($role); |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
# Alias for Moose/Moo-compatibility |
74
|
|
|
|
|
|
|
sub does { |
75
|
0
|
|
|
0
|
0
|
|
shift->DOES(@_); |
76
|
|
|
|
|
|
|
} |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
# Method signatures |
79
|
|
|
|
|
|
|
our %SIGNATURE_FOR; |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
$SIGNATURE_FOR{"to_string"} = |
82
|
|
|
|
|
|
|
$Acme::Mitey::Cards::Card::SIGNATURE_FOR{"to_string"}; |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
1; |
85
|
|
|
|
|
|
|
} |