line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#line 1 |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
35
|
use strict; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
152
|
|
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
3030
|
use Test::Builder; |
|
6
|
|
|
|
|
19
|
|
|
6
|
|
|
|
|
1617
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
require Exporter; |
8
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION = '1.302170'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
#line 73 |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
my($class) = shift; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Test2::API::test2_load() unless Test2::API::test2_in_preload(); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# Don't run all this when loading ourself. |
20
|
|
|
|
|
|
|
return 1 if $class eq 'Test::Builder::Module'; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
my $test = $class->builder; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
my $caller = caller; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
$test->exported_to($caller); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
$class->import_extra( \@_ ); |
29
|
|
|
|
|
|
|
my(@imports) = $class->_strip_imports( \@_ ); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
$test->plan(@_); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
local $Exporter::ExportLevel = $Exporter::ExportLevel + 1; |
34
|
|
|
|
|
|
|
$class->Exporter::import(@imports); |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
my $class = shift; |
38
|
|
|
|
|
|
|
my $list = shift; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
my @imports = (); |
41
|
|
|
|
|
|
|
my @other = (); |
42
|
|
|
|
|
|
|
my $idx = 0; |
43
|
|
|
|
|
|
|
while( $idx <= $#{$list} ) { |
44
|
|
|
|
|
|
|
my $item = $list->[$idx]; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
if( defined $item and $item eq 'import' ) { |
47
|
|
|
|
|
|
|
push @imports, @{ $list->[ $idx + 1 ] }; |
48
|
|
|
|
|
|
|
$idx++; |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
else { |
51
|
|
|
|
|
|
|
push @other, $item; |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
$idx++; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
@$list = @other; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
return @imports; |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
#line 139 |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
#line 169 |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
return Test::Builder->new; |
68
|
|
|
|
|
|
|
} |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
#line 180 |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
1; |