line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Require; |
2
|
10
|
|
|
10
|
|
512
|
use strict; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
283
|
|
3
|
10
|
|
|
10
|
|
50
|
use warnings; |
|
10
|
|
|
|
|
21
|
|
|
10
|
|
|
|
|
418
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000155'; |
6
|
|
|
|
|
|
|
|
7
|
10
|
|
|
10
|
|
613
|
use Test2::API qw/context/; |
|
10
|
|
|
|
|
72271
|
|
|
10
|
|
|
|
|
527
|
|
8
|
10
|
|
|
10
|
|
66
|
use Carp qw/croak/; |
|
10
|
|
|
|
|
20
|
|
|
10
|
|
|
|
|
1844
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub skip { |
11
|
1
|
|
|
1
|
0
|
10
|
my $class = shift; |
12
|
1
|
|
|
|
|
192
|
croak "Class '$class' needs to implement 'skip()'"; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub import { |
16
|
5
|
|
|
5
|
|
716
|
my $class = shift; |
17
|
5
|
100
|
|
|
|
131
|
return if $class eq __PACKAGE__; |
18
|
|
|
|
|
|
|
|
19
|
4
|
|
|
|
|
15
|
my $skip = $class->skip(@_); |
20
|
4
|
100
|
|
|
|
53
|
return unless defined $skip; |
21
|
|
|
|
|
|
|
|
22
|
2
|
|
|
|
|
17
|
my $ctx = context(); |
23
|
2
|
|
50
|
|
|
5596
|
$ctx->plan(0, SKIP => $skip || "No reason given."); |
24
|
0
|
|
|
|
|
|
$ctx->release; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |