Branch Coverage

blib/lib/Whelk/Formatter.pm
Criterion Covered Total %
branch 11 16 68.7


line true false branch
23 4 54 unless exists $app_encoders->{$encoder}
36 0 26 unless exists $formats->{$format}
48 18 14 if $app->req->content_type_is($formats->{$format})
62 7 0 $format eq 'yaml' ? :
11 7 $format eq 'json' ? :
74 80 0 unless $ct
78 4 0 if $special_encoder and ref $data and !$ct || $ct eq $self->full_response_format
90 0 29 unless $app