blib/lib/File/StatX.pm untested

filter: Statementstmt 0.0% 0 / 39 Branchbran n/a Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 60 CC 1 SCAR 6.9
CC
1
Cov
0%
statx
2.0
fstatx
2.0
statxat
2.0
CRAP 2.0
1 package File::StatX;
2 $File::StatX::VERSION = '0.006';
3 use strict;
4 use warnings;
5  
6 use XSLoader;
7  
8 XSLoader::load(__PACKAGE__, __PACKAGE__->VERSION);
9  
10 use Exporter 'import';
11 our @EXPORT_OK;
12 push @EXPORT_OK, qw/statx fstatx statxat/;
13 our %EXPORT_TAGS = (
14 all => \@EXPORT_OK,
15 funcs => [qw/statx fstatx statxat/],
16 masks => [ grep /^STATX_/, @EXPORT_OK ],
17 at => [ grep /^AT_/, @EXPORT_OK ],
18 );
19  
20 use Carp 'croak';
21 use Time::Spec;
22  
23 sub statx {
24 my ($path, $flags, $mask) = @_;
25 my $result = File::StatX->new;
26 _do_statx(undef, $path, $flags, $mask, $result) or croak "Could not statx: $!";
27 return $result;
28 }
29  
30 sub fstatx {
31 my ($fh, $flags, $mask) = @_;
32 my $result = File::StatX->new;
33 _do_fstatx($fh, $flags, $mask, $result) or croak "Could not statx: $!";
34 return $result;
35 }
36  
37 sub statxat {
38 my ($dir, $path, $flags, $mask) = @_;
39 my $result = File::StatX->new;
40 _do_statx($dir, $path, $flags, $mask, $result) or croak "Could not statx: $!";
41 return $result;
42 }
43  
44 1;
45  
46 # ABSTRACT: StatX for Perl
47  
48 __END__