Branch Coverage

blib/lib/Mojolicious/Plugin/RedirectHost.pm
Criterion Covered Total %
branch 14 14 100.0


line true false branch
17 4 2 if (ref $params eq 'HASH' and scalar keys %$params) { }
1 1 elsif (ref $app->config($CONFIG_KEY) eq 'HASH') { }
24 2 4 unless ($options{'host'})
26 1 1 unless $options{'silent'}
39 1 8 if $url->host eq $options{'host'}
42 6 2 if ($options{'er'})
43 2 4 if $path eq $EXCEPT_PATH