Branch Coverage

lib/Catalyst/Action/SerializeBase.pm
Criterion Covered Total %
branch 25 46 54.3


line true false branch
23 11 7 unless (defined $self->_loaded_plugins)
28 11 7 unless (defined $self->_serialize_plugins)
47 0 18 if (exists $controller->{'serialize'}) { }
58 0 18 if $config->{'default'}
64 0 18 if ($compliance_mode)
66 0 0 if ($serialize_mode eq 'Deserialize') { }
0 0 elsif ($serialize_mode eq 'Serialize') { }
74 0 0 if $config->{'deserialize_default'}
85 0 18 if ($content_type_stash_key and my $stashed = $c->stash->{$content_type_stash_key})
89 0 0 unless ref $stashed
95 0 18 if $default
99 1 17 unless $content_type
103 2 15 if ($content_type eq 'text/x-json')
108 17 0 if (exists $map->{$content_type}) { }
110 6 11 if (ref $map->{$content_type} eq 'ARRAY') { }
124 0 17 unless (grep /^$sclass$/, @{$self->_serialize_plugins;})
130 11 6 unless (exists $self->_loaded_plugins->{$sclass})
135 0 11 if ($@) { }
144 8 9 if ($search_path eq 'Catalyst::Action::Serialize')
145 8 0 unless ($c->response->header('Vary'))
146 8 0 if ($content_type) { }
0 0 elsif ($c->request->accept_only) { }
162 0 1 if (defined $content_type and $content_type ne '') { }