Branch Coverage

blib/lib/Dancer/Serializer/Mutable.pm
Criterion Covered Total %
branch 16 20 80.0


line true false branch
35 1 1 if ($content_type =~ qr"text/html")
47 17 0 if ($request)
57 17 0 if ($method =~ /^(?:POST|PUT|GET|DELETE)$/)
59 8 9 if $request->{'content_type'}
62 1 16 if $params and $params->{'content_type'}
76 4 7 if $request->{'accept'}
79 1 10 if $request->{'accept_type'}
126 10 0 if (exists $serializer->{$ct})
128 4 6 unless (exists $loaded_serializer->{$module})
129 4 0 if ("Dancer::ModuleLoader"->load($module))