LDAP/Command/Del/Sudoer.pm

filter: Statementstmt 78.9% 15 / 19 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 63.3% 19 / 30 CC 3 SCAR 17.4
CC
3
Cov
65%
run
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.7
« LDAP/Secret.pm ↑ Summary LDAP/Role/Bindable.pm »
1 package App::LDAP::Command::Del::Sudoer;
2  
3 1 ▶use Modern::Perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 with qw( App::LDAP::Role::Command
8 App::LDAP::Role::Bindable );
9  
10 1 ▶use App::LDAP::LDIF::Sudoer;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 0 ▶sub run {
Subroutine run: not called CC=3 SCAR=24.8
Pod undocumented
13 0 my ($self, ) = @_;
14  
15 0 ▶ my $sudoername = $self->extra_argv->[2] or die "no sudoer name specified";
Branch: 1 branch
BranchTrueFalseTotal
my $sudoername = $self->extra_argv->[2] or die "no sudoer name specified" 0 0 0
16  
17 my $sudoer = App::LDAP::LDIF::Sudoer->search(
18 base => config()->{sudoers_base}->[0],
19 0 ▶ scope => config()->{sudoers_base}->[1] // "sub",
Condition0%0/2
config()->{"sudoers_base"}[1] // "sub"
l!l
00
MC/DC0%0/1
config()->{"sudoers_base"}[1] // "sub"
config()->{"sudoers_base"}[1]
Truth table0%0/2
A
A= config()->{"sudoers_base"}[1]
Aresult
11
00
20 filter => "cn=$sudoername",
21 );
22  
23 0 $sudoer->delete;
24 }
25  
26 1 __PACKAGE__->meta->make_immutable;
27 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 1 1;
« LDAP/Secret.pm ↑ Summary LDAP/Role/Bindable.pm »