blib/lib/Test/Mock/LWP/Dispatch.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 10 | 19 | 52.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
32 | 0 | 0 | 33 | $DEFAULT_REQUEST_HEADERS and $mo->can('prepare_request') |
43 | 0 | 0 | 4 | $DEFAULT_REQUEST_HEADERS and $mo->can('prepare_request') |
79 | 2 | 19 | 0 | defined $req and defined $resp |
110 | 0 | 3 | 0 | defined $index and $index =~ /^\d+$/ |
line | l | !l | condition |
---|---|---|---|
35 | 7 | 26 | $Test::Mock::LWP::Dispatch::mock_ua->{'_maps'} || [] |
36 | 31 | 2 | $mo->{'_maps'} || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
115 | 0 | 0 | 3 | $index < 0 or $index > scalar(@{$mo->{'_maps'};}) - 1 |