File Coverage

lib/FFI/Build/File/Object.pm
Criterion Covered Total %
statement 21 22 95.4
branch 1 2 50.0
condition n/a
subroutine 8 8 100.0
pod 2 2 100.0
total 32 34 94.1


line stmt bran cond sub pod time code
1             package FFI::Build::File::Object;
2              
3 13     13   250473 use strict;
  13         25  
  13         547  
4 13     13   79 use warnings;
  13         22  
  13         704  
5 13     13   222 use 5.008004;
  13         49  
6 13     13   660 use parent qw( FFI::Build::File::Base );
  13         374  
  13         81  
7 13     13   1047 use constant default_encoding => ':raw';
  13         26  
  13         906  
8 13     13   76 use Carp ();
  13         21  
  13         1892  
9              
10             # ABSTRACT: Class to track object file in FFI::Build
11             our $VERSION = '2.11'; # VERSION
12              
13              
14             sub default_suffix
15             {
16 1     1 1 9 shift->platform->object_suffix;
17             }
18              
19             sub build_item
20             {
21 58     58 1 1075 my($self) = @_;
22 58 50       218 unless(-f $self->path)
23             {
24 0         0 Carp::croak "File not built"
25             }
26 58         302 return;
27             }
28              
29             1;
30              
31             __END__