blib/lib/MojoMojo/Formatter/Wiki.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 25 | 34 | 73.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
289 | 168 | 3 | 0 | $fragment ne '' and $fragment =~ /[^A-Za-z0-9_:.-]/ || !($fragment =~ /\.[0-9A-F]{2}/) |
295 | 0 | 27 | 144 | $c->stash->{'page'} and ref $c->stash->{'page'} eq 'MojoMojo::Model::DBIC::Page' |
27 | 144 | 0 | $c->stash->{'page'} and ref $c->stash->{'page'} eq 'MojoMojo::Model::DBIC::Page' and not $wikilink =~ m[^/] | |
148 | 23 | 0 | $c->stash->{'page_path'} and not $wikilink =~ m[^/] | |
318 | 6 | 102 | 63 | defined $proto_pages and @$proto_pages |
386 | 2 | 6 | 5 | defined $proto_pages and @$proto_pages |
line | l | !l | condition |
---|---|---|---|
110 | 13 | 4 | $1 || '' |
380 | 8 | 0 | $page->path || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
226 | 171 | 0 | 0 | $base ||= $c->req->base |
280 | 111 | 0 | 60 | not defined $link_text or $link_text eq '' |
289 | 1 | 1 | 1 | $fragment =~ /[^A-Za-z0-9_:.-]/ || !($fragment =~ /\.[0-9A-F]{2}/) |
292 | 60 | 111 | 0 | $link_text || $class->expand_wikilink($orig_wikilink) |