File Coverage

blib/lib/Duadua/Parser/Bot/LetsEncrypt.pm
Criterion Covered Total %
statement 10 10 100.0
branch 2 2 100.0
condition n/a
subroutine 3 3 100.0
pod 1 1 100.0
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Duadua::Parser::Bot::LetsEncrypt;
2 6     6   731 use strict;
  6         9  
  6         149  
3 6     6   33 use warnings;
  6         11  
  6         484  
4              
5             sub try {
6 29     29 1 78 my ($class, $d) = @_;
7              
8 29 100       81 if ( index($d->ua, q|Let's Encrypt validation server; +https://www.letsencrypt.org|) > -1 ) {
9 1         5 my $h = {
10             name => q|Let's Encrypt|,
11             is_bot => 1,
12             };
13              
14 1         4 return $h;
15             }
16             }
17              
18             1;
19              
20             __END__