line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::Prove::Elasticsearch::Runner::Default; |
2
|
|
|
|
|
|
|
$App::Prove::Elasticsearch::Runner::Default::VERSION = '0.001'; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# PODNAME: App::Prove::Elasticsearch::Runner::Default; |
5
|
|
|
|
|
|
|
# ABSTRACT: Run your tests in testd with prove |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
73662
|
use strict; |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
55
|
|
8
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
37
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
2
|
|
747
|
use App::Prove; |
|
2
|
|
|
|
|
49887
|
|
|
2
|
|
|
|
|
198
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub run { |
13
|
1
|
|
|
1
|
1
|
1277
|
my ($config, @tests) = @_; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
3
|
my @args = ('-PElasticsearch'); |
16
|
|
|
|
|
|
|
push(@args, (split(/ /, $config->{'runner.args'}))) |
17
|
1
|
50
|
|
|
|
6
|
if $config->{'runner.args'}; |
18
|
1
|
|
|
|
|
3
|
push(@args, @tests); |
19
|
1
|
|
|
|
|
5
|
my $p = App::Prove->new(); |
20
|
1
|
|
|
|
|
7
|
$p->process_args(@args); |
21
|
1
|
|
|
|
|
55
|
return $p->run(); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |