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 36 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 36 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 36 our $ARCHITECTURE;
7  
8 96 ▶sub get_architecture_name {
Subroutine get_architecture_name: called CC=3 SCAR=11.1
Pod undocumented
9 96 ▶ return $ARCHITECTURE ||= do {
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
60360
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 36 require Config;
11 36 Config->import();
12  
13 36 my $name = $Config::Config{'archname'};
14 36 my $dash_at = index($name, '-');
15 36 ▶ if ($dash_at != -1) {
Branch: 1 branch
BranchTrueFalseTotal
if ($dash_at != -1) 36 0 36
16 36 substr($name, $dash_at) = q<>;
17 }
18  
19 36 $name;
20 };
21 }
22  
23 36 1;
« Perl/inotify.pm ↑ Summary Perl/Base/TimerEventFD.pm »