URI/ftp.pm

filter: Statementstmt 100% 25 / 25 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 1 / 1 totaltotal 100% 37 / 37 CC 3 SCAR 5.1
CC
3
Cov
100%
flags
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.7
↑ Summary URI/fax.pm »
1 2 ▶use 5.008;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package Data::Semantic::URI::ftp;
6 2 our $VERSION = '1.100850';
7 # ABSTRACT: Semantic data class for ftp URIs
8 2 ▶use parent qw(Data::Semantic::URI);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 __PACKAGE__
10 ->mk_scalar_accessors(qw(type))
11 ->mk_boolean_accessors(qw(password));
12 2 ▶use constant REGEXP_KEYS => qw(URI FTP);
Subroutine BEGIN: called CC=1 SCAR=0.0
13 2 ▶use constant KEEP_KEYS => qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
14 URI scheme username password host port abspath_full abspath_full_no_slash
15 abspath_full_no_slash_no_query type
16 2 );
17  
18 3 ▶sub flags {
Subroutine flags: called CC=3 SCAR=11.0
Pod documented
19 3 my $self = shift;
20 3 my @flags = $self->SUPER::flags(@_);
21 3 ▶ push @flags => sprintf("-type => '%s'", $self->type) if $self->type;
Branch: 1 branch
BranchTrueFalseTotal
if $self->type 1 2 3
22 3 ▶ push @flags => '-password' if $self->password;
Branch: 1 branch
BranchTrueFalseTotal
if $self->password 1 2 3
23 3 @flags;
24 }
25 2 1;
26  
27  
28 __END__
↑ Summary URI/fax.pm »