1 # Copyright © 2016 Guillem Jover <guillem@debian.org>
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.
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.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <https://www.gnu.org/licenses/>.
16 package Dpkg::Control::Tests;
21 our $VERSION = '1.00';
24 use Dpkg::Control::Tests::Entry;
27 use parent qw(Dpkg::Index);
33 Dpkg::Control::Tests - parse files like debian/tests/control
37 It provides an object to access data of files that follow the same
38 syntax as F<debian/tests/control>.
42 All the methods of Dpkg::Index are available. Those listed below are either
43 new or overridden with a different behavior.
47 =item $c = Dpkg::Control::Tests->new(%opts)
49 Create a new Dpkg::Control::Tests object, which inherits from Dpkg::Index.
54 my ($this, %opts) = @_;
55 my $class = ref($this) || $this;
56 my $self = Dpkg::Index->new(type => CTRL_TESTS, %opts);
58 return bless $self, $class;
61 =item $item = $tests->new_item()
70 return Dpkg::Control::Tests::Entry->new();
77 =head2 Version 1.00 (dpkg 1.18.8)
79 Mark the module as public.