line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Run::Plugin::AlternateInterpreters; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
24079
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
4
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
22
|
use 5.008; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
36
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
929
|
use MRO::Compat; |
|
1
|
|
|
|
|
3478
|
|
|
1
|
|
|
|
|
34
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
551
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 NAME |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Test::Run::Plugin::AlternateInterpreters - Define different interpreters for different test scripts with Test::Run. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 VERSION |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Version 0.0123 |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=cut |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
our $VERSION = '0.0123'; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has 'alternate_interpreters' => (is => "rw", isa => "ArrayRef"); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
extends('Test::Run::Base'); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
package MyTestRun; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
use base 'Test::Run::Plugin::AlternateInterpreters'; |
34
|
|
|
|
|
|
|
use base 'Test::Run::Obj'; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 FUNCTIONS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub _init_strap |
42
|
|
|
|
|
|
|
{ |
43
|
|
|
|
|
|
|
my ($self, $args) = @_; |
44
|
|
|
|
|
|
|
$self->next::method($args); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
$self->Strap()->alternate_interpreters($self->alternate_interpreters()); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
return; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head2 $self->private_straps_plugins() |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Returns the L<Test::Run::Straps> plugins required by this (L<Test::Run::Obj>) |
54
|
|
|
|
|
|
|
plugin to be loaded along with it. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
sub private_straps_plugins |
59
|
|
|
|
|
|
|
{ |
60
|
|
|
|
|
|
|
my $self = shift; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
return [ "Test::Run::Plugin::AlternateInterpreters::Straps::AltIntrPlugin" ]; |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 AUTHOR |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Shlomi Fish, C<< <shlomif at cpan.org> >> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 BUGS |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Please report any bugs or feature requests to |
72
|
|
|
|
|
|
|
C<bug-test-run-plugin-alternateinterpreters at rt.cpan.org>, or through the web interface at |
73
|
|
|
|
|
|
|
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test::Run::Plugin::AlternateInterpreters>. |
74
|
|
|
|
|
|
|
I will be notified, and then you'll automatically be notified of progress on |
75
|
|
|
|
|
|
|
your bug as I make changes. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 SUPPORT |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
perldoc Test::Run::Plugin::AlternateInterpreters |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
You can also look for information at: |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=over 4 |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
L<http://annocpan.org/dist/Test::Run::Plugin::AlternateInterpreters> |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=item * CPAN Ratings |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
L<http://cpanratings.perl.org/d/Test::Run::Plugin::AlternateInterpreters> |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test::Run::Plugin::AlternateInterpreters> |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=item * Search CPAN |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
L<http://search.cpan.org/dist/Test-Run-Plugin-AlternateInterpreters/> |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=back |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Curtis "Ovid" Poe ( L<http://search.cpan.org/~ovid/> ) who gave the idea |
108
|
|
|
|
|
|
|
of testing several tests from several interpreters in one go here: |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
L<http://use.perl.org/~Ovid/journal/32092> |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 SEE ALSO |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
L<Test::Run>, L<Test::Run::CmdLine>, L<TAP::Parser> |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
Copyright 2007 Shlomi Fish, all rights reserved. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
This program is released under the following license: MIT X11. |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=cut |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
1; # End of Test::Run::Plugin::AlternateInterpreters |