Branch Coverage

blib/lib/WebEditor/OldController/Admin.pm
Criterion Covered Total %
branch 0 110 0.0


line true false branch
27 0 0 unless (param('nohttpheader'))
32 0 0 unless ($root->is_allowed(['admin', 'useradmin', 'release', 'publish']))
40 0 0 unless defined param('action')
43 0 0 if (param('action') eq 'makemenu') { }
0 0 elsif (param('action') eq 'makehtml') { }
0 0 elsif (param('action') eq 'makeps') { }
0 0 elsif (param('action') eq 'makepdf') { }
0 0 elsif (param('action') eq 'timebasedupdatehtml') { }
0 0 elsif (param('action') eq 'do_timebasedupdatehtml') { }
0 0 elsif (param('action') eq 'info') { }
0 0 elsif (param('action') eq 'groupadmin') { }
44 0 0 if ($self->can('makemenu')) { }
79 0 0 if ($self->can('admin_modules'))
89 0 0 if (param('action') eq 'htdig')
104 0 0 unless ($root->is_allowed(['admin', 'publish']))
112 0 0 if (param('simulate')) { }
113 0 0 if ($self->can('do_simulate_publish')) { }
119 0 0 if ($self->can('do_publish')) { }
124 0 0 if (not $fe && $fe->can('publish')) { }
135 0 0 if $publish_done and $self->can('notify')
142 0 0 unless ($root->is_allowed(['admin', 'release']))
152 0 0 unless ($root->is_allowed(['admin', 'release']))
203 0 0 unless ($root->is_allowed(['admin', 'release']))
214 0 0 if (defined $o->Release_State and $o->Release_State eq 'inactive')
219 0 0 if ($o->is_doc and !defined($o->Release_State) || $o->Release_State ne 'released')
237 0 0 unless ($root->is_allowed('admin'))
246 0 0 unless ($obj)
274 0 0 unless ($root->is_allowed(['admin', 'useradmin']))
284 0 0 if ($useradmindb eq '') { }
286 0 0 if ($root->can('get_userdb_prop'))
292 0 0 unless ($u)
306 0 0 if ($c->project->features->{'wwwauth'})
308 0 0 if $useradmindb and $self->can('update_auth_files')
316 0 0 unless $key =~ /^useradminuser_(.*)/
321 0 0 if (keys %new)
330 0 0 unless defined $useradminaction
332 0 0 if ($useradminaction eq 'adduser') { }
0 0 elsif ($useradminaction eq 'upduser') { }
0 0 elsif ($useradminaction eq 'deluser') { }
0 0 elsif ($useradminaction eq 'edituser') { }
333 0 0 if ($useradminuser =~ /^\s*$/ or $useradminpassword1 =~ /^\s*$/ and param('useradminuser_AuthType') ne 'POP3') { }
0 0 elsif ($useradminpassword1 ne $useradminpassword2) { }
338 0 0 if ($u->add_user($useradminuser, $useradminpassword1, $useradminname)) { }
349 0 0 if ($useradminpassword1 ne $useradminpassword2) { }
352 0 0 if ($useradminpassword1 eq '')
355 0 0 if ($u->update_user($useradminuser, $useradminpassword1, $useradminname)) { }
360 0 0 if ($userobj = $u->get_user($useradminuser))
369 0 0 if ($u->delete_user($useradmindeluser)) { }
377 0 0 if ($userobj = $u->get_user($useradminuser)) { }
389 0 0 $u->can('get_all_groups') ? :
0 0 $root->can('get_all_groups') ? :
0 0 $userdb_prop && $userdb_prop->allgroups ? :
405 0 0 $useradmindb eq 'wwwuser' ? :
406 0 0 if ($c->project->features->{'groupadmin'})
407 0 0 $useradmindb eq 'wwwuser' ? :