Branch Coverage

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


line true false branch
16 3 1 unless defined $self->basic_check
29 0 66 defined $self->env_key ? :
36 1 2 if (defined $local and ref $local eq ref qr// and $ua =~ /$local/)
40 63 3 if (not $$env{$key} and $self->basic_check)
41 21 42 if ($ua =~ /$basic/)
46 14 52 if (not $$env{$key} and $self->extended_check)
47 4 10 if ($ua =~ /$extended/)
52 14 52 if (not $$env{$key} and $self->generic_check)
53 4 10 if ($ua =~ /$generic/)
77 4 0 if ($ENV{'HARNESS_ACTIVE'})
83 4 3176 unless $_
84 4 3172 if /\A##\s+EXTENDED/
85 4 3172 if /\A##\s+GENERIC/
90 0 4 unless ($ENV{'HARNESS_ACTIVE'})