API/Usage.pm

filter: Statementstmt 84.6% 22 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod 33.3% 1 / 3 totaltotal 78.3% 29 / 37 CC 1 SCAR 2.2
CC
1
Cov
85%
ephemeral_5m_input_tokens
2.0
ephemeral_1h_input_tokens
2.0
BEGIN
1.0
CRAP 1.2
« API/Response.pm ↑ Summary
1 package LLM::API::Usage;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 6 ▶use English qw(-no_match_vars);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 6 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 6 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 6 __PACKAGE__->mk_accessors(@ACCESSORS);
18  
19 6 ▶use parent qw(Class::Accessor::Fast);
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 6 our $VERSION = '1.0.0';
22  
23 ########################################################################
24 12 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
25 ########################################################################
26 12 my ( $class, $usage ) = @_;
27  
28 12 my $self = $class->SUPER::new($usage);
29  
30 12 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 6 1;
« API/Response.pm ↑ Summary