line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Message::SmartMerge::Test; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$Message::SmartMerge::Test::VERSION = '1.132270'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
12956
|
use strict;use warnings; |
|
7
|
|
|
7
|
|
15
|
|
|
7
|
|
|
|
|
285
|
|
|
7
|
|
|
|
|
40
|
|
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
335
|
|
7
|
7
|
|
|
7
|
|
41
|
use Message::Match qw(mmatch); |
|
7
|
|
|
|
|
9
|
|
|
7
|
|
|
|
|
398
|
|
8
|
7
|
|
|
7
|
|
39
|
use Message::SmartMerge; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
157
|
|
9
|
7
|
|
|
7
|
|
38
|
use Test::More; |
|
7
|
|
|
|
|
11
|
|
|
7
|
|
|
|
|
73
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head2 get_global_message |
12
|
|
|
|
|
|
|
=cut |
13
|
|
|
|
|
|
|
sub get_global_message { |
14
|
17
|
|
|
17
|
1
|
56
|
return shift @Message::SmartMerge::return_messages; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head2 mergetest |
18
|
|
|
|
|
|
|
=cut |
19
|
|
|
|
|
|
|
sub mergetest { |
20
|
40
|
|
|
40
|
1
|
171
|
my %args = @_; |
21
|
40
|
|
|
|
|
68
|
eval { |
22
|
40
|
50
|
|
|
|
512
|
$args{run}->() or die "returned false\n"; |
23
|
|
|
|
|
|
|
}; |
24
|
40
|
|
|
|
|
185
|
ok not $@; |
25
|
40
|
|
|
|
|
23225
|
foreach my $match_message (@{$args{match_messages}}) { |
|
40
|
|
|
|
|
130
|
|
26
|
45
|
|
|
|
|
3837
|
my $return_message = shift @Message::SmartMerge::return_messages; |
27
|
45
|
|
|
|
|
271
|
ok $return_message; |
28
|
45
|
|
|
|
|
21076
|
ok mmatch $return_message, $match_message; |
29
|
|
|
|
|
|
|
} |
30
|
40
|
|
|
|
|
27435
|
ok not scalar @Message::SmartMerge::return_messages; |
31
|
|
|
|
|
|
|
|
32
|
40
|
|
|
|
|
24762
|
@Message::SmartMerge::return_messages = (); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
1; |