blib/lib/Data/HashMap/Shared/I16.pm

filter: Statementstmt 81.2% 13 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 80.9% 17 / 21 CC 3 SCAR 10.0
CC
3
Cov
81%
unimport
6.0
import
2.0
BEGIN
1.0
CRAP 2.7
↑ Summary blib/lib/Data/HashMap/Shared/I16S.pm »
1 package Data::HashMap::Shared::I16;
2 19 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 19 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 19 ▶use Data::HashMap::Shared;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 19 our $VERSION = '0.23';
6  
7 19 my @KEYWORDS = qw(
8 put get remove exists incr decr incr_by max min size keys values
9 items each iter_reset clear to_hash max_entries get_or_set put_ttl
10 max_size ttl cursor cursor_next cursor_seek ttl_remaining capacity
11 tombstones cursor_reset take pop shift drain flush_expired
12 flush_expired_partial mmap_size touch reserve stat_evictions
13 stat_expired stat_recoveries arena_used arena_cap add add_ttl
14 update_ttl update swap cas cas_take persist set_ttl
15 );
16  
17 8 ▶sub import {
Subroutine import: called CC=2 SCAR=6.9
18 8 $^H{__PACKAGE__ . "/shm_i16_$_"} = 1 for @KEYWORDS;
19 }
20  
21 0 ▶sub unimport {
Subroutine unimport: not called CC=2 SCAR=17.9
22 0 my $prefix = __PACKAGE__ . '/';
23 0 delete $^H{$_} for grep { index($_, $prefix) == 0 } CORE::keys(%^H);
24 }
25  
26 19 1;
27  
28 __END__
↑ Summary blib/lib/Data/HashMap/Shared/I16S.pm »