AnyEvent/FTP/Client/Site.pm

filter: Statementstmt 100% 31 / 31 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 0.0% 0 / 1 totaltotal 93.0% 40 / 43 SCAR 6.9
CC
2
Cov
97%
AUTOLOAD
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« AnyEvent/FTP/Server/Context/FSRO.pm ↑ Summary AnyEvent/FTP/Client/Transfer.pm »
1 package AnyEvent::FTP::Client::Site;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 # ABSTRACT: Dispatcher for site specific ftp commands
8 2 our $VERSION = '0.19'; # VERSION
9  
10 sub new
11 {
12 1 ▶ my($class, $client) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
13 1 bless { client => $client }, $class;
14 }
15  
16 sub AUTOLOAD
17 {
18 3 ▶ our $AUTOLOAD;
Subroutine AUTOLOAD: called CC=2 SCAR=6.9
19 3 my $self = shift;
20 3 my $name = $AUTOLOAD;
21 3 $name =~ s/^.*://;
22 3 $name =~ s/_(.)/uc $1/eg;
23 3 my $class = join('::', qw( AnyEvent FTP Client Site ), ucfirst($name) );
24 3 ▶ eval qq{ use $class () };
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
25 3 ▶ die $@ if $@;
Branch: 1 branch
BranchTrueFalseTotal
if $@ 0 3 3
26 3 $class->new($self->{client});
27 }
28  
29 # don't autoload DESTROY
30 ▶sub DESTROY { }
Subroutine DESTROY: not called CC=1 SCAR=0.0
31  
32 2 1;
33  
34 __END__
« AnyEvent/FTP/Server/Context/FSRO.pm ↑ Summary AnyEvent/FTP/Client/Transfer.pm »