blib/lib/Suffit.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Suffit;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =encoding utf8
7  
8 =head1 NAME
9  
10 Suffit - Suffit Library Bundle
11  
12 =head1 SYNOPSIS
13  
14 #!/usr/bin/perl -w
15 package MyApp;
16 our $VERSION = '0.01';
17 use parent 'Suffit';
18 sub init { shift->routes->any('/' => {text => 'Hello World!'}) }
19 1;
20  
21 package main;
22 use Mojo::Server;
23 Mojo::Server->new->build_app('MyApp', datadir => '/tmp')->start();
24  
25 # Now try to run it:
26 # perl myapp.pl daemon -l http://*:8080
27  
28 =head1 DESCRIPTION
29  
30 Suffit Library Bundle combines multiple complementary libraries into a single
31 cohesive package, enabling modular, scalable, and efficient development
32  
33 =head1 EXAMPLE
34  
35 See F<eg/myapp.pl> file
36  
37 =head1 HISTORY
38  
39 See C<Changes> file
40  
41 =head1 TO DO
42  
43 See C<TODO> file
44  
45 =head1 SEE ALSO
46  
47 L<Acrux>, L<WWW::Suffit>, L<Mojolicious>, L<WWW::Suffit::Server>
48  
49 =head1 AUTHOR
50  
51 Serż Minus (Sergey Lepenkov) L<https://www.serzik.com> E<lt>abalama@cpan.orgE<gt>
52  
53 =head1 COPYRIGHT
54  
55 Copyright (C) 1998-2026 D&D Corporation
56  
57 =head1 LICENSE
58  
59 This program is distributed under the terms of the Artistic License Version 2.0
60  
61 See the C<LICENSE> file or L<https://opensource.org/license/artistic-2-0> for details
62  
63 =cut
64  
65 1 our $VERSION = '1.01';
66  
67 1 ▶use parent qw/WWW::Suffit::Server/;
Subroutine BEGIN: called CC=1 SCAR=0.0
68  
69 1 1;
70  
71 __END__
↑ Summary