Bitly/Result/Validate.pm

filter: Statementstmt 100% 18 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 92.8% 26 / 28 CC 2 SCAR 2.6
CC
2
Cov
95%
is_valid
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Bitly/Util.pm ↑ Summary Bitly/Entry.pm »
1 package WebService::Bitly::Result::Validate;
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 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
10 1 my ($class, $result_validate) = @_;
11 1 my $self = $class->SUPER::new($result_validate);
12 }
13  
14 1 ▶sub is_valid {
Subroutine is_valid: called CC=2 SCAR=7.1
Pod undocumented
15 1 my $self = shift;
16 1 ▶ return 0 if $self->is_error;
Branch: 1 branch
BranchTrueFalseTotal
if $self->is_error 0 1 1
17 1 return $self->data->{valid};
18 }
19  
20 1 1;
« Bitly/Util.pm ↑ Summary Bitly/Entry.pm »