line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Synchronized; |
2
|
3
|
|
|
3
|
|
99305
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
105
|
|
3
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
85
|
|
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
1598
|
use Test::Synchronized::FileLock; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
25
|
|
6
|
3
|
|
|
3
|
|
2425
|
use Test::Synchronized::Extensible lock_class => 'Test::Synchronized::FileLock'; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
18
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.04'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
1; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 NAME |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Test::Synchronized |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 SYNOPSIS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use Test::More tests => 1; |
19
|
|
|
|
|
|
|
use Test::Synchronized; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
... |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
ok(cant_run_with_other_tests()); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 DESCRIPTION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Test::Synchronized provides simple (and giant) lock for your tests. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
If you have a few test that not works in parallel, |
30
|
|
|
|
|
|
|
you should not give up to run whole tests in parallel. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 EXTENSIBILITY |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
The default lock is based on process ID. |
35
|
|
|
|
|
|
|
If you want to use different system, |
36
|
|
|
|
|
|
|
Please try Test::Synchronized::Extensible. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 AUTHOR |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Kato Kazuyoshi Ekato.kazuyoshi@gmail.comE |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 LICENSE |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
45
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |