Agent/Message/RateLimitEvent.pm

filter: Statementstmt 95.2% 20 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.9% 10 / 11 Podpod 100% 5 / 5 totaltotal 94.5% 35 / 37 CC 1 SCAR 0.9
CC
1
Cov
95%
overage_status
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Agent/Error.pm ↑ Summary Agent/Content/Text.pm »
1 package Claude::Agent::Message::RateLimitEvent;
2  
3 11 ▶use 5.020;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 11 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 11 ▶use Object::Proto ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 11 ▶use Claude::Agent::Message::Base;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 11 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
11 11 Object::Proto::define('Claude::Agent::Message::RateLimitEvent',
12 extends => 'Claude::Agent::Message::Base',
13 'rate_limit_info:HashRef:required',
14 );
15 }
16  
17 1 ▶sub status { $_[0]->rate_limit_info->{status} }
Subroutine status: called CC=1 SCAR=0.0
Pod documented
18 1 ▶sub resets_at { $_[0]->rate_limit_info->{resetsAt} }
Subroutine resets_at: called CC=1 SCAR=0.0
Pod documented
19 1 ▶sub rate_limit_type { $_[0]->rate_limit_info->{rateLimitType} }
Subroutine rate_limit_type: called CC=1 SCAR=0.0
Pod documented
20 1 ▶sub utilization { $_[0]->rate_limit_info->{utilization} }
Subroutine utilization: called CC=1 SCAR=0.0
Pod documented
21 0 ▶sub overage_status { $_[0]->rate_limit_info->{overageStatus} }
Subroutine overage_status: not called CC=1 SCAR=6.9
Pod documented
22  
23 11 1;
24  
25 __END__
« Agent/Error.pm ↑ Summary Agent/Content/Text.pm »