Branch Coverage

blib/lib/MojoMojo/Formatter/Wiki.pm
Criterion Covered Total %
branch 32 38 84.2


line true false branch
112 0 17 unless ($inner)
236 85 86 if ($wikilink =~ m[^/]) { }
69 17 elsif ($stashed_path) { }
242 0 69 unless $stashed_path =~ m[^/]
247 3 168 if (my($sibling) = $wikilink =~ m[^\.\./(.*)$]) { }
83 85 elsif (not $pass_wikilink_through) { }
258 0 171 unless ref $c
262 14 157 if ($orig_wikilink =~ m[^ \s* /+ \s* $]x) { }
280 111 60 if (not defined $link_text or $link_text eq '')
288 171 0 if ('MojoMojo::Formatter::TOC'->module_loaded)
289 2 1 if $fragment ne '' and $fragment =~ /[^A-Za-z0-9_:.-]/ || !($fragment =~ /\.[0-9A-F]{2}/)
295 0 171 if ($c->stash->{'page'} and ref $c->stash->{'page'} eq 'MojoMojo::Model::DBIC::Page' and not $wikilink =~ m[^/]) { }
0 319 elsif ($c->stash->{'page_path'} and not $wikilink =~ m[^/]) { }
318 63 108 if (defined $proto_pages and @$proto_pages) { }
321 6 57 if ($action) { }
334 39 69 if $action
335 3 105 if $fragment ne ''
379 8 5 unless ($link =~ m[^/])
386 5 8 if (defined $proto_pages and @$proto_pages) { }