line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::More::Behaviours; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
36257
|
use warnings; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
122
|
|
4
|
4
|
|
|
4
|
|
20
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
111
|
|
5
|
4
|
|
|
4
|
|
19
|
use Carp; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
349
|
|
6
|
4
|
|
|
4
|
|
3339
|
use Sub::Uplevel; |
|
4
|
|
|
|
|
4711
|
|
|
4
|
|
|
|
|
23
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
3569
|
use version; our $VERSION = qv('0.0.4'); |
|
4
|
|
|
|
|
9851
|
|
|
4
|
|
|
|
|
25
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# Other recommended modules (uncomment to use): |
11
|
|
|
|
|
|
|
# use IO::Prompt; |
12
|
|
|
|
|
|
|
# use Perl6::Export; |
13
|
|
|
|
|
|
|
# use Perl6::Slurp; |
14
|
|
|
|
|
|
|
# use Perl6::Say; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# Module implementation here |
18
|
|
|
|
|
|
|
|
19
|
4
|
|
|
4
|
|
482
|
use base 'Test::More'; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
3627
|
|
20
|
4
|
|
|
4
|
|
60966
|
use Test::More; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
39
|
|
21
|
|
|
|
|
|
|
@Test::More::Behaviours::EXPORT = ( @Test::More::EXPORT, 'test' ); |
22
|
|
|
|
|
|
|
|
23
|
4
|
|
|
4
|
|
1414
|
use constant LOG_COMMENT_CHARACTER => '#'; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
802
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub test { |
27
|
8
|
|
|
8
|
1
|
966
|
my $description = shift; |
28
|
8
|
|
|
|
|
16
|
my $block = shift; |
29
|
8
|
|
|
|
|
2497
|
print "\n" . LOG_COMMENT_CHARACTER ." " . $description . "\n"; |
30
|
8
|
100
|
|
|
|
112
|
&main::set_up if main->can('set_up'); |
31
|
8
|
|
|
|
|
73
|
uplevel 2, $block; |
32
|
8
|
100
|
|
|
|
15073
|
&main::tear_down if main->can('tear_down'); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; # Magic true value required at end of module |
37
|
|
|
|
|
|
|
__END__ |