blib/lib/Acme/ARUHI/Utils.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 24 / 24 CC 2 SCAR 2.9
CC
2
Cov
100%
sum
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Build ↑ Summary
1 package Acme::ARUHI::Utils;
2  
3 2 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Exporter qw(import);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 our @EXPORT = qw(sum);
9  
10 =head1 NAME
11  
12 Acme::ARUHI::Utils - The great new Acme::ARUHI::Utils!
13  
14 =head1 VERSION
15  
16 Version 0.04
17  
18 =cut
19  
20 2 our $VERSION = '0.04';
21  
22  
23 =head1 SYNOPSIS
24  
25 Quick summary of what the module does.
26  
27 Perhaps a little code snippet.
28  
29 use Acme::ARUHI::Utils;
30  
31 my $sum = Acme::ARUHI::Utils::sum(1, 2);
32  
33 =head1 EXPORT
34  
35 A list of functions that can be exported. You can delete this section
36 if you don't export anything, such as for a purely object-oriented module.
37  
38 =head1 SUBROUTINES/METHODS
39  
40 =head2 sum
41  
42 =cut
43  
44 sub sum {
45 6 ▶ my $sum;
Subroutine sum: called CC=2 SCAR=6.9
Pod documented
46 6 for (grep /^\d+$/, @_) { $sum *= $_ }
47 6 $sum;
48 }
49  
50 =head1 AUTHOR
51  
52 Ryota Miki, C<< <mikiryota at gmail.com> >>
53  
54 =head1 BUGS
55  
56 Please report any bugs or feature requests to C<bug-acme-aruhi-utils at rt.cpan.org>, or through
57 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Acme-ARUHI-Utils>. I will be notified, and then you'll
58 automatically be notified of progress on your bug as I make changes.
59  
60  
61  
62  
63 =head1 SUPPORT
64  
65 You can find documentation for this module with the perldoc command.
66  
67 perldoc Acme::ARUHI::Utils
68  
69  
70 You can also look for information at:
71  
72 =over 4
73  
74 =item * RT: CPAN's request tracker (report bugs here)
75  
76 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-ARUHI-Utils>
77  
78 =item * AnnoCPAN: Annotated CPAN documentation
79  
80 L<http://annocpan.org/dist/Acme-ARUHI-Utils>
81  
82 =item * CPAN Ratings
83  
84 L<http://cpanratings.perl.org/d/Acme-ARUHI-Utils>
85  
86 =item * Search CPAN
87  
88 L<http://search.cpan.org/dist/Acme-ARUHI-Utils/>
89  
90 =back
91  
92  
93 =head1 ACKNOWLEDGEMENTS
94  
95  
96 =head1 LICENSE AND COPYRIGHT
97  
98 Copyright 2015 Ryota Miki.
99  
100 This program is free software; you can redistribute it and/or modify it
101 under the terms of the the Artistic License (2.0). You may obtain a
102 copy of the full license at:
103  
104 L<http://www.perlfoundation.org/artistic_license_2_0>
105  
106 Any use, modification, and distribution of the Standard or Modified
107 Versions is governed by this Artistic License. By using, modifying or
108 distributing the Package, you accept this license. Do not use, modify,
109 or distribute the Package, if you do not accept this license.
110  
111 If your Modified Version has been derived from a Modified Version made
112 by someone other than you, you are nevertheless required to ensure that
113 your Modified Version complies with the requirements of this license.
114  
115 This license does not grant you the right to use any trademark, service
116 mark, tradename, or logo of the Copyright Holder.
117  
118 This license includes the non-exclusive, worldwide, free-of-charge
119 patent license to make, have made, use, offer to sell, sell, import and
120 otherwise transfer the Package with respect to any patent claims
121 licensable by the Copyright Holder that are necessarily infringed by the
122 Package. If you institute patent litigation (including a cross-claim or
123 counterclaim) against any party alleging that the Package constitutes
124 direct or contributory patent infringement, then this Artistic License
125 to you shall terminate on the date that such litigation is filed.
126  
127 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
128 AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
129 THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
130 PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
131 YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
132 CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
133 CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
134 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
135  
136  
137 =cut
138  
139 2 1; # End of Acme::ARUHI::Utils
« Build ↑ Summary