AnyEvent/FTP/Request.pm

filter: Statementstmt 77.2% 17 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 70.0% 7 / 10 Podpod 80.0% 4 / 5 totaltotal 75.6% 28 / 37 SCAR 0.1
CC
1
Cov
77%
raw
2.0
as_string
2.0
BEGIN
1.1
CRAP 1.0
« AnyEvent/FTP/Client/Site/Proftpd.pm ↑ Summary AnyEvent/FTP/Server/Role/Old.pm »
1 package AnyEvent::FTP::Request;
2  
3 25 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 25 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 25 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 25 ▶use overload '""' => sub { shift->as_string }, bool => sub { 1 }, fallback => 1;
Subroutine BEGIN: called CC=1 SCAR=0.6
Subroutine __ANON__: not called CC=1 SCAR=0.6
7  
8 # ABSTRACT: Request class for asynchronous ftp server
9 25 our $VERSION = '0.19'; # VERSION
10  
11  
12 sub new
13 {
14 677 ▶ my($class, $cmd, $args, $raw) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
15 677 bless { command => $cmd, args => $args, raw => $raw }, $class;
16 }
17  
18  
19 678 ▶sub command { shift->{command} }
Subroutine command: called CC=1 SCAR=0.0
Pod documented
20  
21  
22 567 ▶sub args { shift->{args} }
Subroutine args: called CC=1 SCAR=0.0
Pod documented
23  
24  
25 0 ▶sub raw { shift->{raw} }
Subroutine raw: not called CC=1 SCAR=6.9
Pod documented
26  
27  
28 sub as_string
29 {
30 0 ▶ my $self = shift;
Subroutine as_string: not called CC=1 SCAR=6.9
Pod documented
31 0 join ' ', $self->command, $self->args;
32 }
33  
34 25 1;
35  
36 __END__
« AnyEvent/FTP/Client/Site/Proftpd.pm ↑ Summary AnyEvent/FTP/Server/Role/Old.pm »