Branch Coverage

blib/lib/Business/cXML.pm
Criterion Covered Total %
branch 48 56 85.7


line true false branch
194 1 13 if exists $options{'sender_callback'}
195 4 10 if exists $options{'handlers'}
256 2 1 if ref $callback eq "CODE"
307 54 7 unless $level <= $cxml->{'log_level'}
392 1 16 unless ($input)
396 0 1 if $err
403 1 15 unless (defined &blessed($req))
409 0 1 if $err
418 2 13 if (defined $self->{'sender_callback'})
424 0 2 if ($@)
428 0 0 if $err
431 1 1 if ($note) { }
438 0 1 if $err
443 1 13 unless (exists $self->{'routes'}{$req->type})
448 0 1 if $err
455 0 13 if ($@)
461 1 12 if $err
463 7 6 if ($res->status >= 500) { }
1 5 elsif ($res->status >= 400) { }
488 1 1 if defined $type
489 1 1 if defined $self->{'secret'}
514 5 1 if (ref $req)
517 1 4 if defined $err
529 4 1 if ($res->is_success) { }
532 2 2 unless (defined &blessed($msg))
534 1 1 $msg->[0] == 406 ? :
555 2 1 if defined $type
570 1 5 if defined $err