Branch Coverage

blib/lib/Web/MREST/Dispatch.pm
Criterion Covered Total %
branch 53 82 64.6


line true false branch
312 20 0 unless ref $Web::MREST::Dispatch::router and $Web::MREST::Dispatch::router->can('match')
330 21 21 if ($pass == 1)
349 3 3 if $self->_first_pass_always_exists($pass)
369 0 0 if $self->_first_pass_always_exists($pass)
387 2 2 if $self->_first_pass_always_exists($pass)
393 2 0 if ($docu_resource) { }
403 0 2 if (ref $def ne 'HASH')
421 1 1 if ($resource_name eq 'docu/pod') { }
1 0 elsif ($resource_name eq 'docu/html') { }
446 3 3 if $self->_first_pass_always_exists($pass)
468 18 0 if ($mapping) { }
477 16 2 if ($type eq 'meta') { }
2 0 elsif ($type eq 'core') { }
0 0 elsif ($type eq 'site') { }
484 0 18 unless ($param_obj)
490 10 8 if ($pass == 1)
492 7 3 $bool ? :
493 7 3 if $bool
498 0 8 if ($type ne 'meta' and $method =~ /^(PUT)|(DELETE)$/)
503 4 4 if ($method eq 'GET') { }
3 1 elsif ($method eq 'PUT') { }
1 0 elsif ($method eq 'DELETE') { }
531 12 12 if $self->_first_pass_always_exists($pass)
561 13 0 if $mapping
564 8 5 if ($pass == 1)
566 2 6 if (not defined $specs) { }
2 4 elsif ($specs eq '0') { }
574 3 1 if ($method eq 'POST')
575 1 2 if ($specs ne '1')
585 1 4 if ($method eq 'GET') { }
4 0 elsif ($method eq 'POST') { }
0 0 elsif ($method eq 'PUT') { }
0 0 elsif ($method eq 'DELETE') { }
612 3 1 if (not defined $specs or $specs eq '1') { }
0 1 elsif ($specs eq '0') { }
629 0 0 $specs ? :
632 0 0 if ($specs) { }
645 0 0 $specs ? :
648 0 0 if ($specs) { }
674 1 1 if $self->_first_pass_always_exists($pass)
679 1 0 $version ? :