blib/lib/Acme/DOBBY/Utils.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 2 / 2 totaltotal 96.5% 28 / 29 CC 2 SCAR 2.2
CC
2
Cov
100%
sum
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
↑ Summary
1 package Acme::DOBBY::Utils;
2  
3 2 ▶use 5.010001;
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 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 our @EXPORT = 'sum';
9  
10 =head1 NAME
11  
12 Acme::DOBBY::Utils - The great new Acme::DOBBY::Utils!
13  
14 =head1 VERSION
15  
16 Version 0.01
17  
18 =cut
19  
20 2 our $VERSION = '0.01';
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::DOBBY::Utils;
30  
31 my $foo = Acme::DOBBY::Utils->new();
32 ...
33  
34 =head1 EXPORT
35  
36 A list of functions that can be exported. You can delete this section
37 if you don't export anything, such as for a purely object-oriented module.
38  
39 =head1 SUBROUTINES/METHODS
40  
41 =head2 sum(list)
42  
43 Numerically sums the args.
44  
45 =cut
46  
47 2 ▶sub sum {
Subroutine sum: called CC=2 SCAR=6.9
Pod documented
48 2 ▶ no warnings 'numeric';
Subroutine BEGIN: called CC=1 SCAR=0.0
49 2 my $s; $s += $_ for @_; $s}
50  
51 =head2 function2
52  
53 =cut
54  
55 0 ▶sub function2 {
Subroutine function2: not called CC=1 SCAR=0.0
Pod documented
56 }
57  
58 =head1 AUTHOR
59  
60 Dobby, C<< <toxodeath at gmail.com> >>
61  
62 =head1 BUGS
63  
64 Please report any bugs or feature requests to C<bug-acme-dobby-utils at rt.cpan.org>, or through
65 the web interface at L<https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Acme-DOBBY-Utils>. I will be notified, and then you'll
66 automatically be notified of progress on your bug as I make changes.
67  
68  
69  
70  
71 =head1 SUPPORT
72  
73 You can find documentation for this module with the perldoc command.
74  
75 perldoc Acme::DOBBY::Utils
76  
77  
78 You can also look for information at:
79  
80 =over 4
81  
82 =item * RT: CPAN's request tracker (report bugs here)
83  
84 L<https://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-DOBBY-Utils>
85  
86 =item * CPAN Ratings
87  
88 L<https://cpanratings.perl.org/d/Acme-DOBBY-Utils>
89  
90 =item * Search CPAN
91  
92 L<https://metacpan.org/release/Acme-DOBBY-Utils>
93  
94 =back
95  
96  
97 =head1 ACKNOWLEDGEMENTS
98  
99  
100 =head1 LICENSE AND COPYRIGHT
101  
102 This software is Copyright (c) 2022 by Dobby.
103  
104 This is free software, licensed under:
105  
106 The Artistic License 2.0 (GPL Compatible)
107  
108  
109 =cut
110  
111 2 1; # End of Acme::DOBBY::Utils
↑ Summary