Branch Coverage

blib/lib/HTTPx/Dispatcher/Rule.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
47 27 27 ref $req->uri ? :
50 8 46 unless $self->_condition_check($req)
52 46 0 if ($uri =~ /$$self{'re'}/) { }
58 76 16 if $$self{$key}
67 0 58 if (exists $$requirements{$key} and not $$response{$key} =~ /$$requirements{$key}/)
85 0 92 unless $$output{$key} = delete $$input{$key}
94 50 4 if $self->_condition_check_method($req)
101 42 12 unless $method
103 12 0 unless ref $method
105 8 4 if (grep {uc $req->method eq uc $_;} @$method) { }
116 38 12 unless $function
119 8 4 if (&$function($req)) { }
133 2 29 unless defined $uri
141 8 23 if ($$self{$key} and $$self{$key} eq $val)
143 21 2 if ($uri =~ s/:$key/$val/) { }