URI/http.pm

filter: Statementstmt 100% 24 / 24 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 1 / 1 totaltotal 100% 34 / 34 CC 2 SCAR 2.2
CC
2
Cov
100%
flags
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« URI/fax.pm ↑ Summary URI.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::http;
6 2 our $VERSION = '1.100850';
7 # ABSTRACT: Semantic data class for http URIs
8 2 ▶use parent qw(Data::Semantic::URI);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 __PACKAGE__->mk_scalar_accessors(qw(scheme));
10 2 ▶use constant REGEXP_KEYS => qw(URI HTTP);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use constant KEEP_KEYS => qw(
Subroutine BEGIN: called CC=1 SCAR=0.0
12 URI scheme host port abspath_full abspath_full_no_slash
13 abspath_no_query query
14 2 );
15  
16 4 ▶sub flags {
Subroutine flags: called CC=2 SCAR=6.9
Pod documented
17 4 my $self = shift;
18 4 my @flags = $self->SUPER::flags(@_);
19 4 ▶ push @flags => sprintf("-scheme => '%s'", $self->scheme) if $self->scheme;
Branch: 1 branch
BranchTrueFalseTotal
if $self->scheme 2 2 4
20 4 @flags;
21 }
22 2 1;
23  
24  
25 __END__
« URI/fax.pm ↑ Summary URI.pm »