blib/lib/Alien/Kiwisolver.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 50.0% 1 / 2 totaltotal 92.5% 25 / 27 CC 2 SCAR 2.9
CC
2
Cov
95%
Inline
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« alienfile ↑ Summary
1 package Alien::Kiwisolver;
2 # ABSTRACT: Alien package for the Kiwi C++ implementation of the Cassowary constraint solving algorithm
3 1 $Alien::Kiwisolver::VERSION = '0.003';
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use parent qw(Alien::Base);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 6 ▶sub inline_auto_include {
Subroutine inline_auto_include: called CC=1 SCAR=0.0
Pod documented
10 6 return [ 'kiwi/kiwi.h' ];
11 }
12  
13 3 ▶sub Inline {
Subroutine Inline: called CC=2 SCAR=7.0
Pod undocumented
14 3 my ($self, $lang) = @_;
15  
16 3 ▶ if( $lang =~ /^CPP$/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($lang =~ /^CPP$/) 3 0 3
17 3 my $params = Alien::Base::Inline(@_);
18  
19 3 $params->{CCFLAGSEX} = $self->runtime_prop->{cppstdflag};
20  
21 3 $params->{PRE_HEAD} = <<' EOF';
22 #if defined(_MSC_VER) || defined(__MINGW32__)
23 # define NO_XSLOCKS /* To avoid Perl wrappers of C library */
24 #endif
25  
26 #ifdef __cplusplus
27 // Avoid Perl's "seed" macro that breaks <algorithm> by including <algorithm> first.
28 #include <algorithm>
29 #endif
30  
31 EOF
32  
33 3 return $params;
34 }
35 }
36  
37  
38 1 1;
39  
40 __END__
« alienfile ↑ Summary