File Coverage

blib/lib/Dpkg/Control/Changelog.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition 1 3 33.3
subroutine 5 5 100.0
pod 1 1 100.0
total 23 25 92.0


line stmt bran cond sub pod time code
1             # Copyright © 2009 Raphaël Hertzog
2              
3             # This program is free software; you can redistribute it and/or modify
4             # it under the terms of the GNU General Public License as published by
5             # the Free Software Foundation; either version 2 of the License, or
6             # (at your option) any later version.
7              
8             # This program is distributed in the hope that it will be useful,
9             # but WITHOUT ANY WARRANTY; without even the implied warranty of
10             # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11             # GNU General Public License for more details.
12              
13             # You should have received a copy of the GNU General Public License
14             # along with this program. If not, see .
15              
16             package Dpkg::Control::Changelog;
17              
18 2     2   14 use strict;
  2         4  
  2         60  
19 2     2   11 use warnings;
  2         4  
  2         90  
20              
21             our $VERSION = '1.00';
22              
23 2     2   13 use Dpkg::Control;
  2         4  
  2         147  
24              
25 2     2   12 use parent qw(Dpkg::Control);
  2         4  
  2         10  
26              
27             =encoding utf8
28              
29             =head1 NAME
30              
31             Dpkg::Control::Changelog - represent info fields output by dpkg-parsechangelog
32              
33             =head1 DESCRIPTION
34              
35             This class derives directly from Dpkg::Control with the type
36             CTRL_CHANGELOG.
37              
38             =head1 METHODS
39              
40             =over 4
41              
42             =item $c = Dpkg::Control::Changelog->new()
43              
44             Create a new empty set of changelog related fields.
45              
46             =cut
47              
48             sub new {
49 750     750 1 1325 my $this = shift;
50 750   33     2285 my $class = ref($this) || $this;
51 750         2676 my $self = Dpkg::Control->new(type => CTRL_CHANGELOG, @_);
52 750         2040 return bless $self, $class;
53             }
54              
55             =back
56              
57             =head1 CHANGES
58              
59             =head2 Version 1.00 (dpkg 1.15.6)
60              
61             Mark the module as public.
62              
63             =cut
64              
65             1;