| 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
MC/DC100%1/1
(shift())->error || 0
(shift())->error
Truth table100%2/2
A
A= (shift())->error
| |||||||||||||
| 42 | } | ||||||||||||
| 43 | |||||||||||||
| 44 | 1 | 1; | |||||||||||