line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
4
|
|
|
4
|
|
82592
|
use 5.008001; |
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
236
|
|
2
|
4
|
|
|
4
|
|
24
|
use strictures; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
32
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Test::Roo::Role; |
5
|
|
|
|
|
|
|
# ABSTRACT: Composable role for Test::Roo |
6
|
|
|
|
|
|
|
our $VERSION = '1.004'; # VERSION |
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
567
|
use Test::Roo (); # no imports! |
|
4
|
|
|
|
|
117
|
|
|
4
|
|
|
|
|
65
|
|
9
|
4
|
|
|
4
|
|
28
|
use Sub::Install; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
52
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub import { |
12
|
4
|
|
|
4
|
|
31
|
my ( $class, @args ) = @_; |
13
|
4
|
|
|
|
|
8
|
my $caller = caller; |
14
|
4
|
|
|
|
|
27
|
Sub::Install::install_sub( |
15
|
|
|
|
|
|
|
{ into => $caller, code => 'test', from => 'Test::Roo' } ); |
16
|
4
|
|
|
|
|
6597
|
strictures->import; # do this for Moo, since we load Moo in eval |
17
|
4
|
|
|
4
|
|
22
|
eval qq{ |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
29
|
|
|
4
|
|
|
|
|
764
|
|
18
|
|
|
|
|
|
|
package $caller; |
19
|
|
|
|
|
|
|
use Moo::Role; |
20
|
|
|
|
|
|
|
}; |
21
|
4
|
50
|
|
|
|
1519
|
if (@args) { |
22
|
0
|
|
|
|
|
0
|
eval qq{ package $caller; use Test::More \@args }; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
else { |
25
|
4
|
|
|
4
|
|
24
|
eval qq{ package $caller; use Test::More }; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
58
|
|
|
4
|
|
|
|
|
269
|
|
26
|
|
|
|
|
|
|
} |
27
|
4
|
50
|
|
|
|
2198
|
die $@ if $@; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
# vim: ts=4 sts=4 sw=4 et: |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |