Bitly/Result/Info.pm

filter: Statementstmt 100% 22 / 22 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 50.0% 1 / 2 totaltotal 93.9% 31 / 33 CC 2 SCAR 2.4
CC
2
Cov
96%
results
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Bitly/Result/Expand.pm ↑ Summary Bitly/Result/Lookup.pm »
1 package WebService::Bitly::Result::Info;
2  
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use base qw(WebService::Bitly::Result);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use WebService::Bitly::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 1 my ($class, $result_info) = @_;
13 1 my $self = $class->SUPER::new($result_info);
14  
15 $self->{results}
16 1 = WebService::Bitly::Util->make_entries($self->data->{info});
17  
18 1 return $self;
19 }
20  
21 1 ▶sub results {
Subroutine results: called CC=2 SCAR=7.2
Pod undocumented
22 1 my $results = shift->{results};
23 1 ▶ return wantarray ? @$results : $results;
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 1 0 1
24 }
25  
26 1 1;
« Bitly/Result/Expand.pm ↑ Summary Bitly/Result/Lookup.pm »