File Coverage

blib/lib/WebService/Hydra/Exception/InvalidLoginRequest.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::InvalidLoginRequest;
2 5     5   175321 use strict;
  5         13  
  5         227  
3 5     5   30 use warnings;
  5         36  
  5         336  
4 5     5   879 use Object::Pad;
  5         13385  
  5         33  
5              
6             our $VERSION = '0.005'; ## VERSION
7              
8 1     1   843 class WebService::Hydra::Exception::InvalidLoginRequest :isa(WebService::Hydra::Exception) {
  1         3  
  1         99  
9             field $redirect_to :param :reader = undef;
10              
11 0     0 0 0 sub BUILDARGS {
  0         0  
12 3     3 0 1910 my ($class, %args) = @_;
13              
14 3   100     20 $args{message} //= 'Invalid Login Request';
15 3   100     14 $args{category} //= 'client';
16              
17 3         58 return %args;
18             }
19             }
20              
21             1;