Branch Coverage

blib/lib/Business/cXML/Transmission.pm
Criterion Covered Total %
branch 101 102 99.0


line true false branch
107 29 23 if ($input) { }
109 3 26 unless $input =~ /^\s*</u
113 1 28 if $@
118 2 26 if ($@)
122 2 0 if $@
164 26 23 unless defined $self->{'_from'}
165 26 23 unless defined $self->{'_to'}
166 26 23 unless defined $self->{'_sender'}
175 6 20 if exists $msg->{'deploymentMode'} and $msg->{'deploymentMode'} eq "test"
176 2 24 if exists $msg->{'inReplyTo'}
180 4 76 if ($_->nodeName eq 'Status') { }
25 51 elsif ($_->nodeType == 1) { }
188 5 21 if $className eq "Message"
189 18 8 if $className eq "Request"
190 3 23 if $className eq "Response"
192 4 22 if ($status) { }
204 27 44 if defined $self->{'_payload'}
207 18 26 if $self->is_request
208 18 26 if $self->is_response
254 1 5 if exists $args{'submit_button'}
256 1 5 if defined $args{'target'}
259 1 5 if defined $err
288 3 38 if ($@)
297 4 41 if defined $self->{'string'}
302 21 20 unless ($self->is_response)
306 12 9 if $self->is_message
313 12 29 if $self->is_message
314 9 32 if $self->is_request
315 20 21 if $self->is_response
317 3 18 $self->{'test'} ? :
21 20 unless $self->is_response
318 2 10 if $self->is_message and $self->{'_inreplyto'}
321 21 20 if ($self->is_response or $self->is_message and $self->{'status'}{'code'} != 200)
330 13 28 if $self->{'status'}{'code'} >= 300 or $self->{'status'}{'description'} eq "Pong!"
332 18 10 if (ref $self->{'_payload'})
426 1 54 if (ref $_[1]) { }
4 50 elsif (%props) { }
437 1 66 if (ref $_[1]) { }
4 62 elsif (%props) { }
447 1 68 if (ref $_[1]) { }
1 67 elsif (%props) { }
463 14 10 $test ? :
24 22 if @_ > 1
491 15 2 if @_ > 1
511 3 124 if ($bool)
520 2 85 if ($bool)
529 17 208 if ($bool)
546 1 1 if (defined $lang)
565 5 72 if (defined $type)
751 53 19 if ($code)
752 52 1 if (exists $CXML_STATUS_CODES{$code}) { }