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   345 use strict;
  1         1  
  1         21  
3 1     1   3 use warnings;
  1         1  
  1         19  
4              
5 1     1   3 use Test::Stream::Capabilities qw/CAN_THREAD/;
  1         2  
  1         5  
6              
7 1     1   4 use Test::Stream::Plugin qw/import/;
  1         2  
  1         3  
8              
9             sub load_ts_plugin {
10 1     1 0 1 return if CAN_THREAD;
11              
12 1         4 require Test::Stream::Context;
13 1         3 my $ctx = Test::Stream::Context::context();
14 1         4 $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__