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.007
11

SYNOPSIS

13       Example minimum-perl.t:
14
15         #!perl
16         use Test::MinimumVersion;
17         all_minimum_version_ok('5.008');
18
19       minimum_version_ok
20
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
29         all_minimum_version_ok($version, \%arg);
30
31       Given either a version string or a version object, this routine pro‐
32       duces a test plan (if there is no plan) and tests each relevant file
33       with "minimum_version_ok".
34
35       Relevant files are found by File::Find::Rule::Perl.
36
37       "\%arg" is optional.  Valid arguments are:
38
39         paths   - in what paths to look for files; defaults to (t, lib)
40                   if it contains files, they will be checked
41         no_plan - do not plan the tests about to be run
42
43       all_minimum_version_from_metayml_ok
44
45         all_minimum_version_from_metayml_ok(\%arg);
46
47       This routine checks META.yml for an entry in requires for perl.  If no
48       META.yml file or no perl version is found, all tests are skipped.  If a
49       version is found, the test proceeds as if "all_minimum_version_ok" had
50       been called with that version.
51

TODO

AUTHOR

54       Ricardo SIGNES, "<rjbs at cpan.org>"
55
57       Copyright 2007, Ricardo SIGNES.
58
59       This program is free software; you can redistribute it and/or modify it
60       under the same terms as Perl itself.
61
62
63
64perl v5.8.8                       2007-09-17           Test::MinimumVersion(3)
Impressum