blib/lib/Math/Int64/die_on_overflow.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« strtoint64.h ↑ Summary c_api.h »
1 package Math::Int64::die_on_overflow;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Math::Int64 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶sub import {
Subroutine import: called CC=1 SCAR=0.0
9 1 require Math::Int64;
10 1 Math::Int64::_set_may_die_on_overflow(1);
11 1 $^H{'Math::Int64::die_on_overflow'} = 1;
12 1 goto &Math::Int64::_check_pragma_compatibility;
13 }
14  
15  
16 1 ▶sub unimport {
Subroutine unimport: called CC=1 SCAR=0.0
17 1 undef $^H{'Math::Int64::die_on_overflow'}
18 }
19  
20 1 1;
21  
22 # ABSTRACT: catch overflows when using Math::Int64
23  
24 __END__
« strtoint64.h ↑ Summary c_api.h »