Branch Coverage

blib/lib/MojoMojo/Controller/Root.pm
Criterion Covered Total %
branch 16 32 50.0


line true false branch
21 0 194 if ($c->sessionid and $c->session->{'lang'}) { }
25 194 0 if $c->pref('default_lang')
28 194 0 if ($c->stash->{'path'})
33 51 143 if $c->user_exists and $c->user
91 0 194 unless (-d $c->path_to('root', 'static', 'themes', $theme))
99 194 0 if ref $c->stash->{'pre_hacked_uri'}
118 12 182 if $c->action->class =~ /^MojoMojo::Extensions::/
119 0 182 if $proto_pages and @$proto_pages and $c->action->name eq 'inline'
121 1 181 if $proto_pages and @$proto_pages and not $c->action->name =~ /^(edit|render|login|logout|register|recover_pass)$/
124 0 181 if ($c->pref('enforce_login'))
126 0 0 if (grep(($c->action->name eq $_), ('login', 'logout', 'recover_pass', 'register')))
129 0 0 unless ($c->user_exists)
138 130 51 unless $c->stash->{'user'}
139 51 0 if $c->stash->{'user'}->active != -1
140 0 0 if $c->req->action eq 'logout'
153 0 0 if ($ENV{'MOJOMOJO_EXIT_OK'}) { }