Branch Coverage

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


line true false branch
463 84 521 $self->_nav->{$name} ? :
499 2 47 if ($index_path and not $index_path =~ m[^/])
509 83 4 if ($app->DOES('Statocles::App::Role::Store'))
521 2 85 if ($app_name eq $index_path)
523 1 1 unless @app_pages
534 25 1236 if ($path =~ /$index_path_re/)
547 1 1260 if ($seen_paths{$path}{$app_name})
561 2 46 if ($self->index and not exists $seen_paths{'/index.html'})
563 1 1 unless ($index_document =~ s/[.]html?/.markdown/)
574 2 1256 if (keys %seen_apps > 1) { }
612 14 32 if ($self->_write_deploy)
620 1 0 $self->index ? :
45 1 $self->index =~ m[^/] ? :
627 876 383 unless (ref $content)
634 18 786 if ($is_index and $index_orig_path and not $url =~ m[^([A-Za-z]+:|/)])
638 2247 6760 unless $url =~ m[^/(?:[^/]|$)]
641 338 6422 if ($index_root and $url =~ m[^$index_root(?:/index[.]html)?$])
645 409 6351 if ($base_path =~ /\S/)
698 0 0 unless $path->exists
751 2 1154 if ($add_link)
756 60 1094 $self->_links->{$name} ? :
757 1154 0 wantarray ? :
770 710 8211 $self->_write_deploy && $self->_write_deploy->base_url ? :
800 853 0 if (@parts == 1)
802 757 93 $parts[0] eq 'layout.html' ? :
3 850 $self->_templates->{$parts[0]} ? :
810 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)