Branch Coverage

blib/lib/Raisin/Middleware/Formatter.pm
Criterion Covered Total %
branch 30 32 93.7


line true false branch
31 15 30 if ($req->content)
36 4 11 unless ($format)
47 3 38 unless ($format)
60 38 0 if (ref $r->body)
63 38 0 unless $r->content_type
91 13 41 if ($ext) { }
18 23 elsif (_accept_header_set($req->header('Accept'))) { }
113 1 18 unless $ext
120 3 15 unless $format
127 1 27 unless $accept
139 11 32 unless my $format = $media_types_map_flat_hash{$media}
141 8 24 ($params // '') =~ /q=([\d\.]+)/ ? :
152 6 48 if $self->format
155 31 17 if ($self->raisin)
157 4 27 if $route->{'produces'}
162 35 9 if $self->default_format