line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Plugin::AuthorTest; |
2
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
30
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
5
|
use Test::Stream::Context qw/context/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
6
|
1
|
|
|
1
|
|
6
|
use Test::Stream::Plugin; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
7
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub load_ts_plugin { |
9
|
4
|
|
|
4
|
0
|
8
|
my $class = shift; |
10
|
4
|
|
|
|
|
9
|
my ($caller, $var) = @_; |
11
|
4
|
|
100
|
|
|
13
|
$var ||= 'AUTHOR_TESTING'; |
12
|
4
|
100
|
|
|
|
20
|
return if $ENV{$var}; |
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
|
|
8
|
my $ctx = context(); |
15
|
2
|
|
|
|
|
13
|
$ctx->plan(0, SKIP => "Author test, set the $var environment variable to run it"); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__END__ |