Zenoss/Router/Messaging.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 2 SCAR 12.8
CC
2
Cov
0%
messaging_getUserMessages
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.6
1 package Zenoss::Router::Messaging;
2 use strict;
3  
4 use Moose::Role;
5 requires '_router_request', '_check_args';
6  
7 #**************************************************************************
8 # Attributes
9 #**************************************************************************
10 has 'MESSAGING_LOCATION' => (
11 is => 'ro',
12 isa => 'Str',
13 default => 'zport/dmd/messaging_router',
14 init_arg => undef,
15 );
16  
17 has 'MESSAGING_ACTION' => (
18 is => 'ro',
19 isa => 'Str',
20 default => 'MessagingRouter',
21 init_arg => undef,
22 );
23  
24 #**************************************************************************
25 # Public Functions
26 #**************************************************************************
27 #======================================================================
28 # messaging_getUserMessages
29 #======================================================================
30 sub messaging_getUserMessages {
31 my ($self, $args) = @_;
32 $args = {} if !$args;
33  
34 # Argument definition
35 my $definition = {};
36  
37 # Check the args
38 $self->_check_args($args, $definition);
39  
40 # Route the request
41 $self->_router_request(
42 {
43 location => $self->MESSAGING_LOCATION,
44 action => $self->MESSAGING_ACTION,
45 method => 'getUserMessages',
46 data => [$args],
47 }
48 );
49 } # END messaging_getUserMessages
50  
51 #**************************************************************************
52 # Package end
53 #**************************************************************************
54 no Moose;
55  
56 1;
57  
58 __END__