Branch Coverage

blib/lib/Moxy.pm
Criterion Covered Total %
branch 13 50 26.0


line true false branch
63 0 11 if ($$config{'global'}{'plugins'})
118 0 0 if blessed $response and $response->isa('HTTP::Response')
129 2 0 $base =~ m[/$] ? :
158 10 1 if (my $attr = $node->attr($attr_name))
159 1 9 if $attr =~ /^mailto:/
160 1 8 if ($attr =~ /^tel:([0-9-]+)$/) { }
168 8 0 if $base_url
169 8 0 $base =~ m[/$] ? :
191 12 12 ref $elm ? :
196 12 0 unless $result =~ /<\s*html/
219 0 0 if ($state_type eq 'Cookie') { }
232 0 0 unless my $postfix = $$conf{'store'}{'module'}
234 0 0 unless $klass->require
239 0 0 if ($state->isa('Moxy::Session::State::BasicAuth') and not $auth) { }
284 0 0 if ($url) { }
293 0 0 if ($res->code == 302) { }
298 0 0 if (not defined $location->scheme) { }
311 0 0 if ($uri->port != 80 and $location->port != $uri->port)
325 0 0 if ($content_type =~ /html/i) { }
0 0 elsif ($content_type =~ m[text/css]) { }
379 0 0 if $u->port != 80
394 0 0 if ($mobile_attribute->is_docomo)
407 0 0 if ($response)
432 0 0 if ($response)
444 0 0 if ($location)