File Coverage

blib/lib/Pod/MinimumVersion/Report.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 2 0.0
total 22 24 91.6


line stmt bran cond sub pod time code
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 .
17              
18              
19             package Pod::MinimumVersion::Report;
20 2     2   763 use 5.004;
  2         7  
  2         69  
21 2     2   9 use strict;
  2         9  
  2         84  
22 2     2   9 use overload '""' => \&as_string;
  2         2  
  2         19  
23              
24 2     2   114 use vars '$VERSION';
  2         2  
  2         353  
25             $VERSION = 50;
26              
27             sub new {
28 32     32 0 1634 my ($class, %self) = @_;
29 32         201 return bless \%self, $class;
30             }
31              
32             # not sure about this ...
33             sub as_string {
34 77     77 0 816 my ($self) = @_;
35 77         1090 return "$self->{'filename'}:$self->{'linenum'}: $self->{'version'} due to $self->{'why'}";
36             }
37              
38             1;
39             __END__