Branch Coverage

lib/ThreatDetector/Classifier.pm
Criterion Covered Total %
branch 14 22 63.6


line true false branch
65 0 3 unless $entry and ref $entry eq "HASH"
69 1 2 if any_match($entry->{'uri'}, @sqli_patterns)
70 0 3 if $entry->{'status'} =~ /^4\d\d$/
71 0 3 if any_match($entry->{'uri'}, @cmd_patterns)
72 0 3 if any_match($entry->{'uri'}, @traversal_patterns)
73 1 2 if any_match($entry->{'uri'}, @xss_patterns)
74 0 3 if any_match($entry->{'uri'}, @encoded_patterns)
75 0 3 if any_match($entry->{'user_agent'}, @bad_agents)
76 0 3 if $entry->{'method'} =~ /^(PUT|DELETE|TRACE|CONNECT)$/
89 2 75 if ($text and $text =~ /$re/i)
90 0 2 if $VERBOSE