blib/lib/Math/Float128/Constant.pm

filter: Statementstmt 100% 20 / 20 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 81.2% 26 / 32 SCAR 11.0
CC
3
Cov
88%
_issue_19550
3.2
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« blib/lib/Math/Float128.pm ↑ Summary Float128.xs »
1  
2 package Math::Float128::Constant;
3 23 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 23 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 23 require Exporter;
7 23 *import = \&Exporter::import;
8 23 require DynaLoader;
9  
10 23 our $VERSION = '0.16';
11 #$VERSION = eval $VERSION;
12 23 Math::Float128::Constant->DynaLoader::bootstrap($VERSION);
13  
14 23 @Math::Float128::Constant::EXPORT = ();
15 23 @Math::Float128::Constant::EXPORT_OK = ();
16  
17 23 ▶sub dl_load_flags {0} # Prevent DynaLoader from complaining and croaking
Subroutine dl_load_flags: called CC=1 SCAR=0.0
Pod undocumented
18  
19 sub _issue_19550 { # https://github.com/Perl/perl5/issues/19550
20 23 ▶ my $inf = 999 ** (999 ** 999);
Subroutine _issue_19550: called CC=3 SCAR=11.8
21 23 my $discard = "$inf";
22 23 my $inf_copy = $inf;
23 # Using Math::Float128::Constant::_is_NOK_and_POK():
24 23 ▶ return 1
Branch: 1 branch
BranchTrueFalseTotal
if not _is_NOK_and_POK($inf) and _is_NOK_and_POK($inf_copy) 0 23 23
Condition33%1/3
not _is_NOK_and_POK($inf) and _is_NOK_and_POK($inf_copy)
!ll&&!rl&&r
0230
MC/DC0%0/2
not _is_NOK_and_POK($inf) and _is_NOK_and_POK($inf_copy)
not _is_NOK_and_POK($inf) _is_NOK_and_POK($inf_copy)
Truth table33%1/3
not(A) and B
A= not _is_NOK_and_POK($inf)B= _is_NOK_and_POK($inf_copy)
ABresult
0X0
100
111
25 if(!_is_NOK_and_POK($inf) && _is_NOK_and_POK($inf_copy));
26 23 return 0;
27 }
28  
29 23 1;
« blib/lib/Math/Float128.pm ↑ Summary Float128.xs »