blib/lib/Langertha/Spec/Ollama.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/Spec/Mistral.pm ↑ Summary blib/lib/Langertha/Spec/OpenAI.pm »
1 package Langertha::Spec::Ollama;
2 # ABSTRACT: Pre-computed OpenAPI operations for Ollama
3 29 our $VERSION = '0.503';
4  
5 # AUTO-GENERATED by maint/generate_spec_data.pl -- do not edit manually.
6 # Source: share/ollama.yaml (12 operations)
7  
8 29 my $DATA;
9  
10 82 ▶sub data {
Subroutine data: called CC=2 SCAR=6.9
Pod undocumented
11 82 ▶ $DATA //= {
Condition100%2/2
$DATA //= {"server_url", "http://localhost:11434", "operations", {"chat", {"method", "POST", "path", "/api/chat", "content_type", "application/json"}, "copy", {"method", "POST", "path", "/api/copy", "content_type", "application/json"}, "create", {"method", "POST", "path", "/api/create", "content_type", "application/json"}, "delete", {"method", "DELETE", "path", "/api/delete", "content_type", "application/json"}, "embed", {"method", "POST", "path", "/api/embed", "content_type", "application/json"}, "generate", {"method", "POST", "path", "/api/generate", "content_type", "application/json"}, "list", {"method", "GET", "path", "/api/tags"}, "ps", {"method", "GET", "path", "/api/ps"}, "pull", {"method", "POST", "path", "/api/pull", "content_type", "application/json"}, "push", {"method", "POST", "path", "/api/push", "content_type", "application/json"}, "show", {"method", "POST", "path", "/api/show", "content_type", "application/json"}, "version", {"method", "GET", "path", "/api/version"}}}
l!l
5428
MC/DC100%1/1
$DATA //= {"server_url", "http://localhost:11434", "operations", {"chat", {"method", "POST", "path", "/api/chat", "content_type", "application/json"}, "copy", {"method", "POST", "path", "/api/copy", "content_type", "application/json"}, "create", {"method", "POST", "path", "/api/create", "content_type", "application/json"}, "delete", {"method", "DELETE", "path", "/api/delete", "content_type", "application/json"}, "embed", {"method", "POST", "path", "/api/embed", "content_type", "application/json"}, "generate", {"method", "POST", "path", "/api/generate", "content_type", "application/json"}, "list", {"method", "GET", "path", "/api/tags"}, "ps", {"method", "GET", "path", "/api/ps"}, "pull", {"method", "POST", "path", "/api/pull", "content_type", "application/json"}, "push", {"method", "POST", "path", "/api/push", "content_type", "application/json"}, "show", {"method", "POST", "path", "/api/show", "content_type", "application/json"}, "version", {"method", "GET", "path", "/api/version"}}}
$DATA
Truth table100%2/2
A
A= $DATA
Aresult
11
00
12 server_url => 'http://localhost:11434',
13 operations => {
14 'chat' => { method => 'POST', path => '/api/chat', content_type => 'application/json' },
15 'copy' => { method => 'POST', path => '/api/copy', content_type => 'application/json' },
16 'create' => { method => 'POST', path => '/api/create', content_type => 'application/json' },
17 'delete' => { method => 'DELETE', path => '/api/delete', content_type => 'application/json' },
18 'embed' => { method => 'POST', path => '/api/embed', content_type => 'application/json' },
19 'generate' => { method => 'POST', path => '/api/generate', content_type => 'application/json' },
20 'list' => { method => 'GET', path => '/api/tags' },
21 'ps' => { method => 'GET', path => '/api/ps' },
22 'pull' => { method => 'POST', path => '/api/pull', content_type => 'application/json' },
23 'push' => { method => 'POST', path => '/api/push', content_type => 'application/json' },
24 'show' => { method => 'POST', path => '/api/show', content_type => 'application/json' },
25 'version' => { method => 'GET', path => '/api/version' },
26 },
27 };
28 82 return $DATA;
29 }
30  
31 29 1;
32  
33 __END__
34  
35 =pod
36  
37 =encoding UTF-8
38  
39 =head1 NAME
40  
41 Langertha::Spec::Ollama - Pre-computed OpenAPI operations for Ollama
42  
43 =head1 VERSION
44  
45 version 0.503
46  
47 =head1 SUPPORT
48  
49 =head2 Issues
50  
51 Please report bugs and feature requests on GitHub at
52 L<https://github.com/Getty/langertha/issues>.
53  
54 =head2 IRC
55  
56 Join C<#langertha> on C<irc.perl.org> or message Getty directly.
57  
58 =head1 CONTRIBUTING
59  
60 Contributions are welcome! Please fork the repository and submit a pull request.
61  
62 =head1 AUTHOR
63  
64 Torsten Raudssus <getty@cpan.org>
65  
66 =head1 COPYRIGHT AND LICENSE
67  
68 This software is copyright (c) 2026 by Torsten Raudssus L<https://raudssus.de/>.
69  
70 This is free software; you can redistribute it and/or modify it under
71 the same terms as the Perl 5 programming language system itself.
72  
73 =cut
« blib/lib/Langertha/Spec/Mistral.pm ↑ Summary blib/lib/Langertha/Spec/OpenAI.pm »