Condition Coverage

lib/Yote/Spiderpup.pm
Criterion Covered Total %
condition 86 229 37.5


and 3 conditions

line !l l&&!r l&&r condition
255 0 0 0 -f $paths{'html'} and -f $paths{'meta'}
376 3 0 3 $page->{'vars'} and keys %{$$page{"vars"};}
380 0 1 7 defined $value and not ref $value
1 3 4 defined $value and not ref $value and $value =~ /^-?\d+\.?\d*$/
392 3 0 3 $page->{'methods'} and keys %{$$page{"methods"};}
400 5 0 1 $page->{'computed'} and keys %{$$page{"computed"};}
408 3 0 3 $page->{'lifecycle'} and keys %{$$page{"lifecycle"};}
416 6 0 0 $page->{'initial_store'} and keys %{$$page{"initial_store"};}
444 5 0 1 $page->{'routes'} and keys %{$$page{"routes"};}
527 0 2 0 $dep_data and $dep_data->{'recipes'}
2 0 0 $dep_data and $dep_data->{'recipes'} and ref $dep_data->{'recipes'} eq "HASH"
539 0 2 0 $dep_data and $dep_data->{'recipes'}
548 1 0 1 $page_data->{'recipes'} and ref $page_data->{'recipes'} eq "HASH"
560 1 0 1 $page_data->{'recipes'} and ref $page_data->{'recipes'} eq "HASH"
603 2 0 1 -f $paths{'js'} and -f $paths{'meta'}
2 0 1 -f $paths{'js'} and -f $paths{'meta'} and not $ENV{'SPIDERPUP_NO_CACHE'}
663 0 3 2 $dep_data and $dep_data->{'recipes'}
3 0 2 $dep_data and $dep_data->{'recipes'} and ref $dep_data->{'recipes'} eq "HASH"
682 0 3 2 $dep_data and $dep_data->{'recipes'}
691 3 0 0 $page_data->{'recipes'} and ref $page_data->{'recipes'} eq "HASH"
703 3 0 0 $page_data->{'recipes'} and ref $page_data->{'recipes'} eq "HASH"
752 3 0 1 -f $js_file and -f $meta_file
3 0 1 -f $js_file and -f $meta_file and not $ENV{'SPIDERPUP_NO_CACHE'}
830 0 0 0 $sib and $sib->{'tag'}
0 0 0 $sib and $sib->{'tag'} and $sib->{'tag'} eq 'elseif' || $sib->{'tag'} eq 'else'
845 0 0 0 $slot_children and @$slot_children
854 0 0 0 defined $child_slot and $child_slot eq $slot_name
871 0 5 0 $recipes_map and $recipes_map->{$tag}
889 0 0 0 $variant and $$mod_data{"html_$variant"}
912 0 0 0 $children and @$children
0 0 0 $children and @$children and not $self->_has_slot_tag($mod_structure)
998 0 0 0 $mod_data->{'recipes'} and ref $mod_data->{'recipes'} eq "HASH"
1008 2 0 0 $page_data->{'recipes'} and ref $page_data->{'recipes'} eq "HASH"
1322 0 0 0 $opts{'ssl_cert'} && $opts{'ssl_key'}
1400 0 0 0 not $response and $path =~ /\.(yaml|pup)$/

or 2 conditions

line l !l condition
32 11 0 $args{'www_dir'} // die("www_dir required")
41 4 7 $args{'base_url_path'} // ""
213 0 0 $collected //= {}
225 0 0 $page_data->{'import'} // {}
339 4 2 $page->{'title'} // ""
340 5 1 $page->{'yaml_path'} // ""
341 6 0 $page->{'html'} // ""
372 6 0 $page_imports_obj // "{}"
466 4 2 $page->{'css'} // ""
518 2 0 $page_data->{'import'} // {}
648 2 1 $page_data->{'import'} // {}
798 5 0 $structure->{'children'} // []
809 10 0 $seen //= {}
823 5 0 $node->{'tag'} // ""
824 5 0 $node->{'attributes'} // {}
825 5 0 $node->{'children'} // []
852 0 0 $child->{'attributes'} // {}
892 0 0 $mod_data->{'html'} // ""
925 3 0 $attrs->{'to'} // "/"
926 2 1 $self->{'base_url_path'} || ''
976 0 0 $structure->{'children'} // []
978 0 0 $child->{'tag'} // ""
986 0 2 $page_data->{'import'} // {}
1030 0 2 $page_data->{'import-css'} // []
1035 0 2 $page_data->{'import-js'} // []
1047 0 2 $page_data->{'include-js'} // []
1068 2 0 $page_name //= "index"
1070 2 0 $page_data->{'title'} // "Untitled"
1079 0 2 $page_data->{'css'} // ""
1111 1 1 $self->{'base_url_path'} || ''
1115 2 0 $page_data->{'html'} // ""
1117 0 2 $page_data->{'vars'} // {}
1317 0 0 $port //= 5000
1368 0 0 $request_line //= ""
1537 0 0 $interval //= 5

or 3 conditions

line l !l&&r !l&&!r condition
33 3 8 0 $args{'webroot_dir'} // "File::Spec"->catdir($www_dir, "webroot")
63 0 0 0 not exists $self->{'file_mtimes'}{$path} or $self->{'file_mtimes'}{$path} != $mtime
125 0 0 0 $path eq "" or $path eq "index"
145 0 0 7 $path eq "" or $path eq "index.html"
263 0 0 0 $@ or not $cached_mtimes
439 3 0 3 @var_methods or @custom_methods
3 0 3 @var_methods or @custom_methods or @computed_methods
0 1 2 @var_methods or @custom_methods or @computed_methods or @lifecycle_methods
611 0 0 2 not -f $file or (stat $file)[9] != $cached->{$file}
760 0 0 4 not -f $file or (stat $file)[9] != $cached->{$file}
830 0 0 0 $sib->{'tag'} eq 'elseif' || $sib->{'tag'} eq 'else'
837 0 0 5 $tag eq "elseif" or $tag eq "else"
858 0 0 0 $slot_vars // $vars
0 0 0 $slot_recipes_map // $recipes_map
882 0 0 0 $attr eq "for" or $attr eq "slot"
901 0 0 0 $parent_component_vars // $vars
965 0 0 0 $attr eq "for" or $attr eq "slot"
0 0 0 $attr eq "for" or $attr eq "slot" or $attr eq "condition"