Branch Coverage

blib/lib/DDG/Meta/ZeroClickInfoSpice.pm
Criterion Covered Total %
branch 29 50 58.0


line true false branch
40 0 11 if exists $applied{$target}
80 1 15 if (ref $_ eq 'HASH') { }
3 12 elsif (ref $_ eq 'DDG::ZeroClickInfo::Spice::Data') { }
0 12 elsif (ref $_ eq 'DDG::ZeroClickInfo::Spice') { }
0 12 elsif (not defined $_) { }
85 2 1 if ($data) { }
98 1 10 if $data
99 11 0 if (@call)
100 10 1 if ($params{'call_type'} eq 'include') { }
1 0 elsif (scalar @call == 1) { }
112 0 9 if (ref $_[0] eq 'HASH') { }
132 0 3 if ref $_[0] eq 'HASH'
138 0 0 if defined $spice_js
141 0 0 if ($target->can('module_share_dir') and my $spice_js_file = $target->can('share')->('spice.js'))
145 0 0 if ($target->spice_call_type eq 'self')
157 1 0 unless (defined $rewrite)
158 1 0 if ($target->has_rewrite) { }
172 1 1 if (my $alt_to = $zcispice_params{'alt_to'})
187 1 1 if $nginx_conf_func
191 1 0 if ($target->has_rewrite)
213 11 0 if (grep {$key eq $_;} zeroclickinfospice_attributes()) { }
249 0 3 defined $params->{'from'} ? :
0 3 defined $params->{'proxy_cache_valid'} ? :
0 3 defined $params->{'proxy_ssl_session_reuse'} ? :
0 3 defined $params->{'post_body'} ? :