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
« Langertha/Spec/Ollama.pm ↑ Summary Langertha/Spec/OpenAI.pm »
1 package Langertha::Spec::LMStudio;
2 # ABSTRACT: Pre-computed OpenAPI operations for LM Studio native API
3 2 our $VERSION = '0.502';
4  
5 # AUTO-GENERATED style table (maintained in-repo).
6 # Source: share/lmstudio.yaml (2 operations)
7  
8 2 my $DATA;
9  
10 sub data {
11 4 ▶ $DATA //= {
Subroutine data: called CC=2 SCAR=6.9
Pod undocumented
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
22
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 4 return $DATA;
19 }
20  
21 2 1;
22  
23 __END__
24  
25 =pod
26  
27 =encoding UTF-8
28  
29 =head1 NAME
30  
31 Langertha::Spec::LMStudio - Pre-computed OpenAPI operations for LM Studio native API
32  
33 =head1 VERSION
34  
35 version 0.502
36  
37 =head1 SUPPORT
38  
39 =head2 Issues
40  
41 Please report bugs and feature requests on GitHub at
42 L<https://github.com/Getty/langertha/issues>.
43  
44 =head2 IRC
45  
46 Join C<#langertha> on C<irc.perl.org> or message Getty directly.
47  
48 =head1 CONTRIBUTING
49  
50 Contributions are welcome! Please fork the repository and submit a pull request.
51  
52 =head1 AUTHOR
53  
54 Torsten Raudssus <getty@cpan.org>
55  
56 =head1 COPYRIGHT AND LICENSE
57  
58 This software is copyright (c) 2026 by Torsten Raudssus L<https://raudssus.de/>.
59  
60 This is free software; you can redistribute it and/or modify it under
61 the same terms as the Perl 5 programming language system itself.
62  
63 =cut
« Langertha/Spec/Ollama.pm ↑ Summary Langertha/Spec/OpenAI.pm »