Branch Coverage

blib/lib/Plack/Middleware/DetectRobots.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
19 3 1 unless defined $self->basic_check
32 0 66 defined $self->env_key ? :
39 1 2 if (defined $local and ref $local eq ref qr// and $ua =~ /$local/)
43 63 3 if (not $$env{$key} and $self->basic_check)
44 21 42 if ($ua =~ /$basic/)
49 14 52 if (not $$env{$key} and $self->extended_check)
50 4 10 if ($ua =~ /$extended/)
55 14 52 if (not $$env{$key} and $self->generic_check)
56 4 10 if ($ua =~ /$generic/)
80 4 0 if ($ENV{'HARNESS_ACTIVE'})
86 4 3176 unless $_
87 4 3172 if /\A##\s+EXTENDED/
88 4 3172 if /\A##\s+GENERIC/
93 0 4 unless ($ENV{'HARNESS_ACTIVE'})