Core/Handler/CommandHandler/RegisterForUpdateHandler.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 40 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
process
2.0
BEGIN
2.0
CRAP 2.0
1 package Javonet::Core::Handler::CommandHandler::RegisterForUpdateHandler;
2 use strict;
3 use warnings FATAL => 'all';
4 use lib 'lib';
5 use Moose;
6 use Nice::Try;
7 use aliased 'Javonet::Core::Exception::Exception' => 'Exception';
8 extends 'Javonet::Core::Handler::CommandHandler::AbstractCommandHandler';
9
10 sub new {
11 my $class = shift;
12 my $self = {
13 required_parameters_count => 1
14 };
15 return bless $self, $class;
16 }
17
18 sub process {
19 my ($self, $command) = @_;
20 try {
21 return $command->{payload}[0];
22 }
23 catch ( $e ) {
24 return Exception->new($e);
25 }
26 }
27
28 no Moose;
29 1;