Agent/Permission/Result/Allow.pm

filter: Statementstmt 100% 24 / 24 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 50.0% 1 / 2 totaltotal 97.3% 37 / 38 CC 3 SCAR 4.7
CC
3
Cov
100%
to_hash
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.6
« Agent/Subagent.pm ↑ Summary Agent/Permission/Result/Deny.pm »
1 package Claude::Agent::Permission::Result::Allow;
2  
3 10 ▶use 5.020;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 10 ▶use Object::Proto ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 10 ▶use Claude::Agent::Permission::Result;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 10 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
11 10 Object::Proto::define('Claude::Agent::Permission::Result::Allow',
12 extends => 'Claude::Agent::Permission::Result',
13 'updated_input:predicate',
14 'updated_permissions:predicate',
15 );
16 }
17  
18 17 ▶sub BUILD {
Subroutine BUILD: called CC=1 SCAR=0.0
Pod undocumented
19 17 my ($self) = @_;
20 17 $self->behavior('allow');
21 17 return;
22 }
23  
24 10 ▶sub to_hash {
Subroutine to_hash: called CC=3 SCAR=11.0
Pod documented
25 10 my ($self) = @_;
26 10 my $hash = { behavior => 'allow' };
27 10 ▶ $hash->{updatedInput} = $self->updated_input if $self->has_updated_input;
Branch: 1 branch
BranchTrueFalseTotal
if $self->has_updated_input 4 6 10
28 10 ▶ $hash->{updatedPermissions} = $self->updated_permissions if $self->has_updated_permissions;
Branch: 1 branch
BranchTrueFalseTotal
if $self->has_updated_permissions 4 6 10
29 10 return $hash;
30 }
31  
32 10 1;
33  
34 __END__
« Agent/Subagent.pm ↑ Summary Agent/Permission/Result/Deny.pm »