File Coverage

blib/lib/File/Find/Object/Result.pm
Criterion Covered Total %
statement 19 23 82.6
branch 2 2 100.0
condition n/a
subroutine 6 7 85.7
pod 2 2 100.0
total 29 34 85.2


line stmt bran cond sub pod time code
1             package File::Find::Object::Result;
2             $File::Find::Object::Result::VERSION = '0.3.9';
3 7     7   446214 use strict;
  7         81  
  7         464  
4 7     7   56 use warnings;
  7         15  
  7         408  
5 7     7   683 use integer;
  7         34  
  7         47  
6              
7             use Class::XSAccessor accessors => {
8             (
9 7         20 map { $_ => $_ } (
  56         216  
10             qw(
11             base
12             basename
13             is_dir
14             is_file
15             is_link
16             path
17             dir_components
18             stat_ret
19             )
20             )
21             )
22 7     7   1187 };
  7         3827  
23              
24 7     7   4339 use Fcntl qw(:mode);
  7         19  
  7         3227  
25              
26             sub new
27             {
28 0     0 1 0 my $class = shift;
29 0         0 my $self = shift;
30              
31 0         0 bless $self, $class;
32              
33 0         0 return $self;
34             }
35              
36             sub full_components
37             {
38 7     7 1 20527 my $self = shift;
39              
40             return [
41 7 100       16 @{ $self->dir_components() },
  7         77  
42             ( $self->is_dir() ? () : $self->basename() ),
43             ];
44             }
45              
46             1;
47              
48             __END__