Branch Coverage

lib/Catalyst/Action/SerializeBase.pm
Criterion Covered Total %
branch 22 34 64.7


line true false branch
23 11 7 unless (defined $self->_loaded_plugins)
28 11 7 unless (defined $self->_serialize_plugins)
45 0 18 if (exists $$controller{'serialize'}) { }
61 0 18 if ($content_type_stash_key and my $stashed = $c->stash->{$content_type_stash_key})
65 0 0 unless ref $stashed
71 0 18 if $$config{'default'}
75 1 17 unless $content_type
79 2 15 if ($content_type eq 'text/x-json')
84 17 0 if (exists $$map{$content_type}) { }
86 6 11 if (ref $$map{$content_type} eq 'ARRAY') { }
100 0 17 unless (grep /^$sclass$/, @{$self->_serialize_plugins;})
106 11 6 unless (exists $self->_loaded_plugins->{$sclass})
111 0 11 if ($@) { }
120 8 9 if ($search_path eq 'Catalyst::Action::Serialize')
121 8 0 if ($content_type) { }
0 0 elsif ($c->request->accept_only) { }
136 0 1 if (defined $content_type and $content_type ne '') { }