Branch Coverage

blib/lib/Mojolicious/Plugin/RedirectHost.pm
Criterion Covered Total %
branch 12 12 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 2 6 if $options{'er'} and $path eq $EXCEPT_PATH