line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Message::SmartMerge::Test; |
2
|
|
|
|
|
|
|
$Message::SmartMerge::Test::VERSION = '1.161240'; |
3
|
7
|
|
|
7
|
|
5514
|
use strict;use warnings; |
|
7
|
|
|
7
|
|
9
|
|
|
7
|
|
|
|
|
154
|
|
|
7
|
|
|
|
|
22
|
|
|
7
|
|
|
|
|
9
|
|
|
7
|
|
|
|
|
165
|
|
4
|
7
|
|
|
7
|
|
69
|
use Message::Match qw(mmatch); |
|
7
|
|
|
|
|
27
|
|
|
7
|
|
|
|
|
281
|
|
5
|
7
|
|
|
7
|
|
25
|
use Message::SmartMerge; |
|
7
|
|
|
|
|
8
|
|
|
7
|
|
|
|
|
104
|
|
6
|
7
|
|
|
7
|
|
22
|
use Test::More; |
|
7
|
|
|
|
|
7
|
|
|
7
|
|
|
|
|
39
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head2 get_global_message |
9
|
|
|
|
|
|
|
=cut |
10
|
|
|
|
|
|
|
sub get_global_message { |
11
|
17
|
|
|
17
|
1
|
33
|
return shift @Message::SmartMerge::return_messages; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head2 mergetest |
15
|
|
|
|
|
|
|
=cut |
16
|
|
|
|
|
|
|
sub mergetest { |
17
|
40
|
|
|
40
|
1
|
101
|
my %args = @_; |
18
|
40
|
|
|
|
|
52
|
eval { |
19
|
40
|
50
|
|
|
|
73
|
$args{run}->() or die "returned false\n"; |
20
|
|
|
|
|
|
|
}; |
21
|
40
|
|
|
|
|
125
|
ok not $@; |
22
|
40
|
|
|
|
|
10699
|
foreach my $match_message (@{$args{match_messages}}) { |
|
40
|
|
|
|
|
88
|
|
23
|
45
|
|
|
|
|
2426
|
my $return_message = shift @Message::SmartMerge::return_messages; |
24
|
45
|
|
|
|
|
90
|
ok $return_message; |
25
|
45
|
|
|
|
|
11058
|
ok mmatch $return_message, $match_message; |
26
|
|
|
|
|
|
|
} |
27
|
40
|
|
|
|
|
10872
|
ok not scalar @Message::SmartMerge::return_messages; |
28
|
|
|
|
|
|
|
|
29
|
40
|
|
|
|
|
9595
|
@Message::SmartMerge::return_messages = (); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
1; |