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