line |
true |
false |
branch |
34
|
30 |
0 |
if $DEFAULT_REQUEST_HEADERS and $mo->can('prepare_request') |
41
|
2 |
32 |
unless defined $map |
44
|
4 |
28 |
if (ref $req eq 'HTTP::Request') { } |
|
20 |
8 |
elsif (ref $req eq '') { } |
|
4 |
4 |
elsif (ref $req eq 'Regexp') { } |
|
4 |
0 |
elsif (ref $req eq 'CODE') { } |
45
|
4 |
0 |
if $DEFAULT_REQUEST_HEADERS and $mo->can('prepare_request') |
51
|
2 |
2 |
unless $dd_in->Dump eq $dd->Dump |
53
|
8 |
12 |
unless $in_req->uri eq $req |
55
|
2 |
2 |
unless $in_req->uri =~ /$req/ |
57
|
2 |
2 |
unless &$req($in_req) |
66
|
25 |
5 |
if (ref $matched_resp eq 'HTTP::Response') { } |
|
5 |
0 |
elsif (ref $matched_resp eq 'CODE') { } |
81
|
3 |
17 |
unless (defined $req and defined $resp) |
84
|
1 |
16 |
unless (ref($req) =~ /^(HTTP::Request|Regexp|CODE|)$/) |
87
|
1 |
15 |
unless (ref($resp) =~ /^(HTTP::Response|CODE)$/) |
100
|
0 |
2 |
unless defined $index and $index =~ /^\d+$/ |
101
|
0 |
2 |
unless ($$mo{'_maps'}) |
105
|
0 |
2 |
if ($index < 0 or $index > scalar(@{$$mo{'_maps'};}) - 1) |