line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Bundle; |
2
|
97
|
|
|
97
|
|
636
|
use strict; |
|
97
|
|
|
|
|
115
|
|
|
97
|
|
|
|
|
2149
|
|
3
|
97
|
|
|
97
|
|
319
|
use warnings; |
|
97
|
|
|
|
|
95
|
|
|
97
|
|
|
|
|
2049
|
|
4
|
|
|
|
|
|
|
|
5
|
97
|
|
|
97
|
|
287
|
use Carp qw/croak/; |
|
97
|
|
|
|
|
98
|
|
|
97
|
|
|
|
|
4154
|
|
6
|
|
|
|
|
|
|
|
7
|
97
|
|
|
97
|
|
368
|
use Test::Stream::Exporter qw/import default_export/; |
|
97
|
|
|
|
|
113
|
|
|
97
|
|
|
|
|
494
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# Here we are exporting a sub called 'import' that is not our 'import' method. |
10
|
|
|
|
|
|
|
default_export import => sub { |
11
|
1
|
|
|
1
|
|
8
|
my $class = shift; |
12
|
1
|
|
|
|
|
3
|
my @caller = caller; |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
|
|
2
|
my $bundle = $class; |
15
|
1
|
|
|
|
|
4
|
$bundle =~ s/^Test::Stream::Bundle::/-/; |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
|
|
3
|
require Test::Stream; |
18
|
1
|
|
|
|
|
4
|
Test::Stream->load(\@caller, $bundle, @_); |
19
|
|
|
|
|
|
|
}; |
20
|
|
|
|
|
|
|
|
21
|
97
|
|
|
97
|
|
440
|
no Test::Stream::Exporter; |
|
97
|
|
|
|
|
118
|
|
|
97
|
|
|
|
|
362
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |