| blib/lib/MojoMojo/Controller/Comment.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 2 | 8 | 25.0 |
| line | true | false | branch |
|---|---|---|---|
| 30 | 0 | 2 | if ($c->stash->{'user'} and $form->submitted_and_valid) |
| 55 | 0 | 1 | if ($c->stash->{'fail'}) |
| 68 | 0 | 0 | if ($comment = $c->model('DBIC::Comment')->find($comment)) |
| 69 | 0 | 0 | if ($comment->page->id == $c->stash->{'page'}->id and $c->stash->{'user'}->can_edit($comment->page->path)) |