Branch Coverage

blib/lib/Net/SIP/Request.pm
Criterion Covered Total %
branch 26 46 56.5


line true false branch
130 72 2 unless my $v = scalar $self->get_header($_)
159 12 0 unless my $v = scalar $self->get_header($_)
188 0 64 defined $_[0] && ref $_[0] ? :
189 1 63 unless defined $msg
190 19 45 $args ? :
223 3 0 if (ref $user2pass eq 'ARRAY' and not ref $user2pass->[0]) { }
0 0 elsif (ref $user2pass eq 'HASH') { }
240 3 3 if (my(@auth) = $response->get_header_hashval($req))
245 3 0 unless ($existing_auth)
254 0 3 if ($$existing_auth{join "\000", @auth})
263 0 3 if (lc $a->{'data'} ne 'digest' or $h->{'algorithm'} and lc $h->{'algorithm'} ne 'md5' or $h->{'qop'} and not $h->{'qop'} =~ /(?:^|,\s*)auth(?:$|,)/i)
273 3 0 $default_upw ? :
0 3 $realm2upw ? :
0 3 $cb_upw ? :
287 0 3 if defined $h->{'opaque'}
290 0 3 if ($h->{'qop'}) { }
316 0 3 if defined $digest{'opaque'}
317 0 3 if defined $digest{'cnonce'}
318 0 3 if defined $digest{'qop'}
319 0 3 if defined $digest{'nc'}
321 3 0 if defined $h->{'algorithm'}
328 0 3 unless $auth
332 3 0 if (defined $1 and $1 <= $rseq)