Agent/Permission/Result/Deny.pm

filter: Statementstmt 100% 23 / 23 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 50.0% 1 / 2 totaltotal 97.3% 36 / 37 CC 3 SCAR 4.7
CC
3
Cov
100%
to_hash
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.6
« Agent/Permission/Result/Allow.pm ↑ Summary Agent/Content.pm »
1 package Claude::Agent::Permission::Result::Deny;
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::Deny',
12 extends => 'Claude::Agent::Permission::Result',
13 'message:Str:predicate',
14 'interrupt:predicate',
15 );
16 }
17  
18 15 ▶sub BUILD {
Subroutine BUILD: called CC=1 SCAR=0.0
Pod undocumented
19 15 my ($self) = @_;
20 15 $self->behavior('deny');
21 15 return;
22 }
23  
24 9 ▶sub to_hash {
Subroutine to_hash: called CC=3 SCAR=11.0
Pod documented
25 9 my ($self) = @_;
26 9 ▶ my $hash = {
Branch: 1 branch
BranchTrueFalseTotal
$self->interrupt ? : 4 5 9
27 behavior => 'deny',
28 interrupt => $self->interrupt ? \1 : \0,
29 };
30 9 ▶ $hash->{message} = $self->message if $self->has_message;
Branch: 1 branch
BranchTrueFalseTotal
if $self->has_message 7 2 9
31 9 return $hash;
32 }
33  
34 10 1;
35  
36 __END__
« Agent/Permission/Result/Allow.pm ↑ Summary Agent/Content.pm »