line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
{ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Mite::App::Command::clean; |
4
|
16
|
|
|
16
|
|
148
|
use strict; |
|
16
|
|
|
|
|
51
|
|
|
16
|
|
|
|
|
564
|
|
5
|
16
|
|
|
16
|
|
92
|
use warnings; |
|
16
|
|
|
|
|
52
|
|
|
16
|
|
|
|
|
576
|
|
6
|
16
|
|
|
16
|
|
126
|
no warnings qw( once void ); |
|
16
|
|
|
|
|
67
|
|
|
16
|
|
|
|
|
2248
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $USES_MITE = "Mite::Class"; |
9
|
|
|
|
|
|
|
our $MITE_SHIM = "Mite::Shim"; |
10
|
|
|
|
|
|
|
our $MITE_VERSION = "0.011000"; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# Mite keywords |
13
|
|
|
|
|
|
|
BEGIN { |
14
|
16
|
|
|
16
|
|
129
|
my ( $SHIM, $CALLER ) = |
15
|
|
|
|
|
|
|
( "Mite::Shim", "Mite::App::Command::clean" ); |
16
|
|
|
|
|
|
|
( |
17
|
|
|
|
|
|
|
*after, *around, *before, *extends, *field, |
18
|
|
|
|
|
|
|
*has, *param, *signature_for, *with |
19
|
|
|
|
|
|
|
) |
20
|
16
|
|
|
|
|
43
|
= do { |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
package Mite::Shim; |
23
|
16
|
|
|
16
|
|
128
|
no warnings 'redefine'; |
|
16
|
|
|
|
|
55
|
|
|
16
|
|
|
|
|
4110
|
|
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
|
|
|
|
16
|
|
|
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
|
0
|
|
|
0
|
|
0
|
sub { $SHIM->HANDLE_signature_for( $CALLER, "class", @_ ) }, |
33
|
0
|
|
|
0
|
|
0
|
sub { $SHIM->HANDLE_with( $CALLER, @_ ) }, |
34
|
16
|
|
|
|
|
3246
|
); |
35
|
|
|
|
|
|
|
}; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# Mite imports |
39
|
|
|
|
|
|
|
BEGIN { |
40
|
16
|
|
|
16
|
|
127
|
require Scalar::Util; |
41
|
16
|
|
|
|
|
54
|
*STRICT = \&Mite::Shim::STRICT; |
42
|
16
|
|
|
|
|
42
|
*bare = \&Mite::Shim::bare; |
43
|
16
|
|
|
|
|
42
|
*blessed = \&Scalar::Util::blessed; |
44
|
16
|
|
|
|
|
43
|
*carp = \&Mite::Shim::carp; |
45
|
16
|
|
|
|
|
75
|
*confess = \&Mite::Shim::confess; |
46
|
16
|
|
|
|
|
54
|
*croak = \&Mite::Shim::croak; |
47
|
16
|
|
|
|
|
34
|
*false = \&Mite::Shim::false; |
48
|
16
|
|
|
|
|
42
|
*guard = \&Mite::Shim::guard; |
49
|
16
|
|
|
|
|
34
|
*lazy = \&Mite::Shim::lazy; |
50
|
16
|
|
|
|
|
38
|
*lock = \&Mite::Shim::lock; |
51
|
16
|
|
|
|
|
39
|
*ro = \&Mite::Shim::ro; |
52
|
16
|
|
|
|
|
36
|
*rw = \&Mite::Shim::rw; |
53
|
16
|
|
|
|
|
33
|
*rwp = \&Mite::Shim::rwp; |
54
|
16
|
|
|
|
|
33
|
*true = \&Mite::Shim::true; |
55
|
16
|
|
|
|
|
789
|
*unlock = \&Mite::Shim::unlock; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
BEGIN { |
59
|
16
|
|
|
16
|
|
826
|
require Mite::App::Command; |
60
|
|
|
|
|
|
|
|
61
|
16
|
|
|
16
|
|
132
|
use mro 'c3'; |
|
16
|
|
|
|
|
62
|
|
|
16
|
|
|
|
|
145
|
|
62
|
16
|
|
|
|
|
61
|
our @ISA; |
63
|
16
|
|
|
|
|
3442
|
push @ISA, "Mite::App::Command"; |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
# See UNIVERSAL |
67
|
|
|
|
|
|
|
sub DOES { |
68
|
0
|
|
|
0
|
0
|
|
my ( $self, $role ) = @_; |
69
|
0
|
|
|
|
|
|
our %DOES; |
70
|
0
|
0
|
|
|
|
|
return $DOES{$role} if exists $DOES{$role}; |
71
|
0
|
0
|
|
|
|
|
return 1 if $role eq __PACKAGE__; |
72
|
0
|
0
|
0
|
|
|
|
if ( $INC{'Moose/Util.pm'} |
|
|
|
0
|
|
|
|
|
73
|
|
|
|
|
|
|
and my $meta = Moose::Util::find_meta( ref $self or $self ) ) |
74
|
|
|
|
|
|
|
{ |
75
|
0
|
0
|
0
|
|
|
|
$meta->can('does_role') and $meta->does_role($role) and return 1; |
76
|
|
|
|
|
|
|
} |
77
|
0
|
|
|
|
|
|
return $self->SUPER::DOES($role); |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
# Alias for Moose/Moo-compatibility |
81
|
|
|
|
|
|
|
sub does { |
82
|
0
|
|
|
0
|
0
|
|
shift->DOES(@_); |
83
|
|
|
|
|
|
|
} |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
1; |
86
|
|
|
|
|
|
|
} |