API/Usage.pm

filter: Statementstmt 73.0% 19 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 33.3% 1 / 3 totaltotal 67.5% 25 / 37 CC 1 SCAR 3.2
CC
1
Cov
73%
new
2.0
ephemeral_5m_input_tokens
2.0
ephemeral_1h_input_tokens
2.0
CRAP 1.4
« API/Response.pm ↑ Summary
1 package LLM::API::Usage;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use English qw(-no_match_vars);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 our @ACCESSORS = qw(
10 input_tokens
11 cache_creation_input_tokens
12 cache_read_input_tokens
13 output_tokens
14 cache_creation
15 );
16  
17 1 __PACKAGE__->mk_accessors(@ACCESSORS);
18  
19 1 ▶use parent qw(Class::Accessor::Fast);
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 our $VERSION = '1.0.0';
22  
23 ########################################################################
24 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
25 ########################################################################
26 0 my ( $class, $usage ) = @_;
27  
28 0 my $self = $class->SUPER::new($usage);
29  
30 0 return $self;
31 }
32  
33 ########################################################################
34 0 ▶sub ephemeral_5m_input_tokens {
Subroutine ephemeral_5m_input_tokens: not called CC=1 SCAR=6.9
Pod undocumented
35 ########################################################################
36 0 my ($self) = @_;
37 0 return $self->cache_creation->{ephemeral_5m_input_tokens};
38 }
39  
40 ########################################################################
41 0 ▶sub ephemeral_1h_input_tokens {
Subroutine ephemeral_1h_input_tokens: not called CC=1 SCAR=6.9
Pod undocumented
42 ########################################################################
43 0 my ($self) = @_;
44  
45 0 return $self->cache_creation->{ephemeral_1h_input_tokens};
46 }
47  
48 1 1;
« API/Response.pm ↑ Summary