Branch Coverage

blib/lib/Web/MREST/InitRouter.pm
Criterion Covered Total %
branch 21 26 80.7


line true false branch
110 240 0 if (ref $defs->{$resource} eq 'HASH') { }
130 460 700 if exists $no_expand_map{$prop}
138 20 220 if $resource_def->{'validations'}
142 220 20 if $resource_def->{'documentation'}
145 220 20 if ($resource ne '/')
158 20 220 if (ref $Web::MREST::InitRouter::resources->{$resource}{'validations'} eq 'HASH')
165 20 220 if %validations
187 0 220 unless $Web::MREST::InitRouter::site->MREST_SUPPORTED_HTTP_METHODS
480 220 ref $resource_def->{'handler'} eq 'HASH' ? :
190 2140 0 if (exists $resource_def->{$prop}) { }
194 320 1820 if ($refv eq 'HASH') { }
1820 0 elsif ($refv eq 'SCALAR') { }
195 320 0 if ($prop_def->{$method}) { }