Simple/Response.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Simple/Parser/XML/Feed.pm ↑ Summary
1 # $Id$
2  
3 package WebService::Simple::Response;
4 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 11 ▶use base qw(HTTP::Response);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 11 our $VERSION = "0.26";
9  
10 38 ▶sub new_from_response {
Subroutine new_from_response: called CC=1 SCAR=0.0
Pod documented
11  
12 # XXX hack. This probably should be changed...
13 38 my $class = shift;
14 38 my %args = @_;
15 38 my $self = bless $args{response}, $class;
16 38 $self->{__parser} = $args{parser};
17 38 return $self;
18 }
19  
20 1 ▶sub parse_response {
Subroutine parse_response: called CC=1 SCAR=0.0
Pod documented
21 1 my $self = shift;
22 1 return $self->{__parser}->parse_response( $self );
23 }
24  
25 11 *parse_xml = \&parse_response;
26  
27 11 1;
28  
29 __END__
« Simple/Parser/XML/Feed.pm ↑ Summary