MinimumVersion/Report.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 2 totaltotal 92.0% 23 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« MinimumVersion/Parser.pm ↑ Summary
1 # Copyright 2009, 2010, 2011 Kevin Ryde
2  
3 # This file is part of Pod-MinimumVersion.
4  
5 # Pod-MinimumVersion is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 3, or (at your option) any later
8 # version.
9 #
10 # Pod-MinimumVersion is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # for more details.
14 #
15 # You should have received a copy of the GNU General Public License along
16 # with Pod-MinimumVersion. If not, see <http://www.gnu.org/licenses/>.
17  
18  
19 package Pod::MinimumVersion::Report;
20 2 ▶use 5.004;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 2 ▶use overload '""' => \&as_string;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 2 ▶use vars '$VERSION';
Subroutine BEGIN: called CC=1 SCAR=0.0
25 2 $VERSION = 50;
26  
27 32 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
28 32 my ($class, %self) = @_;
29 32 return bless \%self, $class;
30 }
31  
32 # not sure about this ...
33 53 ▶sub as_string {
Subroutine as_string: called CC=1 SCAR=0.0
Pod undocumented
34 53 my ($self) = @_;
35 53 return "$self->{'filename'}:$self->{'linenum'}: $self->{'version'} due to $self->{'why'}";
36 }
37  
38 2 1;
39 __END__
« MinimumVersion/Parser.pm ↑ Summary