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/TypeParser.pm ↑ Summary blib/lib/FFI/Platypus/Record/TieArray.pm »
1 package FFI::Build::File::Object;
2  
3 14 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 14 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 14 ▶use 5.008004;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 14 ▶use parent qw( FFI::Build::File::Base );
Subroutine BEGIN: called CC=1 SCAR=0.0
7 14 ▶use constant default_encoding => ':raw';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 14 ▶use Carp ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 # ABSTRACT: Class to track object file in FFI::Build
11 14 our $VERSION = '2.14_01'; # TRIAL 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 62 ▶{
Subroutine build_item: called CC=2 SCAR=7.6
Pod documented
21 62 my($self) = @_;
22 62 ▶ unless(-f $self->path)
Branch: 1 branch
BranchTrueFalseTotal
unless (-f $self->path) 0 62 62
23 {
24 0 Carp::croak "File not built"
25 }
26 62 return;
27 }
28  
29 14 1;
30  
31 __END__
« blib/lib/FFI/Platypus/TypeParser.pm ↑ Summary blib/lib/FFI/Platypus/Record/TieArray.pm »