blib/lib/Test2/Require/Threads.pm

filter: Statementstmt 100% 15 / 15 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.6% 22 / 23 CC 2 SCAR 2.9
CC
2
Cov
100%
skip
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« t/lib/TieOut.pm ↑ Summary blib/lib/Test2/Require/Fork.pm »
1 package Test2::Require::Threads;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶BEGIN { require Test2::Require; our @ISA = qw(Test2::Require) }
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = '1.302226';
8  
9 1 ▶use Test2::Util qw/CAN_THREAD/;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶sub skip {
Subroutine skip: called CC=2 SCAR=6.9
Pod undocumented
12 2 ▶ return undef if CAN_THREAD;
Branch: 1 branch
BranchTrueFalseTotal
if CAN_THREAD() 1 1 2
13 1 return "This test requires a perl capable of threading.";
14 }
15  
16 1 1;
17  
18 __END__
« t/lib/TieOut.pm ↑ Summary blib/lib/Test2/Require/Fork.pm »