File Coverage

blib/lib/WebService/Hydra/Exception/InvalidLoginChallenge.pm
Criterion Covered Total %
statement 16 18 88.8
branch n/a
condition 4 4 100.0
subroutine 5 6 83.3
pod 0 2 0.0
total 25 30 83.3


line stmt bran cond sub pod time code
1             package WebService::Hydra::Exception::InvalidLoginChallenge;
2 5     5   261299 use strict;
  5         12  
  5         227  
3 5     5   47 use warnings;
  5         12  
  5         295  
4 5     5   848 use Object::Pad;
  5         13274  
  5         40  
5              
6             our $VERSION = '0.005'; ## VERSION
7              
8 1     1   882 class WebService::Hydra::Exception::InvalidLoginChallenge :isa(WebService::Hydra::Exception) {
  1         22  
  1         158  
9             field $redirect_to :param :reader = undef;
10              
11 0     0 0 0 sub BUILDARGS {
  0         0  
12 3     3 0 1939 my ($class, %args) = @_;
13              
14 3   100     19 $args{message} //= 'Invalid Login Challenge';
15 3   100     17 $args{category} //= 'client';
16              
17 3         43 return %args;
18             }
19             }
20              
21             1;