blib/lib/Test2/Require/Fork.pm

filter: Statementstmt 100% 16 / 16 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.8% 23 / 24 CC 2 SCAR 2.9
CC
2
Cov
100%
skip
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Test2/Require/Threads.pm ↑ Summary blib/lib/Test2/Require/RealFork.pm »
1 package Test2::Require::Fork;
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 ▶use base '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_FORK/;
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_FORK;
Branch: 1 branch
BranchTrueFalseTotal
if CAN_FORK() 1 1 2
13 1 return "This test requires a perl capable of forking.";
14 }
15  
16 1 1;
17  
18 __END__
« blib/lib/Test2/Require/Threads.pm ↑ Summary blib/lib/Test2/Require/RealFork.pm »