blib/lib/OpenMP/Simple.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 96.1% 25 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/OpenMP/test-runner.pl ↑ Summary
1 package OpenMP::Simple;
2  
3 32 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 32 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 32 ▶use Alien::OpenMP;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 32 our $VERSION = q{0.2.7};
8  
9 # This module is a wrapper around a ".h" file that is injected into Alien::OpenMP
10 # via Inline:C's AUTO_INCLUDE feature. This header file constains C macros for reading
11 # OpenMP relavent environmental variables via %ENV (set by OpenMP::Environment perhaps)
12 # and using the standard OpenMP runtime functions to set them.
13  
14 32 ▶use File::ShareDir 'dist_dir';
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 32 my $share_dir = dist_dir('OpenMP-Simple');
17  
18 31 ▶sub Inline {
Subroutine Inline: called CC=1 SCAR=0.0
Pod undocumented
19 31 my ($self, $lang) = @_;
20 31 my $config = Alien::OpenMP->Inline($lang);
21 31 $config->{INC} = qq{-I$share_dir};
22 31 $config->{AUTO_INCLUDE} .= qq{\n#include "$share_dir/ppport.h"\n#include "$share_dir/openmp-simple.h"\n};
23 31 return $config;
24 }
25  
26 32 1;
27  
28 __END__
« blib/lib/OpenMP/test-runner.pl ↑ Summary