lib/FFI/Build/File/Object.pm

filter: Statementstmt 95.8% 23 / 24 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 2 / 2 totaltotal 94.4% 34 / 36 CC 2 SCAR 2.3
CC
2
Cov
92%
build_item
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/FFI/Platypus/Closure.pm ↑ Summary blib/lib/FFI/Platypus/Record/TieArray.pm »
1 package FFI::Build::File::Object;
2  
3 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 13 ▶use 5.008004;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 13 ▶use parent qw( FFI::Build::File::Base );
Subroutine BEGIN: called CC=1 SCAR=0.0
7 13 ▶use constant default_encoding => ':raw';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 13 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 # ABSTRACT: Class to track object file in FFI::Build
11 13 our $VERSION = '2.12'; # VERSION
12  
13  
14 sub default_suffix
15 1 ▶{
Subroutine default_suffix: called CC=1 SCAR=0.0
Pod documented
16 1 shift->platform->object_suffix;
17 }
18  
19 sub build_item
20 61 ▶{
Subroutine build_item: called CC=2 SCAR=7.6
Pod documented
21 61 my($self) = @_;
22 61 ▶ unless(-f $self->path)
Branch: 1 branch
BranchTrueFalseTotal
unless (-f $self->path) 0 61 61
23 {
24 0 Carp::croak "File not built"
25 }
26 61 return;
27 }
28  
29 13 1;
30  
31 __END__
« blib/lib/FFI/Platypus/Closure.pm ↑ Summary blib/lib/FFI/Platypus/Record/TieArray.pm »