Branch Coverage

blib/lib/DDG/Meta/RequestHandler.pm
Criterion Covered Total %
branch 28 44 63.6


line true false branch
42 0 35 if exists $applied{$target}
53 6 21 if (ref $handler eq 'CODE') { }
58 0 21 unless ref $code eq 'CODE'
60 1 26 unless $target->has_triggers
62 7 19 if (grep {$_ eq $handler;} @request_scalar_attributes) { }
3 16 elsif (grep {$_ eq $handler;} @request_array_attributes) { }
0 16 elsif ($handler eq 'request') { }
11 5 elsif ($handler eq 'remainder' or $handler eq 'remainder_lc') { }
5 0 elsif ($handler eq 'matches') { }
0 0 elsif ($handler eq 'all') { }
72 10 0 @result ? :
84 7 0 @result ? :
96 0 0 @result ? :
100 1 10 unless $target->triggers_block_type eq 'Words'
106 24 0 $handler eq 'remainder' ? :
110 24 0 @result ? :
113 1 4 unless $target->triggers_block_type eq 'Regexp'
123 4 0 @result ? :
131 0 0 @result ? :
141 24 0 if $role
151 17 28 if ($request->has_location) { }
158 16 29 if ($request->has_language) { }