Fourteen.pm

filter: Statementstmt 83.3% 20 / 24 Branchbran 25.0% 1 / 4 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 71.7% 28 / 39 CC 5 SCAR 16.5
CC
5
Cov
71%
import
9.4
BEGIN
1.0
BEGIN
1.0
CRAP 5.2
↑ Summary Sixteen.pm »
1 package Five::Fourteen;
2 1 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use feature ':5.14';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Five::X;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶sub import {
Subroutine import: called CC=5 SCAR=22.5
10 1 my $class = shift;
11  
12 1 warnings->import();
13 1 strict->import();
14 1 feature->import(':5.14');
15  
16 1 ▶ if (@_ && $_[0] eq ':experimental') {
Branch: 1 branch
BranchTrueFalseTotal
if (@_ and $_[0] eq ":experimental") 0 1 1
Condition33%1/3
@_ and $_[0] eq ":experimental"
!ll&&!rl&&r
100
MC/DC0%0/2
@_ and $_[0] eq ":experimental"
@_ $_[0] eq ":experimental"
Truth table33%1/3
A and B
A= @_B= $_[0] eq ":experimental"
ABresult
0X0
100
111
17 0 for my $version (experimental_versions()) {
18 0 ▶ next if $] < $version;
Branch: 1 branch
BranchTrueFalseTotal
if $] < $version 0 0 0
19 0 warnings->unimport(@{ experimental_warnings($version) });
20 }
21 }
22 }
23  
24 1 1;
25  
26 =head1 NAME
27  
28 Five::Fourteen - Enable 'strict', 'warnings' and 'features :5.14' in the calling code
29  
30 =head1 COPYRIGHT
31  
32 (c) MMXV - Abe Timmerman <abeltje@cpan.org>
33  
34 =cut
↑ Summary Sixteen.pm »