File Coverage

blib/lib/Duadua/Parser/Bot/Log4Shell.pm
Criterion Covered Total %
statement 10 10 100.0
branch 1 2 50.0
condition 4 6 66.6
subroutine 3 3 100.0
pod 1 1 100.0
total 19 22 86.3


line stmt bran cond sub pod time code
1             package Duadua::Parser::Bot::Log4Shell;
2 11     11   1211 use strict;
  11         20  
  11         488  
3 11     11   55 use warnings;
  11         21  
  11         1891  
4              
5             sub try {
6 148     148 1 332 my ($class, $d) = @_;
7              
8 148 50 66     394 if ( $d->_prefix('${') && $d->_contain('://') && $d->ua =~ m!\}$! ) {
      66        
9 1         7 my $h = {
10             name => 'Log4Shell',
11             is_bot => 1,
12             };
13              
14 1         33 return $h;
15             }
16             }
17              
18             1;
19              
20             __END__