Perl/Constants.pm

filter: Statementstmt 100% 16 / 16 Branchbran 50.0% 1 / 2 Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 81.4% 22 / 27 CC 3 SCAR 8.0
CC
3
Cov
90%
get_architecture_name
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« Perl/inotify.pm ↑ Summary Perl/Base/TimerEventFD.pm »
1 package Linux::Perl::Constants;
2  
3 44 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 44 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 44 our $ARCHITECTURE;
7  
8 sub get_architecture_name {
9 120 ▶ return $ARCHITECTURE ||= do {
Subroutine get_architecture_name: called CC=3 SCAR=11.1
Pod undocumented
Condition66%2/3
$Linux::Perl::Constants::ARCHITECTURE ||= do { require Config; "Config"->import; my $name = $Config::Config{"archname"}; my $dash_at = index($name, "-"); if ($dash_at != -1) { substr($name, $dash_at) = ""; } ; $name }
l!l&&r!l&&!r
76440
MC/DC0%0/2
$Linux::Perl::Constants::ARCHITECTURE ||= do { require Config; "Config"->import; my $name = $Config::Config{"archname"}; my $dash_at = index($name, "-"); if ($dash_at != -1) { substr($name, $dash_at) = ""; } ; $name }
$Linux::Perl::Constants::ARCHITECTURE do { require Config; "Config"->import; my $name = $Config::Config{"archname"}; my $dash_at = index($name, "-"); if ($dash_at != -1) { substr($name, $dash_at) = ""; } ; $name }
Truth table66%2/3
A ||= B
A= $Linux::Perl::Constants::ARCHITECTUREB= do { require Config; "Config"->import; my $name = $Config::Config{"archname"}; my $dash_at = index($name, "-"); if ($dash_at != -1) { substr($name, $dash_at) = ""; } ; $name }
ABresult
1X1
011
000
10 44 require Config;
11 44 Config->import();
12  
13 44 my $name = $Config::Config{'archname'};
14 44 my $dash_at = index($name, '-');
15 44 ▶ if ($dash_at != -1) {
Branch: 1 branch
BranchTrueFalseTotal
if ($dash_at != -1) 44 0 44
16 44 substr($name, $dash_at) = q<>;
17 }
18  
19 44 $name;
20 };
21 }
22  
23 44 1;
« Perl/inotify.pm ↑ Summary Perl/Base/TimerEventFD.pm »