Branch Coverage

blib/lib/Dancer/Plugin/Resource.pm
Criterion Covered Total %
branch 23 34 67.6


line true false branch
37 17 129 if defined &{$funcname;}
43 0 0 $conf && exists $$conf{'serializers'} ? :
55 0 0 unless (defined $format)
60 0 0 unless defined $format
63 0 0 unless (defined $serializer)
85 0 8 unless ($options{'skip_prepare_serializer'} or (caller)[1] =~ /^(?:t|xt)/)
93 2 6 if ($options{'parent'} and $routes{$options{'parent'}}) { }
105 1 15 if ($options{$type} and ref $options{$type} eq '')
115 1 7 if (my $p = $options{'params'}) { }
116 0 1 ref $p ? :
274 1 7 if $old_prefix
277 0 144 if $RESOURCE_DEBUG
323 17 64 if ($func)
325 19 6 $load_func ? :
331 31 17 unless ($wrapped)
338 24 24 $params ? :
427 7 13 if ($code >= 400 and ref $_[0] eq '') { }