File Coverage

blib/lib/ZMQ/Constants/V3_1_2.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package ZMQ::Constants::V3_1_2;
2 1     1   4 use strict;
  1         2  
  1         25  
3 1     1   5 use ZMQ::Constants ();
  1         1  
  1         11  
4 1     1   898 use Storable ();
  1         3125  
  1         163  
5              
6             my %not_in_v3 = map { ($_ => 1) } qw(
7             ZMQ_MAX_VSM_SIZE
8             ZMQ_DELIMITER
9             ZMQ_VSM
10             ZMQ_MSG_MORE
11             ZMQ_MSG_SHARED
12             ZMQ_MSG_MASK
13             ZMQ_HWM
14             ZMQ_SWAP
15             ZMQ_RECOVERY_IVL_MSEC
16             ZMQ_NOBLOCK
17             );
18              
19             my $export_tags = Storable::dclone(\%ZMQ::Constants::EXPORT_TAGS);
20             $export_tags->{socket} = [
21             'ZMQ_FAIL_UNROUTABLE',
22             grep { ! $not_in_v3{$_} } @{ $export_tags->{socket} }
23             ];
24             $export_tags->{message} = [
25             grep { ! $not_in_v3{$_} } @{ $export_tags->{message} }
26             ];
27              
28             ZMQ::Constants::register_set(
29             '3.1.2' => (
30             tags => $export_tags,
31             )
32             );
33              
34             1;