Bitly/Result.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 96.1% 25 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Bitly/Result/HTTPError.pm ↑ Summary
1 package WebService::Bitly::Result;
2  
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use base qw(Class::Accessor::Fast);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 __PACKAGE__->mk_accessors(qw(
10 data
11 status_code
12 status_txt
13 ));
14  
15 12 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
16 12 my ($class, $result) = @_;
17 12 my $self = $class->SUPER::new($result);
18 }
19  
20 8 ▶sub is_error {
Subroutine is_error: called CC=1 SCAR=0.0
Pod undocumented
21 8 my $self = shift;
22  
23 8 return $self->status_code >= 400;
24 }
25  
26 2 1;
« Bitly/Result/HTTPError.pm ↑ Summary