t/info.pl

filter: Statementstmt 100% 25 / 25 Branchbran 83.3% 5 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 97.3% 36 / 37 CC 1 SCAR 0.0
CC
1
Cov
97%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Sys/Cmd/Process.pm ↑ Summary
1 #!/usr/bin/env perl
2 2 ▶use v5.18;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use Cwd qw( cwd );
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Encode::Locale 'decode_argv';
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Encode 'decode';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 decode_argv(Encode::FB_CROAK);
10  
11 2 binmode STDIN, ':encoding(locale)';
12 2 binmode STDOUT, ':encoding(locale)';
13 2 binmode STDERR, ':encoding(locale)';
14  
15 print STDERR decode( locale => $ENV{SYS_CMD_ERR} ), "\n"
16 2 ▶ if exists $ENV{SYS_CMD_ERR};
Branch: 1 branch
BranchTrueFalseTotal
if exists $ENV{"SYS_CMD_ERR"} 1 1 2
17  
18 2 $Data::Dumper::Sortkeys++;
19 print Data::Dumper->Dump(
20 [
21 {
22 argv => \@ARGV,
23 env => \%ENV,
24 cwd => fc( cwd() ),
25 2 ▶ input => $ENV{SYS_CMD_INPUT} ? join( '', <STDIN> ) : '',
Branch: 1 branch
BranchTrueFalseTotal
$ENV{'SYS_CMD_INPUT'} ? : 1 1 2
26 pid => $$,
27 }
28 ],
29 ['info']
30 );
31  
32 2 ▶exit $ENV{SYS_CMD_EXIT} if exists $ENV{SYS_CMD_EXIT};
Branch: 1 branch
BranchTrueFalseTotal
if exists $ENV{"SYS_CMD_EXIT"} 0 2 2
« blib/lib/Sys/Cmd/Process.pm ↑ Summary