SFTP/Util.pm

filter: Statementstmt 95.0% 19 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 86.2% 25 / 29 SCAR 7.0
CC
2
Cov
86%
fx2txt
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« SFTP/Buffer.pm ↑ Summary
1 # $Id: Util.pm,v 1.4 2001/05/22 04:28:00 btrott Exp $
2  
3 package Net::SFTP::Util;
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use Net::SFTP::Constants qw( :status );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use vars qw( @ISA @EXPORT_OK );
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 @ISA = qw( Exporter );
11 2 @EXPORT_OK = qw( fx2txt );
12  
13 2 ▶use vars qw( %ERRORS );
Subroutine BEGIN: called CC=1 SCAR=0.0
14 2 %ERRORS = (
15 SSH2_FX_OK() => "No error",
16 SSH2_FX_EOF() => "End of file",
17 SSH2_FX_NO_SUCH_FILE() => "No such file or directory",
18 SSH2_FX_PERMISSION_DENIED() => "Permission denied",
19 SSH2_FX_FAILURE() => "Failure",
20 SSH2_FX_BAD_MESSAGE() => "Bad message",
21 SSH2_FX_NO_CONNECTION() => "No connection",
22 SSH2_FX_CONNECTION_LOST() => "Connection lost",
23 SSH2_FX_OP_UNSUPPORTED() => "Operation unsupported",
24 );
25  
26 0 ▶sub fx2txt { exists $ERRORS{$_[0]} ? $ERRORS{$_[0]} : "Unknown status" }
Subroutine fx2txt: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
exists $Net::SFTP::Util::ERRORS{$_[0]} ? : 0 0 0
27  
28 2 1;
29 __END__
« SFTP/Buffer.pm ↑ Summary