File Coverage

blib/lib/SRS/EPP/Command/Logout.pm
Criterion Covered Total %
statement 6 12 50.0
branch n/a
condition n/a
subroutine 2 5 40.0
pod n/a
total 8 17 47.0


line stmt bran cond sub pod time code
1              
2             package SRS::EPP::Command::Logout;
3             {
4             $SRS::EPP::Command::Logout::VERSION = '0.22';
5             }
6              
7 1     1   2968 use Moose;
  1         2  
  1         9  
8             extends 'SRS::EPP::Command';
9              
10 1     1   6677 use MooseX::Params::Validate;
  1         2  
  1         10  
11              
12             sub action {
13 0     0     "logout";
14             }
15              
16 0     0     sub simple {1}
17              
18             sub process {
19 0     0     my $self = shift;
20            
21 0           my ( $session ) = pos_validated_list(
22             \@_,
23             { isa => 'SRS::EPP::Session' },
24             );
25            
26 0           $session->shutdown;
27 0           $self->make_response(code => 1500);
28             }
29              
30             1;