Object.pm

filter: Statementstmt 55.5% 10 / 18 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 44.8% 13 / 29 CC 3 SCAR 13.5
CC
3
Cov
45%
bucket_name
6.0
key
6.0
BEGIN
1.0
CRAP 3.9
« Client.pm ↑ Summary Bucket.pm »
1 package Net::STF::Object;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use URI;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 use Class::Accessor::Lite
5 1 ▶ new => 1,
Subroutine BEGIN: called CC=1 SCAR=0.0
6 rw => [ qw(
7 url
8 content
9 ) ]
10 1 ;
11  
12 0 ▶sub bucket_name {
Subroutine bucket_name: not called CC=2 SCAR=17.9
Pod undocumented
13 0 my $self = shift;
14 0 ▶ if (URI->new($self->url)->path =~ m{^/([^/]+)}) {
Branch: 1 branch
BranchTrueFalseTotal
if ("URI"->new($self->url)->path =~ m[^/([^/]+)]) 0 0 0
15 0 return $1;
16 }
17 0 return ();
18 }
19  
20 0 ▶sub key {
Subroutine key: not called CC=2 SCAR=17.9
Pod undocumented
21 0 my $self = shift;
22 0 ▶ if (URI->new($self->url)->path =~ m{^/[^/]+/(.*)$}) {
Branch: 1 branch
BranchTrueFalseTotal
if ("URI"->new($self->url)->path =~ m[^/[^/]+/(.*)$]) 0 0 0
23 0 return $1;
24 }
25 0 return ();
26 }
27  
28 1 1;
29  
30 __END__
« Client.pm ↑ Summary Bucket.pm »