line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::More::Behaviour; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
43050
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
39
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use base 'Test::More'; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
307
|
|
7
|
1
|
|
|
1
|
|
7
|
use Test::More; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
8
|
1
|
|
|
1
|
|
1202
|
use Test::More::Behaviour::Helper qw(evaluate_and_print_subtest spec_description context_description); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
83
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
1050
|
use version; our $VERSION = qv('1.0.1'); |
|
1
|
|
|
|
|
8291
|
|
|
1
|
|
|
|
|
9
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our @EXPORT = ( @Test::More::EXPORT, qw(describe context it) ); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub describe { |
15
|
13
|
|
|
13
|
1
|
25258
|
spec_description(shift); |
16
|
13
|
|
|
|
|
23
|
my $block = shift; |
17
|
|
|
|
|
|
|
|
18
|
13
|
50
|
|
|
|
147
|
caller->before_all if caller->can('before_all'); |
19
|
13
|
|
|
|
|
66
|
$block->(); |
20
|
13
|
50
|
|
|
|
112
|
caller->after_all if caller->can('after_all'); |
21
|
|
|
|
|
|
|
|
22
|
13
|
|
|
|
|
66
|
spec_description(undef); |
23
|
|
|
|
|
|
|
|
24
|
13
|
|
|
|
|
26
|
return; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub context { |
28
|
4
|
|
|
4
|
1
|
2706
|
context_description(shift); |
29
|
4
|
|
|
|
|
5
|
my $block = shift; |
30
|
|
|
|
|
|
|
|
31
|
4
|
|
|
|
|
35
|
$block->(); |
32
|
4
|
|
|
|
|
17
|
context_description(undef); |
33
|
|
|
|
|
|
|
|
34
|
4
|
|
|
|
|
7
|
return; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub it { |
38
|
19
|
|
|
19
|
1
|
2761
|
my ($description, $block) = @_; |
39
|
|
|
|
|
|
|
|
40
|
19
|
50
|
|
|
|
145
|
caller->before_each if caller->can('before_each'); |
41
|
19
|
|
|
|
|
85
|
evaluate_and_print_subtest($description, $block); |
42
|
19
|
50
|
|
|
|
169
|
caller->after_each if caller->can('after_each'); |
43
|
|
|
|
|
|
|
|
44
|
19
|
|
|
|
|
79
|
return; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
__END__ |