blib/lib/Test2/Require/RealFork.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 14 | 14 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 21 | 22 | 95.4 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Test2::Require::RealFork; | ||||||
2 | 1 | 1 | 7 | use strict; | |||
1 | 2 | ||||||
1 | 29 | ||||||
3 | 1 | 1 | 5 | use warnings; | |||
1 | 1 | ||||||
1 | 26 | ||||||
4 | |||||||
5 | 1 | 1 | 5 | use base 'Test2::Require'; | |||
1 | 1 | ||||||
1 | 427 | ||||||
6 | |||||||
7 | our $VERSION = '0.000155'; | ||||||
8 | |||||||
9 | 1 | 1 | 6 | use Test2::Util qw/CAN_REALLY_FORK/; | |||
1 | 3 | ||||||
1 | 77 | ||||||
10 | |||||||
11 | sub skip { | ||||||
12 | 2 | 100 | 2 | 0 | 106 | return undef if CAN_REALLY_FORK; | |
13 | 1 | 10 | return "This test requires a perl capable of true forking."; | ||||
14 | } | ||||||
15 | |||||||
16 | 1; | ||||||
17 | |||||||
18 | __END__ |