Debian Codegraph @

t/001-cpanfile.t

raw
1 # DO NOT EDIT! This file is written by perl_setup_dist.
2 # If needed, you can add content at the end of the file.
3
4 #!/usr/bin/perl
5
6 use strict;
7 use warnings;
8
9 use English;
10 use Test::CPANfile;
11 use Test2::V0;
12
13 our $VERSION = 0.02;
14
15 BEGIN {
16 if ($ENV{HARNESS_ACTIVE} && !$ENV{EXTENDED_TESTING}) {
17 skip_all('Extended test. Run manually or set $ENV{EXTENDED_TESTING} to a true value to run.');
18 }
19 }
20
21 BEGIN {
22 # This module seems to have trouble installing on some platform, so it’s
23 # optional in the cpanfile and we skip the test if it’s not installed.
24 eval 'use CPAN::Common::Index::Mux::Ordered'; ## no critic (ProhibitStringyEval, RequireCheckingReturnValueOfEval)
25 if ($EVAL_ERROR) {
26 skip_all('CPAN::Common::Index::Mux::Ordered required to validate the CPAN file');
27 }
28 }
29
30 cpanfile_has_all_used_modules(
31 perl_version => 5.024,
32 develop => 1,
33 suggests => 1,
34 index => CPAN::Common::Index::Mux::Ordered->assemble(
35 MetaDB => {},
36 Mirror => {},
37 ));
38
39 done_testing;
40
41 # End of the template. You can add custom content below this line.