File Coverage

lib/Beekeeper/JSONRPC.pm
Criterion Covered Total %
statement 18 26 69.2
branch n/a
condition n/a
subroutine 6 10 60.0
pod 0 4 0.0
total 24 40 60.0


line stmt bran cond sub pod time code
1             package Beekeeper::JSONRPC;
2              
3 11     11   1102 use strict;
  11         22  
  11         425  
4 11     11   73 use warnings;
  11         22  
  11         902  
5              
6             our $VERSION = '0.08';
7              
8 11     11   5008 use Beekeeper::JSONRPC::Request;
  11         28  
  11         393  
9 11     11   4901 use Beekeeper::JSONRPC::Notification;
  11         26  
  11         418  
10 11     11   4944 use Beekeeper::JSONRPC::Response;
  11         34  
  11         403  
11 11     11   4980 use Beekeeper::JSONRPC::Error;
  11         39  
  11         1494  
12              
13              
14             sub request {
15 0     0 0   my $class = shift;
16 0           Beekeeper::JSONRPC::Request->new(@_);
17             }
18              
19             sub notification {
20 0     0 0   my $class = shift;
21 0           Beekeeper::JSONRPC::Notification->new(@_);
22             }
23              
24             sub response {
25 0     0 0   my $class = shift;
26 0           Beekeeper::JSONRPC::Response->new(@_);
27             }
28              
29             sub error {
30 0     0 0   my $class = shift;
31 0           Beekeeper::JSONRPC::Error->new(@_);
32             }
33              
34             1;
35              
36             __END__