Branch Coverage

blib/lib/Apache/Sling/Authz.pm
Criterion Covered Total %
branch 20 60 33.3


line true false branch
35 1 1 unless (defined $authn)
37 1 0 defined $verbose ? :
87 0 1 unless GetOptions $authz_config, 'auth=s', 'help|?', 'log|L=s', 'man|M', 'pass|p=s', 'threads|t=s', 'url|U=s', 'user|u=s', 'verbose|v+', 'addChildNodes!', 'all!', 'delete|d', 'lifecycleManage!', 'lockManage!', 'modifyACL!', 'modifyProps!', 'nodeTypeManage!', 'principal|P=s', 'readACL!', 'read!', 'remote|r=s', 'removeChilds!', 'removeNode!', 'retentionManage!', 'versionManage!', 'view|V', 'write!'
189 0 0 $success ? :
217 0 0 $success ? :
340 0 0 $success ? :
350 1 1 unless (defined $config)
361 0 1 if (defined ${$$config{'read'};})
362 0 0 ${$$config{'read'};} ? :
366 0 1 if (defined ${$$config{'modifyProps'};})
367 0 0 ${$$config{'modifyProps'};} ? :
371 0 1 if (defined ${$$config{'addChildNodes'};})
372 0 0 ${$$config{'addChildNodes'};} ? :
376 0 1 if (defined ${$$config{'removeNode'};})
377 0 0 ${$$config{'removeNode'};} ? :
381 0 1 if (defined ${$$config{'removeChilds'};})
382 0 0 ${$$config{'removeChilds'};} ? :
386 0 1 if (defined ${$$config{'write'};})
387 0 0 ${$$config{'write'};} ? :
391 0 1 if (defined ${$$config{'readACL'};})
392 0 0 ${$$config{'readACL'};} ? :
396 0 1 if (defined ${$$config{'modifyACL'};})
397 0 0 ${$$config{'modifyACL'};} ? :
418 0 1 if (defined ${$$config{'all'};})
419 0 0 ${$$config{'all'};} ? :
424 0 1 if ($$sling{'Help'}) { }
0 1 elsif ($$sling{'Man'}) { }
0 1 elsif (@grant_privileges or @deny_privileges) { }
0 1 elsif (defined ${$$config{'view'};}) { }
0 1 elsif (defined ${$$config{'delete'};}) { }