File Coverage

blib/lib/WebService/LiveJournal/RPC.pm
Criterion Covered Total %
statement 18 24 75.0
branch n/a
condition n/a
subroutine 6 8 75.0
pod 0 2 0.0
total 24 34 70.5


line stmt bran cond sub pod time code
1             package WebService::LiveJournal::RPC;
2              
3 1     1   3432 use strict;
  1         1  
  1         26  
4 1     1   4 use warnings;
  1         1  
  1         77  
5 1     1   4 use Exporter;
  1         0  
  1         37  
6 1     1   3 use RPC::XML;
  1         1  
  1         29  
7 1     1   3 use RPC::XML::ParserFactory;
  1         1  
  1         9  
8 1     1   26 use RPC::XML::Client;
  1         1  
  1         120  
9             our @ISA = qw/ Exporter /;
10             our @EXPORT_OK = qw/ xml2hashref xml2hash /;
11              
12             # ABSTRACT: RPC utilities for WebService::LiveJournal
13             our $VERSION = '0.08'; # VERSION
14              
15             my $parser = new RPC::XML::ParserFactory;
16              
17             sub xml2hashref
18             {
19 0     0 0   my $xml = shift;
20 0           my $response = $parser->parse($xml);
21 0           my $struct = $response->value;
22 0           my $hash = $struct->value;
23             }
24              
25 0     0 0   sub xml2hash { %{ xml2hashref(@_) } }
  0            
26              
27             1;
28              
29             __END__