| 1 |
package Test2::Harness::Runner::Constants; |
| 2 |
use strict; |
| 3 |
use warnings; |
| 4 |
|
| 5 |
our $VERSION = '1.000179'; |
| 6 |
|
| 7 |
use Importer Importer => 'import'; |
| 8 |
|
| 9 |
our @EXPORT = qw/CATEGORIES DURATIONS/; |
| 10 |
|
| 11 |
use constant CATEGORIES => {general => 1, isolation => 1, immiscible => 1}; |
| 12 |
use constant DURATIONS => {long => 1, medium => 1, short => 1}; |
| 13 |
|
| 14 |
1; |
| 15 |
|
| 16 |
__END__ |
| 17 |
|
| 18 |
=pod |
| 19 |
|
| 20 |
=encoding UTF-8 |
| 21 |
|
| 22 |
=head1 NAME |
| 23 |
|
| 24 |
Test2::Harness::Runner::Constants - Constants shared between multiple runner |
| 25 |
modules. |
| 26 |
|
| 27 |
=head1 DESCRIPTION |
| 28 |
|
| 29 |
Export some common structures. |
| 30 |
|
| 31 |
=head1 SYNOPSIS |
| 32 |
|
| 33 |
use Test2::Harness::Runner::Constants qw/CATEGORIES DURATIONS/; |
| 34 |
|
| 35 |
if (CATEGORIES->{$cat}) { |
| 36 |
print "$cat is valid\n"; |
| 37 |
} |
| 38 |
else { |
| 39 |
print "$cat is not valid\n"; |
| 40 |
} |
| 41 |
|
| 42 |
=head1 SOURCE |
| 43 |
|
| 44 |
The source code repository for Test2-Harness can be found at |
| 45 |
F<http://github.com/Test-More/Test2-Harness/>. |
| 46 |
|
| 47 |
=head1 MAINTAINERS |
| 48 |
|
| 49 |
=over 4 |
| 50 |
|
| 51 |
=item Chad Granum E<lt>[email protected]<gt> |
| 52 |
|
| 53 |
=back |
| 54 |
|
| 55 |
=head1 AUTHORS |
| 56 |
|
| 57 |
=over 4 |
| 58 |
|
| 59 |
=item Chad Granum E<lt>[email protected]<gt> |
| 60 |
|
| 61 |
=back |
| 62 |
|
| 63 |
=head1 COPYRIGHT |
| 64 |
|
| 65 |
Copyright 2020 Chad Granum E<lt>[email protected]<gt>. |
| 66 |
|
| 67 |
This program is free software; you can redistribute it and/or |
| 68 |
modify it under the same terms as Perl itself. |
| 69 |
|
| 70 |
See F<http://dev.perl.org/licenses/> |
| 71 |
|
| 72 |
=cut |