Branch Coverage

blib/lib/Statocles/Site.pm
Criterion Covered Total %
branch 49 54 90.7


line true false branch
481 84 521 $self->_nav->{$name} ? :
514 2 47 if ($index_path and not $index_path =~ m[^/])
524 83 4 if ($app->DOES('Statocles::App::Role::Store'))
536 2 85 if ($app_name eq $index_path)
538 1 1 unless @app_pages
549 25 1236 if ($path =~ /$index_path_re/)
562 1 1260 if ($seen_paths{$path}{$app_name})
576 2 46 if ($self->index and not exists $seen_paths{'/index.html'})
578 1 1 unless ($index_document =~ s/[.]html?/.markdown/)
589 2 1256 if (keys %seen_apps > 1) { }
627 14 32 if ($self->_write_deploy)
635 1 0 $self->index ? :
45 1 $self->index =~ m[^/] ? :
641 383 876 unless ($page->has_dom)
652 18 786 if ($is_index and $index_orig_path and not $url =~ m[^([A-Za-z]+:|/)])
656 2247 6760 unless $url =~ m[^/(?:[^/]|$)]
659 338 6422 if ($index_root and $url =~ m[^$index_root(?:/index[.]html)?$])
663 409 6351 if ($base_path =~ /\S/)
714 0 0 unless $path->exists
767 2 1154 if ($add_link)
772 60 1094 $self->_links->{$name} ? :
773 1154 0 wantarray ? :
786 710 8211 $self->_write_deploy && $self->_write_deploy->base_url ? :
816 853 0 if (@parts == 1)
818 757 93 $parts[0] eq 'layout.html' ? :
3 850 $self->_templates->{$parts[0]} ? :
826 2 755 if ($parts[0] eq 'layout' and $parts[1] eq 'default.html' and not $self->theme->store->path->child(@parts)->is_file and $self->theme->store->path->child('site', 'layout.html.ep')->is_file)