Bitly/Entry.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 96.4% 27 / 28 CC 2 SCAR 2.5
CC
2
Cov
100%
is_error
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Bitly/Result/Validate.pm ↑ Summary Bitly/Result/Clicks.pm »
1 package WebService::Bitly::Entry;
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(Class::Accessor::Fast);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 __PACKAGE__->mk_accessors(qw(
10 error
11  
12 short_url
13 hash
14 global_hash
15 long_url
16 user_hash
17  
18 user_clicks
19 global_clicks
20  
21 url
22  
23 title
24 created_by
25  
26 referrer
27 referrer_app
28 clicks
29  
30 country
31  
32 day_start
33 ));
34  
35 18 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
36 18 my ($class, $entry) = @_;
37 18 my $self = $class->SUPER::new($entry);
38 }
39  
40 7 ▶sub is_error {
Subroutine is_error: called CC=2 SCAR=6.9
Pod undocumented
41 7 ▶ return shift->error || 0;
Condition100%2/2
(shift())->error || 0
l!l
61
MC/DC100%1/1
(shift())->error || 0
(shift())->error
Truth table100%2/2
A
A= (shift())->error
Aresult
11
00
42 }
43  
44 1 1;
« Bitly/Result/Validate.pm ↑ Summary Bitly/Result/Clicks.pm »