/usr/local/lib/perl5/5.44.0/x86_64-linux/IO.pm

filter: Statementstmt 68.1% 15 / 22 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 54.2% 19 / 35 CC 5 SCAR 28.4
CC
5
Cov
50%
import
30.0
BEGIN
1.0
BEGIN
1.0
CRAP 17.1
« /usr/local/lib/perl5/5.44.0/x86_64-linux/Encode/Alias.pm ↑ Summary lib/Skilletor/Report.pm »
1 #
2  
3 package IO;
4  
5 7 ▶use XSLoader ();
Subroutine BEGIN: called CC=1 SCAR=0.0
6 7 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 7 our $VERSION = "1.56";
11 7 XSLoader::load 'IO', $VERSION;
12  
13 0 ▶sub import {
Subroutine import: not called CC=5 SCAR=34.0
14 0 shift;
15  
16 0 ▶ warnings::warnif('deprecated', qq{Parameterless "use IO" deprecated})
Branch: 1 branch
BranchTrueFalseTotal
if @_ == 0 0 0 0
17 if @_ == 0 ;
18
19 0 ▶ my @l = @_ ? @_ : qw(Handle Seekable File Pipe Socket Dir);
Branch: 1 branch
BranchTrueFalseTotal
@_ ? : 0 0 0
20  
21 0 local @INC = @INC;
22 0 ▶ pop @INC if $INC[-1] eq '.';
Branch: 1 branch
BranchTrueFalseTotal
if $INC[-1] eq "." 0 0 0
23 0 ▶ eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l)
Branch: 1 branch
BranchTrueFalseTotal
eval join("", map({'require IO::' . (/(\w+)/)[0] . ";\n";} @l)) or croak($@) 0 0 0
24 or croak $@;
25 }
26  
27 7 1;
28  
29 __END__
« /usr/local/lib/perl5/5.44.0/x86_64-linux/Encode/Alias.pm ↑ Summary lib/Skilletor/Report.pm »