File Coverage

blib/lib/Devel/AssertOS/HWCapabilities/Int32.pm
Criterion Covered Total %
statement 16 17 94.1
branch n/a
condition n/a
subroutine 6 7 85.7
pod n/a
total 22 24 91.6


line stmt bran cond sub pod time code
1             package Devel::AssertOS::HWCapabilities::Int32;
2              
3 2     2   15 use strict;
  2         6  
  2         71  
4 2     2   10 use warnings;
  2         5  
  2         63  
5 2     2   10 no warnings 'redefine';
  2         5  
  2         69  
6              
7 2     2   11 use Devel::CheckOS;
  2         4  
  2         94  
8 2     2   12 use Config;
  2         4  
  2         255  
9              
10             our $VERSION = '1.0';
11              
12 2     2   185 sub os_is { $Config{ivsize} == 4 }
13              
14 0     0     sub expn { "Your perl was built with support 32 bit integers" }
15              
16             Devel::CheckOS::die_unsupported() unless(os_is());
17              
18             =head1 COPYRIGHT and LICENCE
19              
20             Copyright 2007 - 2022 David Cantrell
21              
22             This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.
23              
24             =cut
25              
26             1;