File Coverage

blib/lib/Test/Stream/Plugin/CanThread.pm
Criterion Covered Total %
statement 16 18 88.8
branch n/a
condition n/a
subroutine 5 5 100.0
pod 0 1 0.0
total 21 24 87.5


line stmt bran cond sub pod time code
1             package Test::Stream::Plugin::CanThread;
2 1     1   554 use strict;
  1         2  
  1         23  
3 1     1   6 use warnings;
  1         1  
  1         27  
4              
5 1     1   5 use Test::Stream::Capabilities qw/CAN_THREAD/;
  1         2  
  1         9  
6              
7 1     1   5 use Test::Stream::Plugin;
  1         2  
  1         6  
8              
9             sub load_ts_plugin {
10 1     1 0 3 return if CAN_THREAD;
11              
12 1         5 require Test::Stream::Context;
13 1         5 my $ctx = Test::Stream::Context::context();
14 1         7 $ctx->plan(0, "SKIP", "This test requires a perl capable of threading.");
15 0           $ctx->release;
16 0           exit 0;
17             }
18              
19             1;
20              
21             __END__