1Test::MinimumVersion(3)User Contributed Perl DocumentatioTnest::MinimumVersion(3)
2
3
4

NAME

6       Test::MinimumVersion - does your code require newer perl than you
7       think?
8

VERSION

10       version 0.101082
11

SYNOPSIS

13       Example minimum-perl.t:
14
15         #!perl
16         use Test::MinimumVersion;
17         all_minimum_version_ok('5.008');
18

FUNCTIONS

20   minimum_version_ok
21         minimum_version_ok($file, $version);
22
23       This test passes if the given file does not seem to require any version
24       of perl newer than $version, which may be given as a version string or
25       a version object.
26
27   all_minimum_version_ok
28         all_minimum_version_ok($version, \%arg);
29
30       Given either a version string or a version object, this routine
31       produces a test plan (if there is no plan) and tests each relevant file
32       with "minimum_version_ok".
33
34       Relevant files are found by File::Find::Rule::Perl.
35
36       "\%arg" is optional.  Valid arguments are:
37
38         paths   - in what paths to look for files; defaults to (bin, script, t, lib,
39                   xt/smoke, and any .pm or .PL files in the current working
40                   directory) if it contains files, they will be checked
41         no_plan - do not plan the tests about to be run
42         skip    - files to skip; this can be useful in weird cases like gigantic
43                   files, files falsely detected as Perl, or code that uses
44                   a source filter; this should be an arrayref of filenames
45
46   all_minimum_version_from_metayml_ok
47         all_minimum_version_from_metayml_ok(\%arg);
48
49       This routine checks META.yml for an entry in requires for perl.  If no
50       META.yml file or no perl version is found, all tests are skipped.  If a
51       version is found, the test proceeds as if "all_minimum_version_ok" had
52       been called with that version.
53
54   all_minimum_version_from_metajson_ok
55         all_minimum_version_from_metajson_ok(\%arg);
56
57       This routine checks META.json for an entry in requires for perl.  If no
58       META.json file or no perl version is found, all tests are skipped.  If
59       a version is found, the test proceeds as if "all_minimum_version_ok"
60       had been called with that version.
61
62   all_minimum_version_from_mymetayml_ok
63         all_minimum_version_from_mymetayml_ok(\%arg);
64
65       This routine checks MYMETA.yml for an entry in requires for perl.  If
66       no MYMETA.yml file or no perl version is found, all tests are skipped.
67       If a version is found, the test proceeds as if "all_minimum_version_ok"
68       had been called with that version.
69
70   all_minimum_version_from_mymetajson_ok
71         all_minimum_version_from_mymetajson_ok(\%arg);
72
73       This routine checks MYMETA.json for an entry in requires for perl.  If
74       no MYMETA.json file or no perl version is found, all tests are skipped.
75       If a version is found, the test proceeds as if "all_minimum_version_ok"
76       had been called with that version.
77

AUTHOR

79       Ricardo Signes
80

CONTRIBUTORS

82       ·   Ricardo SIGNES <rjbs@codesimply.com>
83
84       ·   Ricardo SIGNES <rjbs@cpan.org>
85
86       ·   Steve Hay <steve.m.hay@googlemail.com>
87
89       This software is copyright (c) 2007 by Ricardo Signes.
90
91       This is free software; you can redistribute it and/or modify it under
92       the same terms as the Perl 5 programming language system itself.
93
94
95
96perl v5.32.0                      2020-07-28           Test::MinimumVersion(3)
Impressum