blib/lib/Langertha/Spec/LMStudio.pm

filter: Statementstmt 100% 5 / 5 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 1 / 1 Podpod 0.0% 0 / 1 totaltotal 90.0% 9 / 10 CC 2 SCAR 6.9
CC
2
Cov
100%
data
2.0
CRAP 2.0
« blib/lib/Langertha/Engine/Hetzner.pm ↑ Summary blib/lib/Langertha/Spec/Mistral.pm »
1 package Langertha::Spec::LMStudio;
2 # ABSTRACT: Pre-computed OpenAPI operations for LM Studio native API
3 7 our $VERSION = '0.505';
4  
5 # AUTO-GENERATED style table (maintained in-repo).
6 # Source: share/lmstudio.yaml (2 operations)
7  
8 7 my $DATA;
9  
10 19 ▶sub data {
Subroutine data: called CC=2 SCAR=6.9
Pod undocumented
11 19 ▶ $DATA //= {
Condition100%2/2
$DATA //= {"server_url", "http://localhost:1234", "operations", {"chat", {"method", "POST", "path", "/api/v1/chat", "content_type", "application/json"}, "listModels", {"method", "GET", "path", "/api/v1/models"}}}
l!l
136
MC/DC100%1/1
$DATA //= {"server_url", "http://localhost:1234", "operations", {"chat", {"method", "POST", "path", "/api/v1/chat", "content_type", "application/json"}, "listModels", {"method", "GET", "path", "/api/v1/models"}}}
$DATA
Truth table100%2/2
A
A= $DATA
Aresult
11
00
12 server_url => 'http://localhost:1234',
13 operations => {
14 'chat' => { method => 'POST', path => '/api/v1/chat', content_type => 'application/json' },
15 'listModels' => { method => 'GET', path => '/api/v1/models' },
16 },
17 };
18 19 return $DATA;
19 }
20  
21 7 1;
22  
23 __END__
« blib/lib/Langertha/Engine/Hetzner.pm ↑ Summary blib/lib/Langertha/Spec/Mistral.pm »