AnyEvent/FTP/Server/Context/FSRO.pm

filter: Statementstmt 76.1% 16 / 21 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 68.9% 20 / 29 SCAR 7.5
CC
2
Cov
70%
cmd_stor
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« AnyEvent/FTP/Server/UnambiguousResponseEncoder.pm ↑ Summary AnyEvent/FTP/Client/Site.pm »
1 package AnyEvent::FTP::Server::Context::FSRO;
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 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 extends 'AnyEvent::FTP::Server::Context::FSRW';
9  
10 # ABSTRACT: FTP Server client context class with read-only access
11 2 our $VERSION = '0.19'; # VERSION
12  
13  
14 sub cmd_stor
15 {
16 0 ▶ my($self, $con, $req) = @_;
Subroutine cmd_stor: not called CC=2 SCAR=17.9
Pod undocumented
17 0 ▶ unless(defined $self->data)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $self->data) { } 0 0 0
18 0 { $con->send_response(425 => 'Unable to build data connection') }
19 else
20 0 { $con->send_response(553 => "Permission denied") }
21 0 $self->done;
22 }
23  
24  
25 2 *cmd_appe = \&cmd_stor;
26  
27  
28 2 *cmd_stou = \&cmd_stor;
29 2 1;
30  
31 __END__
« AnyEvent/FTP/Server/UnambiguousResponseEncoder.pm ↑ Summary AnyEvent/FTP/Client/Site.pm »