Branch Coverage

blib/lib/Catalyst/Plugin/HTML/Scrubber.pm
Criterion Covered Total %
branch 34 46 73.9


line true false branch
17 0 4 if (ref $conf eq 'ARRAY') { }
3 1 elsif (ref $conf eq 'HASH') { }
21 0 3 unless defined $c->config->{'scrubber'}{'auto'}
42 81 36 if (ref $conf ne "HASH" or $conf->{'auto'})
43 57 24 ref $conf eq 'HASH' ? :
54 65 18 if (exists $c->req->data_handlers->{$c->req->content_type})
55 65 0 if (my $body_data = $c->request->body_data)
62 9 74 if ($c->request->can("data"))
64 9 0 if ($data)
80 181 24 if (ref $data eq 'HASH') { }
24 0 elsif (ref $data eq 'ARRAY') { }
0 0 elsif (ref $data eq 'CODE') { }
82 48 184 unless ($c->_should_scrub_param($conf, $key))
88 48 136 if (my $ref = ref $data->{$key}) { }
90 48 0 if defined $data->{$key}
96 136 0 if defined $data->{$key}
101 0 48 if (ref $_) { }
104 48 0 if defined $_
120 192 36 if ($conf and $conf->{'ignore_params'})
122 0 192 if (ref $ignore_params ne "ARRAY")
126 192 156 if (ref $ignore_param eq 'Regexp') { }
127 36 156 if $param =~ /$ignore_param/
129 12 144 if $param eq $ignore_param