| 1 | package App::Prove::Elasticsearch::Runner::Default; | ||||||||||
| 2 | 3 | $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 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 3 | ▶ | use App::Prove; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | sub run { | ||||||||
|
Subroutine
run: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 13 | 1 | my ($config, @tests) = @_; | |||||||||
| 14 | |||||||||||
| 15 | 1 | my @args = ('-PElasticsearch'); | |||||||||
| 16 | push(@args, (split(/ /, $config->{'runner.args'}))) | ||||||||||
| 17 | 1 | ▶ | if $config->{'runner.args'}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 1 | push(@args, @tests); | |||||||||
| 19 | 1 | my $p = App::Prove->new(); | |||||||||
| 20 | 1 | $p->process_args(@args); | |||||||||
| 21 | 1 | return $p->run(); | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 3 | 1; | |||||||||
| 25 | |||||||||||
| 26 | __END__ | ||||||||||