blib/lib/File/Map.pm

filter: Statementstmt 100% 28 / 28 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 35 / 35 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/File/Map.xs ↑ Summary lib/File/mmap-compat.c »
1 package File::Map;
2 7 $File::Map::VERSION = '0.71';
3 # This software is copyright (c) 2008, 2009, 2010, 2011, 2012 by Leon Timmermans <leont@cpan.org>.
4 #
5 # This is free software; you can redistribute it and/or modify it under
6 # the same terms as perl itself.
7  
8 7 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 7 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 7 ▶use Sub::Exporter::Progressive 0.001005 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
13 7 ▶use XSLoader ();
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 7 XSLoader::load('File::Map', File::Map->VERSION);
16  
17 7 my %export_data = (
18 'map' => [qw/map_handle map_file map_anonymous unmap sys_map/],
19 extra => [qw/remap sync pin unpin advise protect/],
20 'lock' => [qw/wait_until notify broadcast lock_map/],
21 constants => [qw/PROT_NONE PROT_READ PROT_WRITE PROT_EXEC MAP_ANONYMOUS MAP_SHARED MAP_PRIVATE MAP_ANON MAP_FILE/]
22 );
23  
24 7 my (@export_ok, %export_tags);
25  
26 7 ▶while (my ($category, $functions) = each %export_data) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %export_data) 28 7 35
27 28 for my $function (grep { defined &{$_} } @{$functions}) {
28 147 push @export_ok, $function;
29 147 push @{ $export_tags{$category} }, $function;
30 }
31 }
32  
33 7 Sub::Exporter::Progressive->import(-setup => { exports => \@export_ok, groups => \%export_tags });
34  
35 7 1;
36  
37 #ABSTRACT: Memory mapping made simple and safe.
38  
39 __END__
« lib/File/Map.xs ↑ Summary lib/File/mmap-compat.c »