line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Find::Object::Base; |
2
|
|
|
|
|
|
|
$File::Find::Object::Base::VERSION = '0.3.6'; |
3
|
5
|
|
|
5
|
|
2467
|
use strict; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
141
|
|
4
|
5
|
|
|
5
|
|
24
|
use warnings; |
|
5
|
|
|
|
|
18
|
|
|
5
|
|
|
|
|
169
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
31
|
use integer; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
22
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# TODO : |
9
|
|
|
|
|
|
|
# _last_dir_scanned should be defined only for ::PathComp , but we should |
10
|
|
|
|
|
|
|
# add a regression test to test it. |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
use Class::XSAccessor accessors => { |
14
|
|
|
|
|
|
|
( |
15
|
5
|
|
|
|
|
14
|
map { $_ => $_ } ( |
|
5
|
|
|
|
|
38
|
|
16
|
|
|
|
|
|
|
qw( |
17
|
|
|
|
|
|
|
_last_dir_scanned |
18
|
|
|
|
|
|
|
) |
19
|
|
|
|
|
|
|
) |
20
|
|
|
|
|
|
|
) |
21
|
5
|
|
|
5
|
|
2855
|
}; |
|
5
|
|
|
|
|
12378
|
|
22
|
|
|
|
|
|
|
|
23
|
5
|
|
|
5
|
|
1025
|
use File::Spec; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
304
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# Create a _copy method that does a flat copy of an array returned by |
26
|
|
|
|
|
|
|
# a method as a reference. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub _make_copy_methods |
29
|
|
|
|
|
|
|
{ |
30
|
10
|
|
|
10
|
|
32
|
my ( $pkg, $methods ) = @_; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
## no critic |
33
|
5
|
|
|
5
|
|
33
|
no strict 'refs'; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
706
|
|
34
|
10
|
|
|
|
|
28
|
foreach my $method (@$methods) |
35
|
|
|
|
|
|
|
{ |
36
|
15
|
|
|
|
|
91
|
*{ $pkg . "::" . $method . "_copy" } = do |
37
|
15
|
|
|
|
|
59
|
{ |
38
|
15
|
|
|
|
|
28
|
my $m = $method; |
39
|
|
|
|
|
|
|
sub { |
40
|
220
|
|
|
220
|
|
357
|
my $self = shift; |
41
|
220
|
|
|
|
|
322
|
return [ @{ $self->$m(@_) } ]; |
|
220
|
|
|
|
|
1315
|
|
42
|
15
|
|
|
|
|
123
|
}; |
43
|
|
|
|
|
|
|
}; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
## use critic |
46
|
10
|
|
|
|
|
32
|
return; |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__END__ |