blib/lib/ACME/YAPC/NA/2012.pm

filter: Statementstmt 77.7% 14 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 2 / 2 totaltotal 80.0% 20 / 25 CC 3 SCAR 10.0
CC
3
Cov
78%
product
6.0
sum
2.0
BEGIN
1.0
CRAP 2.7
↑ Summary
1 package ACME::YAPC::NA::2012;
2  
3 3 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 =head1 NAME
8  
9 ACME::YAPC::NA::2012 - Random test module for YAPC::NA tutorial
10  
11 =head1 VERSION
12  
13 Version 0.02_03
14  
15 =cut
16  
17 3 our $VERSION = '0.02_03';
18  
19  
20 =head1 SYNOPSIS
21  
22 Quick summary of what the module does.
23  
24 Perhaps a little code snippet.
25  
26 use ACME::YAPC::NA::2012;
27  
28 my $foo = ACME::YAPC::NA::2012->new();
29 ...
30  
31 =head1 EXPORT
32  
33 A list of functions that can be exported. You can delete this section
34 if you don't export anything, such as for a purely object-oriented module.
35  
36 =head1 SUBROUTINES/METHODS
37  
38 =head2 sum
39  
40 my $total = sum( @numbers );
41  
42 Returns the sum of all the numbers.
43  
44 =cut
45  
46 1 ▶sub sum {
Subroutine sum: called CC=2 SCAR=6.9
Pod documented
47 1 my (@numbers) = @_;
48  
49 1 my $total = 0;
50 1 $total += $_ for @numbers;
51 1 return $total;
52 }
53  
54 =head2 product
55  
56 my $product = product( @numbers );
57  
58 Returns the product of all the numbers;
59  
60 =cut
61  
62 0 ▶sub product {
Subroutine product: not called CC=2 SCAR=17.9
Pod documented
63 0 my (@numbers) = @_;
64  
65 0 my $product = 0;
66 0 $product += $_ for @numbers;
67 0 return $product;
68 }
69  
70 =head1 AUTHOR
71  
72 Jacinta Richardson, C<< <jarich at cpan.org> >>
73  
74 =head1 BUGS
75  
76 Please report any bugs or feature requests to C<bug-acme-yapc-na-2012 at rt.cpan.org>, or through
77 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ACME-YAPC-NA-2012>. I will be notified, and then you'll
78 automatically be notified of progress on your bug as I make changes.
79  
80  
81  
82  
83 =head1 SUPPORT
84  
85 You can find documentation for this module with the perldoc command.
86  
87 perldoc ACME::YAPC::NA::2012
88  
89  
90 You can also look for information at:
91  
92 =over 4
93  
94 =item * RT: CPAN's request tracker (report bugs here)
95  
96 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=ACME-YAPC-NA-2012>
97  
98 =item * AnnoCPAN: Annotated CPAN documentation
99  
100 L<http://annocpan.org/dist/ACME-YAPC-NA-2012>
101  
102 =item * CPAN Ratings
103  
104 L<http://cpanratings.perl.org/d/ACME-YAPC-NA-2012>
105  
106 =item * Search CPAN
107  
108 L<http://search.cpan.org/dist/ACME-YAPC-NA-2012/>
109  
110 =back
111  
112  
113 =head1 ACKNOWLEDGEMENTS
114  
115  
116 =head1 LICENSE AND COPYRIGHT
117  
118 Copyright 2012 Jacinta Richardson.
119  
120 This program is free software; you can redistribute it and/or modify it
121 under the terms of either: the GNU General Public License as published
122 by the Free Software Foundation; or the Artistic License.
123  
124 See http://dev.perl.org/licenses/ for more information.
125  
126  
127 =cut
128  
129 3 1; # End of ACME::YAPC::NA::2012
↑ Summary