Branch Coverage

blib/lib/DDG/Meta/ZeroClickInfoSpice.pm
Criterion Covered Total %
branch 31 52 59.6


line true false branch
41 0 11 if exists $applied{$target}
83 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 $_) { }
88 2 1 if ($data) { }
101 1 10 if $data
102 11 0 if (@call)
103 10 1 if ($params{'call_type'} eq 'include') { }
1 0 elsif (scalar @call == 1) { }
115 0 9 if (ref $_[0] eq 'HASH') { }
135 0 3 if ref $_[0] eq 'HASH'
141 0 0 if defined $spice_js
144 0 0 if ($target->can('module_share_dir') and my $spice_js_file = $target->can('share')->('spice.js'))
148 0 0 if ($target->spice_call_type eq 'self')
160 1 0 unless (defined $rewrite)
161 1 0 if ($target->has_rewrite) { }
175 1 1 if (my $alt_to = $zcispice_params{'alt_to'})
190 1 1 if $nginx_conf_func
194 1 0 if ($target->has_rewrite)
216 11 0 if (grep {$key eq $_;} zeroclickinfospice_attributes()) { }
253 0 3 defined $params->{'from'} ? :
0 3 defined $params->{'proxy_cache_valid'} ? :
1 2 defined $params->{'content_type_javascript'} ? :
0 3 defined $params->{'proxy_ssl_session_reuse'} ? :
0 3 defined $params->{'post_body'} ? :