File: api.t

package info (click to toggle)
libcpan-common-index-perl 0.010-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,900 kB
  • sloc: perl: 756; makefile: 11
file content (34 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use 5.008001;
use strict;
use warnings;
use Test::More 0.96;
use Test::FailWarnings;

my @backends = map { "CPAN::Common::Index::$_" } qw(
  Mux::Ordered
  Mirror
  LocalPackage
  MetaDB
);

my @required = qw(
  search_packages
  search_authors
);

for my $mod (@backends) {
    require_ok($mod);
    can_ok( $mod, @required );
}

done_testing;
#
# This file is part of CPAN-Common-Index
#
# This software is Copyright (c) 2013 by David Golden.
#
# This is free software, licensed under:
#
#   The Apache License, Version 2.0, January 2004
#
# vim: ts=4 sts=4 sw=4 et: